X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_HVDirection.cpp;h=e7bdfdda7c5fba61a891484b0c9b10144e983501;hb=a5746a7f8fd8bcd555fb16f98e312c86ca1210da;hp=5992db2fd4ed128240514a711feb824ea15ec785;hpb=3eb5a9ba3696a7d8eb516943dfdabd8b188a76c5;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_HVDirection.cpp b/src/SketcherPrs/SketcherPrs_HVDirection.cpp index 5992db2fd..e7bdfdda7 100644 --- a/src/SketcherPrs/SketcherPrs_HVDirection.cpp +++ b/src/SketcherPrs/SketcherPrs_HVDirection.cpp @@ -20,7 +20,7 @@ IMPLEMENT_STANDARD_RTTIEXT(SketcherPrs_HVDirection, SketcherPrs_SymbolPrs); static Handle(Image_AlienPixMap) MyPixMap; -SketcherPrs_HVDirection::SketcherPrs_HVDirection(SketchPlugin_Constraint* theConstraint, +SketcherPrs_HVDirection::SketcherPrs_HVDirection(ModelAPI_Feature* theConstraint, const std::shared_ptr& thePlane, bool isHorisontal) : SketcherPrs_SymbolPrs(theConstraint, thePlane), myIsHorisontal(isHorisontal) @@ -35,6 +35,7 @@ bool SketcherPrs_HVDirection::updatePoints(double theStep) const if (SketcherPrs_Tools::getShape(aObj).get() == NULL) return false; + // Set point of the symbol SketcherPrs_PositionMgr* aMgr = SketcherPrs_PositionMgr::get(); gp_Pnt aP1 = aMgr->getPosition(aObj, this, theStep); myPntArray->SetVertice(1, aP1); @@ -45,6 +46,7 @@ void SketcherPrs_HVDirection::drawLines(const Handle(Prs3d_Presentation)& thePrs { Handle(Graphic3d_Group) aGroup = Prs3d_Root::NewGroup(thePrs); + // Draw constrained object Handle(Graphic3d_AspectLine3d) aLineAspect = new Graphic3d_AspectLine3d(theColor, Aspect_TOL_SOLID, 2); aGroup->SetPrimitivesAspect(aLineAspect);