From: vsv Date: Wed, 6 Dec 2017 15:50:56 +0000 (+0300) Subject: Issue #2343: Take into account new dimensions for show/hide dimensional constraints X-Git-Tag: V_2.10.0RC~91 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=25749947f69ef498b2cd03c4f7c0a33b12c46e09;p=modules%2Fshaper.git Issue #2343: Take into account new dimensions for show/hide dimensional constraints --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 86d0c5921..27b0b64f6 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -85,6 +85,9 @@ #include #include #include +#include +#include +#include #include @@ -802,6 +805,9 @@ const QStringList& PartSet_SketcherMgr::constraintsIdList() aConstraintIds << SketchPlugin_ConstraintMirror::ID().c_str(); aConstraintIds << SketchPlugin_MultiTranslation::ID().c_str(); aConstraintIds << SketchPlugin_MultiRotation::ID().c_str(); + aConstraintIds << SketchPlugin_ConstraintDistanceAlongDir::ID().c_str(); + aConstraintIds << SketchPlugin_ConstraintDistanceHorizontal::ID().c_str(); + aConstraintIds << SketchPlugin_ConstraintDistanceVertical::ID().c_str(); } return aConstraintIds; } @@ -915,7 +921,10 @@ bool PartSet_SketcherMgr::isDistanceKind(std::string& theKind) return (theKind == SketchPlugin_ConstraintLength::ID()) || (theKind == SketchPlugin_ConstraintDistance::ID()) || (theKind == SketchPlugin_ConstraintRadius::ID()) || - (theKind == SketchPlugin_ConstraintAngle::ID()); + (theKind == SketchPlugin_ConstraintAngle::ID()) || + (theKind == SketchPlugin_ConstraintDistanceHorizontal::ID()) || + (theKind == SketchPlugin_ConstraintDistanceVertical::ID()) || + (theKind == SketchPlugin_ConstraintDistanceAlongDir::ID()); } void PartSet_SketcherMgr::startSketch(ModuleBase_Operation* theOperation)