X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Rigid.h;h=1bb7b4a613b26a7845c4819de2c6b63da9e577f9;hb=9968ec652480079d0ca91b2040f6327a164807cf;hp=5328210773228b7eb49ae2d97703f7bc83f675fb;hpb=57cf6e2ea021fe95dcc0caa5d19bffd2cde4223f;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Rigid.h b/src/SketcherPrs/SketcherPrs_Rigid.h index 532821077..1bb7b4a61 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) + + /// 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) const; };