X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_LengthDimension.cpp;h=8f93fd0eae6fcfd3dd7f3cd9f2e4e8a7d1662504;hb=752c9e02e6aa8ced24e9b53097cb42540d5e6a08;hp=24977ecee183754414167f5ef6bf6ea5e1cd766a;hpb=c3ae28ba30027cc4a6a757ef623f40adaae96ead;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_LengthDimension.cpp b/src/SketcherPrs/SketcherPrs_LengthDimension.cpp index 24977ecee..8f93fd0ea 100644 --- a/src/SketcherPrs/SketcherPrs_LengthDimension.cpp +++ b/src/SketcherPrs/SketcherPrs_LengthDimension.cpp @@ -21,12 +21,17 @@ #include #include +#include + +#include static const gp_Pnt MyDefStart(0,0,0); static const gp_Pnt MyDefEnd(1,0,0); static const gp_Pln MyDefPln(gp_Pnt(0,0,0), gp_Dir(0,0,1)); +static const Standard_ExtCharacter MySummSymbol(0x2211); + IMPLEMENT_STANDARD_HANDLE(SketcherPrs_LengthDimension, AIS_LengthDimension); IMPLEMENT_STANDARD_RTTIEXT(SketcherPrs_LengthDimension, AIS_LengthDimension); @@ -67,6 +72,13 @@ void SketcherPrs_LengthDimension::Compute(const Handle(PrsMgr_PresentationManage // The value of vertical aligment is sometimes changed myAspect->TextAspect()->SetVerticalJustification(Graphic3d_VTA_CENTER); + AttributeDoublePtr aValue = myConstraint->data()->real(SketchPlugin_Constraint::VALUE()); + std::set aParams = aValue->usedParameters(); + if (aParams.size() > 0) { + SetSpecialSymbol(MySummSymbol); + SetDisplaySpecialSymbol(AIS_DSS_Before); + } + AIS_LengthDimension::Compute(thePresentationManager, thePresentation, theMode); }