anAspect->SetExtensionSize((aTextSize / mySceenScale + aSize) / 2.0);
aDim->SetDimensionAspect(anAspect);
- aDim->SetZLayer(1);
+ aDim->SetZLayer(Graphic3d_ZLayerId_Top);
std::vector<int> aColor = Config_PropManager::color("Visualization", "sketch_dimension_color");
theDim->setColor(aColor[0], aColor[1], aColor[2]);
}
if (!aTShape.IsSame(theIgnoreShape)) {
aAis = new AIS_Shape(aTShape);
aAis->SetColor(HIGHLIGHT_COLOR);
- aAis->SetZLayer(1); //Graphic3d_ZLayerId_Topmost
+ aAis->SetZLayer(Graphic3d_ZLayerId_Top); //Graphic3d_ZLayerId_Topmost
aDeflection = Config_PropManager::real("Visualization", "construction_deflection");
aAis->Attributes()->SetDeviationCoefficient(aDeflection);
myHighlights.Append(aAis);
TopoDS_Shape aTShape = myResult->shape()->impl<TopoDS_Shape>();
Handle(AIS_Shape) aAis = new AIS_Shape(aTShape);
aAis->SetColor(HIGHLIGHT_COLOR);
- aAis->SetZLayer(1); //Graphic3d_ZLayerId_Topmost
+ aAis->SetZLayer(Graphic3d_ZLayerId_Top); //Graphic3d_ZLayerId_Topmost
aDeflection = Config_PropManager::real("Visualization", "body_deflection");
aAis->Attributes()->SetDeviationCoefficient(aDeflection);
myHighlights.Append(aAis);