X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Radius.h;h=386fc01c171fa4c81d5aca83d808668724901778;hb=9968ec652480079d0ca91b2040f6327a164807cf;hp=348eafdcfaf5b6209f3ff5fe20361f9ded6c9ebf;hpb=05980d60d4b120a4bb9244fc923d1925ff4b4bfc;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Radius.h b/src/SketcherPrs/SketcherPrs_Radius.h index 348eafdcf..386fc01c1 100644 --- a/src/SketcherPrs/SketcherPrs_Radius.h +++ b/src/SketcherPrs/SketcherPrs_Radius.h @@ -42,6 +42,18 @@ public: /// \return boolean result value static bool IsReadyToDisplay(ModelAPI_Feature* theConstraint, const std::shared_ptr& thePlane); +private: + /// Fills the constraint parameters by constraint and plane + /// \param theConstraint a constraint feature + /// \param thePlane a coordinate plane of current sketch + /// \param theCircle a circle build on the constraint values + /// \param thePoint an anchor point to show text value + /// \param theRadius a circle custom radius value to be visualized + /// \return boolean result value + static bool readyToDisplay(ModelAPI_Feature* theConstraint, + const std::shared_ptr& thePlane, + gp_Circ& theCircle, gp_Pnt& theAnchorPoint, + double& theRadius); protected: /// Redefinition of virtual function Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager, @@ -56,12 +68,17 @@ private: ModelAPI_Feature* myConstraint; /// Plane of the current sketcher - std::shared_ptr myPlane; - - Handle(Prs3d_DimensionAspect) myAspect; + std::shared_ptr mySketcherPlane; /// Listener to update dimension visualization style SketcherPrs_DimensionStyleListener* myStyleListener; + + /// container of values obtained from the constraint, which are necessary to fill the presentation + gp_Circ myCircle; ///< the radius circle + gp_Pnt myAnchorPoint; ///< an ancor for the radius value visualization + bool myHasParameters; ///< true if the atrribute value has used parameters + std::string myValue; ///< dimension value + double myRadius; ///< the radius custom value }; #endif \ No newline at end of file