X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Rigid.cpp;fp=src%2FSketcherPrs%2FSketcherPrs_Rigid.cpp;h=d2e993331f1bf79ac364849c2e29dfdb1a6aa629;hb=63f80d9837b4dcb16e9fafc3b07fac36f6f7b00d;hp=082ab5cfc6bfde3476b3d6461ce1a7a623069b91;hpb=b9e0bc62b8d67c3f82e4feb583e4e3b9f7249202;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Rigid.cpp b/src/SketcherPrs/SketcherPrs_Rigid.cpp index 082ab5cfc..d2e993331 100644 --- a/src/SketcherPrs/SketcherPrs_Rigid.cpp +++ b/src/SketcherPrs/SketcherPrs_Rigid.cpp @@ -49,7 +49,8 @@ bool SketcherPrs_Rigid::IsReadyToDisplay(ModelAPI_Feature* theConstraint, bool aReadyToDisplay = false; std::shared_ptr aData = theConstraint->data(); - std::shared_ptr anAttr = aData->refattr(SketchPlugin_Constraint::ENTITY_A()); + std::shared_ptr anAttr = + aData->refattr(SketchPlugin_Constraint::ENTITY_A()); AttributePtr aRefAttr = anAttr->attr(); if (anAttr->isObject()) { // The constraint attached to an object @@ -59,7 +60,7 @@ bool SketcherPrs_Rigid::IsReadyToDisplay(ModelAPI_Feature* theConstraint, } else { // The constraint attached to a point std::shared_ptr aPnt = SketcherPrs_Tools::getPoint(theConstraint, - SketchPlugin_Constraint::ENTITY_A()); + SketchPlugin_Constraint::ENTITY_A()); aReadyToDisplay = aPnt.get() != NULL; } return aReadyToDisplay; @@ -71,7 +72,8 @@ bool SketcherPrs_Rigid::updateIfReadyToDisplay(double theStep) const return false; std::shared_ptr aData = myConstraint->data(); - std::shared_ptr anAttr = aData->refattr(SketchPlugin_Constraint::ENTITY_A()); + std::shared_ptr anAttr = + aData->refattr(SketchPlugin_Constraint::ENTITY_A()); AttributePtr aRefAttr = anAttr->attr(); if (anAttr->isObject()) { // The constraint attached to an object @@ -91,7 +93,8 @@ bool SketcherPrs_Rigid::updateIfReadyToDisplay(double theStep) const } -void SketcherPrs_Rigid::drawLines(const Handle(Prs3d_Presentation)& thePrs, Quantity_Color theColor) const +void SketcherPrs_Rigid::drawLines(const Handle(Prs3d_Presentation)& thePrs, + Quantity_Color theColor) const { ObjectPtr aObj = SketcherPrs_Tools::getResult(myConstraint, SketchPlugin_Constraint::ENTITY_A()); FeaturePtr aFeature = std::dynamic_pointer_cast(aObj); @@ -114,7 +117,8 @@ void SketcherPrs_Rigid::drawLines(const Handle(Prs3d_Presentation)& thePrs, Quan return; Handle(Graphic3d_Group) aGroup = Prs3d_Root::NewGroup(thePrs); - Handle(Graphic3d_AspectLine3d) aLineAspect = new Graphic3d_AspectLine3d(theColor, Aspect_TOL_SOLID, 2); + Handle(Graphic3d_AspectLine3d) aLineAspect = + new Graphic3d_AspectLine3d(theColor, Aspect_TOL_SOLID, 2); aGroup->SetPrimitivesAspect(aLineAspect); Handle(Prs3d_PointAspect) aPntAspect = new Prs3d_PointAspect(Aspect_TOM_PLUS, theColor, 1);