X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Radius.h;h=ee3cbe929d656addba17d095c4b2710d1735c91e;hb=471cc7b52168016a3b6fff7e64cdd800cd7d8f91;hp=386fc01c171fa4c81d5aca83d808668724901778;hpb=b8ee56da654b147ed1a537c744c35e9c60562936;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Radius.h b/src/SketcherPrs/SketcherPrs_Radius.h index 386fc01c1..ee3cbe929 100644 --- a/src/SketcherPrs/SketcherPrs_Radius.h +++ b/src/SketcherPrs/SketcherPrs_Radius.h @@ -14,7 +14,7 @@ #include #include -class SketcherPrs_DimensionStyleListener; +#include DEFINE_STANDARD_HANDLE(SketcherPrs_Radius, AIS_RadiusDimension) @@ -48,12 +48,10 @@ private: /// \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); + gp_Circ& theCircle, gp_Pnt& theAnchorPoint); protected: /// Redefinition of virtual function Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager, @@ -76,9 +74,8 @@ private: /// 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 + + SketcherPrs_DimensionStyleListener::DimensionValue myValue; /// the structure filled by constraint }; #endif \ No newline at end of file