X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Equal.h;h=bba05f150c44b9da3177fd912fe5d8a8dc5db7a8;hb=1a59f21be05badd17bcac9ce82b2857b961f1d2e;hp=4bd1a86ab53a3ec4937a923d145a7383056dd4a3;hpb=3eb5a9ba3696a7d8eb516943dfdabd8b188a76c5;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Equal.h b/src/SketcherPrs/SketcherPrs_Equal.h index 4bd1a86ab..bba05f150 100644 --- a/src/SketcherPrs/SketcherPrs_Equal.h +++ b/src/SketcherPrs/SketcherPrs_Equal.h @@ -9,9 +9,6 @@ #include "SketcherPrs_SymbolPrs.h" -class SketchPlugin_Constraint; -class SketchPlugin_Sketch; - DEFINE_STANDARD_HANDLE(SketcherPrs_Equal, SketcherPrs_SymbolPrs) @@ -26,9 +23,16 @@ public: /// Constructor /// \param theConstraint a constraint feature /// \param thePlane a coordinate plane of current sketch - Standard_EXPORT SketcherPrs_Equal(SketchPlugin_Constraint* theConstraint, + Standard_EXPORT SketcherPrs_Equal(ModelAPI_Feature* theConstraint, const std::shared_ptr& thePlane); DEFINE_STANDARD_RTTI(SketcherPrs_Equal) + + /// Returns true if the constraint feature arguments are correcly filled to build AIS presentation + /// \param theConstraint a constraint feature + /// \param thePlane a coordinate plane of current sketch + /// \return boolean result value + static bool IsReadyToDisplay(ModelAPI_Feature* theConstraint, + const std::shared_ptr& thePlane); protected: virtual const char* iconName() const { return "equal.png"; }