#include <Events_Loop.h>
#include <ModelAPI_Events.h>
+#include <Config_PropManager.h>
#include <set>
selectionActivate()->deactivateTrihedron(true);
aContext->DefaultDrawer()->VIsoAspect()->SetNumber(0);
aContext->DefaultDrawer()->UIsoAspect()->SetNumber(0);
+
ModuleBase_IViewer::DefaultHighlightDrawer = aContext->HighlightStyle();
+ Handle(Prs3d_Drawer) aSelStyle = aContext->SelectionStyle();
+ double aDeflection = Config_PropManager::real("Visualization", "construction_deflection");
+
+ ModuleBase_IViewer::DefaultHighlightDrawer->SetDeviationCoefficient(aDeflection);
+ aSelStyle->SetDeviationCoefficient(aDeflection);
}
return aContext;
}
#include <GeomAPI_Shape.h>
#include <ModelAPI_ResultConstruction.h>
+#include <Config_PropManager.h>
+
#include <AIS_Shape.hxx>
#include <QEvent>
{
Handle(AIS_InteractiveContext) aContext = AISContext();
+ double aDeflection;
if (myResult->groupName() == ModelAPI_ResultConstruction::group()) {
FeaturePtr aFeature = ModelAPI_Feature::feature(myResult);
if (aFeature.get()) {
aAis = new AIS_Shape(aTShape);
aAis->SetColor(HIGHLIGHT_COLOR);
aAis->SetZLayer(1); //Graphic3d_ZLayerId_Topmost
+ aDeflection = Config_PropManager::real("Visualization", "construction_deflection");
+ aAis->Attributes()->SetDeviationCoefficient(aDeflection);
myHighlights.Append(aAis);
aContext->Display(aAis, false);
aContext->Deactivate(aAis);
Handle(AIS_Shape) aAis = new AIS_Shape(aTShape);
aAis->SetColor(HIGHLIGHT_COLOR);
aAis->SetZLayer(1); //Graphic3d_ZLayerId_Topmost
+ aDeflection = Config_PropManager::real("Visualization", "body_deflection");
+ aAis->Attributes()->SetDeviationCoefficient(aDeflection);
myHighlights.Append(aAis);
aContext->Display(aAis, false);
aContext->Deactivate(aAis);