X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Radius.h;h=a49497e35e98ed291547df5936b5027d8ac431d7;hb=380f01e1fce1a012267d604a1190d04bf4659447;hp=b4cf70e5e6f16e5515889d77b5af0be6f31e9627;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Radius.h b/src/SketcherPrs/SketcherPrs_Radius.h index b4cf70e5e..a49497e35 100644 --- a/src/SketcherPrs/SketcherPrs_Radius.h +++ b/src/SketcherPrs/SketcherPrs_Radius.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -22,11 +22,12 @@ #include #include +#include #include #include -#include +#include DEFINE_STANDARD_HANDLE(SketcherPrs_Radius, AIS_RadiusDimension) @@ -41,7 +42,7 @@ public: /// \param theConstraint a constraint feature /// \param thePlane a coordinate plane of current sketch Standard_EXPORT SketcherPrs_Radius(ModelAPI_Feature* theConstraint, - const std::shared_ptr& thePlane); + SketchPlugin_Sketch* theSketcher); /// Destructor Standard_EXPORT ~SketcherPrs_Radius(); @@ -55,6 +56,13 @@ public: /// \return boolean result value static bool IsReadyToDisplay(ModelAPI_Feature* theConstraint, const std::shared_ptr& thePlane); + + /// Returns sketcher plane + Standard_EXPORT std::shared_ptr plane() const + { + return mySketcher->coordinatePlane(); + } + private: /// Fills the constraint parameters by constraint and plane /// \param theConstraint a constraint feature @@ -79,17 +87,17 @@ private: /// Constraint feature ModelAPI_Feature* myConstraint; - /// Plane of the current sketcher - std::shared_ptr mySketcherPlane; + /// A current sketcher + SketchPlugin_Sketch* mySketcher; /// Listener to update dimension visualization style - SketcherPrs_DimensionStyleListener* myStyleListener; + SketcherPrs_DimensionStyle* 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 - SketcherPrs_DimensionStyleListener::DimensionValue myValue; /// the structure filled by constraint + SketcherPrs_DimensionStyle::DimensionValue myValue; /// the structure filled by constraint }; #endif \ No newline at end of file