aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_PLUS);
else
aDrawer->SetPointAspect(new Prs3d_PointAspect(Aspect_TOM_PLUS, Quantity_NOC_YELLOW, 1.));
+ aDrawer->SetIsoOnPlane(false);
setImpl(new Handle(AIS_InteractiveObject)(aShape));
}
}
#include <Prs3d_PointAspect.hxx>
#include <Prs3d_IsoAspect.hxx>
#include <Prs3d_ShadingAspect.hxx>
+#include <Prs3d_PlaneAspect.hxx>
#include <SelectMgr_SequenceOfOwner.hxx>
#include <SelectMgr_EntityOwner.hxx>
#include <SelectMgr_SelectionManager.hxx>
aDrawer->SetUIsoAspect(myUIsoAspect);
aDrawer->SetVIsoAspect(myVIsoAspect);
+ aDrawer->SetIsoOnPlane(false);
+
if (aDrawer->HasOwnPointAspect())
aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_PLUS);
else
aDrawer->VIsoAspect()->SetNumber(0);
aDrawer->UIsoAspect()->SetNumber(0);
}
+ aDrawer->SetIsoOnPlane(false);
+
myHiddenSubShapesDrawer = new AIS_ColoredDrawer(myDrawer);
Handle(Prs3d_ShadingAspect) aShadingAspect = new Prs3d_ShadingAspect();
aShadingAspect->SetMaterial(Graphic3d_NOM_BRASS); //default value of context material
#include <BRepBuilderAPI_MakeVertex.hxx>
#include <BRep_Builder.hxx>
#include <TopoDS_Compound.hxx>
+#include <Prs3d_IsoAspect.hxx>
//#define DEBUG_EMPTY_SHAPE
//#define DEBUG_OPERATION_PRS
BRepBuilderAPI_MakeVertex aMaker(aPnt);
TopoDS_Vertex aVertex = aMaker.Vertex();
myShapeToPrsMap.Bind(aVertex, NULL);
+
+ Handle(Prs3d_Drawer) aDrawer = Attributes();
+ Handle(Prs3d_IsoAspect) aUIsoAspect = new Prs3d_IsoAspect(myShapeColor, Aspect_TOL_SOLID, 1, 0);
+ Handle(Prs3d_IsoAspect) aVIsoAspect = new Prs3d_IsoAspect(myShapeColor, Aspect_TOL_SOLID, 1, 0);
+ aDrawer->SetUIsoAspect(aUIsoAspect);
+ aDrawer->SetVIsoAspect(aVIsoAspect);
+ aDrawer->SetIsoOnPlane(false);
}
bool PartSet_OperationPrs::hasShapes()
aAis->SetZLayer(Graphic3d_ZLayerId_Top); //Graphic3d_ZLayerId_Topmost
aDeflection = Config_PropManager::real("Visualization", "construction_deflection");
aAis->Attributes()->SetDeviationCoefficient(aDeflection);
+ aAis->Attributes()->SetIsoOnPlane(false);
myHighlights.Append(aAis);
aContext->Display(aAis, false);
aContext->Deactivate(aAis);
aAis->SetZLayer(Graphic3d_ZLayerId_Top); //Graphic3d_ZLayerId_Topmost
aDeflection = Config_PropManager::real("Visualization", "body_deflection");
aAis->Attributes()->SetDeviationCoefficient(aDeflection);
+ aAis->Attributes()->SetIsoOnPlane(false);
myHighlights.Append(aAis);
aContext->Display(aAis, false);
aContext->Deactivate(aAis);