X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Rigid.h;h=c944297a143fc855e1a9a5fadc42f868fc3dbdce;hb=b5893b0a30fac08134c24de4565cb513a43affa6;hp=5328210773228b7eb49ae2d97703f7bc83f675fb;hpb=3eb5a9ba3696a7d8eb516943dfdabd8b188a76c5;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Rigid.h b/src/SketcherPrs/SketcherPrs_Rigid.h index 532821077..c944297a1 100644 --- a/src/SketcherPrs/SketcherPrs_Rigid.h +++ b/src/SketcherPrs/SketcherPrs_Rigid.h @@ -9,9 +9,7 @@ #include "SketcherPrs_SymbolPrs.h" #include - -class SketchPlugin_Constraint; -class SketchPlugin_Sketch; +#include DEFINE_STANDARD_HANDLE(SketcherPrs_Rigid, SketcherPrs_SymbolPrs) @@ -27,11 +25,18 @@ public: /// Constructor /// \param theConstraint a constraint feature /// \param thePlane a coordinate plane of current sketch - Standard_EXPORT SketcherPrs_Rigid(SketchPlugin_Constraint* theConstraint, + Standard_EXPORT SketcherPrs_Rigid(ModelAPI_Feature* theConstraint, const std::shared_ptr& thePlane); - DEFINE_STANDARD_RTTI(SketcherPrs_Rigid) + DEFINE_STANDARD_RTTIEXT(SketcherPrs_Rigid, SketcherPrs_SymbolPrs) + + /// 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 "anchor.png"; } @@ -42,7 +47,7 @@ protected: /// Update myPntArray according to presentation positions /// \return true in case of success - virtual bool updatePoints(double theStep) const; + virtual bool updateIfReadyToDisplay(double theStep, bool withColor) const; };