Salome HOME
Issue #780: Make Arrow Tail size and extension line size adaptive to current viewer...
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Angle.cpp
index 085aa754cf5598dd2ad0d98b1813438d3ba40710..8603dd444b790c0801d15a8dcc34b0db2bd56a87 100644 (file)
@@ -26,9 +26,6 @@ IMPLEMENT_STANDARD_HANDLE(SketcherPrs_Angle, AIS_AngleDimension);
 IMPLEMENT_STANDARD_RTTIEXT(SketcherPrs_Angle, AIS_AngleDimension);
 
 
-
-
-
 SketcherPrs_Angle::SketcherPrs_Angle(ModelAPI_Feature* theConstraint, 
                                      const std::shared_ptr<GeomAPI_Ax3>& thePlane)
 : AIS_AngleDimension(gp_Pnt(0,0,0), gp_Pnt(1,0,0), gp_Pnt(0,1,0)), myConstraint(theConstraint), myPlane(thePlane)
@@ -109,6 +106,9 @@ void SketcherPrs_Angle::Compute(const Handle(PrsMgr_PresentationManager3d)& theP
   AttributeDoublePtr aVal = aData->real(SketchPlugin_Constraint::VALUE());
   SetCustomValue(aVal->value() * PI / 180.0);
 
+  myAspect->SetExtensionSize(myAspect->ArrowAspect()->Length());
+  myAspect->SetArrowTailSize(myAspect->ArrowAspect()->Length());
+
   AIS_AngleDimension::Compute(thePresentationManager, thePresentation, theMode);
 }