]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #780: Make Arrow Tail size and extension line size adaptive to current viewer...
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 27 Aug 2015 13:38:30 +0000 (16:38 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 27 Aug 2015 13:38:43 +0000 (16:38 +0300)
src/SketcherPrs/SketcherPrs_Angle.cpp
src/SketcherPrs/SketcherPrs_LengthDimension.cpp
src/SketcherPrs/SketcherPrs_Radius.cpp

index fbdb47391fe3885c3dec99c0f85499f4804ef253..8603dd444b790c0801d15a8dcc34b0db2bd56a87 100644 (file)
@@ -106,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);
 }
 
index ea58e65150922a2f14ebdeecaa74a6a7627f3d78..347d8b12cd50e044fa905990b8f92a795f0af835 100644 (file)
@@ -55,6 +55,9 @@ void SketcherPrs_LengthDimension::Compute(const Handle(PrsMgr_PresentationManage
   gp_Pnt aPnt1, aPnt2;
   if (!getPoints(aPnt1, aPnt2))
     return;
+  myAspect->SetExtensionSize(myAspect->ArrowAspect()->Length());
+  myAspect->SetArrowTailSize(myAspect->ArrowAspect()->Length());
+
   SetFlyout(SketcherPrs_Tools::getFlyoutDistance(myConstraint));
   SetMeasuredGeometry(aPnt1, aPnt2, myPlane->impl<gp_Ax3>());
   AIS_LengthDimension::Compute(thePresentationManager, thePresentation, theMode);
index a99bdc9af57f216d671dce5f1b115dd99cd3a9b9..6fc31d0d588ad8636d920cdd120e0b4a0ee370a6 100644 (file)
@@ -87,6 +87,9 @@ void SketcherPrs_Radius::Compute(const Handle(PrsMgr_PresentationManager3d)& the
   SetMeasuredGeometry(aCircle.impl<gp_Circ>(), anAnchor->impl<gp_Pnt>());
   SetCustomValue(aRadius);
 
+  myAspect->SetExtensionSize(myAspect->ArrowAspect()->Length());
+  myAspect->SetArrowTailSize(myAspect->ArrowAspect()->Length());
+
   AIS_RadiusDimension::Compute(thePresentationManager, thePresentation, theMode);
 }