]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #117: Length of arrows defined as 1/10 of dimension value
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 11 Sep 2014 15:31:45 +0000 (19:31 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 11 Sep 2014 15:31:45 +0000 (19:31 +0400)
src/GeomAPI/GeomAPI_AISObject.cpp

index 4ba7232b37e44506e1f4ebbe8c69d9733619a4f6..e79cc9fe3ec60d4eb42102d7a82bb09185f97f88 100644 (file)
@@ -92,6 +92,7 @@ void GeomAPI_AISObject::createDistance(boost::shared_ptr<GeomAPI_Pnt> theStartPo
     anAspect->MakeText3d(false);
     anAspect->TextAspect()->SetHeight(CONSTRAINT_TEXT_HEIGHT);
     anAspect->MakeTextShaded(false);
+    anAspect->ArrowAspect()->SetLength(theDistance / 10.);
     aDimAIS->DimensionAspect()->MakeUnitsDisplayed(false);
     aDimAIS->SetDimensionAspect(anAspect);
     aDimAIS->SetSelToleranceForText2d(CONSTRAINT_TEXT_SELECTION_TOLERANCE);