implement detail view highlight in base view
This commit is contained in:
@@ -91,6 +91,7 @@
|
||||
#include "DrawHatch.h"
|
||||
#include "DrawGeomHatch.h"
|
||||
#include "DrawViewDimension.h"
|
||||
#include "DrawViewDetail.h"
|
||||
#include "DrawPage.h"
|
||||
#include "EdgeWalker.h"
|
||||
|
||||
@@ -623,6 +624,18 @@ std::vector<DrawViewSection*> DrawViewPart::getSectionRefs(void) const
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<DrawViewDetail*> DrawViewPart::getDetailRefs(void) const
|
||||
{
|
||||
std::vector<DrawViewDetail*> result;
|
||||
std::vector<App::DocumentObject*> inObjs = getInList();
|
||||
for (auto& o:inObjs) {
|
||||
if (o->getTypeId().isDerivedFrom(DrawViewDetail::getClassTypeId())) {
|
||||
result.push_back(static_cast<TechDraw::DrawViewDetail*>(o));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
const std::vector<TechDrawGeometry::BaseGeom *> DrawViewPart::getVisibleFaceEdges() const
|
||||
{
|
||||
return geometryObject->getVisibleFaceEdges(SmoothVisible.getValue(),SeamVisible.getValue());
|
||||
|
||||
Reference in New Issue
Block a user