X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Equal.h;h=0e0dd3130a2189e1daee02b3cda0be374ea08f68;hb=5748c55c03e4333d41f85bfffda9709c94d57cf3;hp=d958d412488c0c90cbe021e2e81eed08bcd5a35f;hpb=a1f792970074d097f2f8a408dfcae5f6c263a6ca;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Equal.h b/src/SketcherPrs/SketcherPrs_Equal.h index d958d4124..0e0dd3130 100644 --- a/src/SketcherPrs/SketcherPrs_Equal.h +++ b/src/SketcherPrs/SketcherPrs_Equal.h @@ -26,6 +26,13 @@ public: 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"; } @@ -34,7 +41,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; }; #endif \ No newline at end of file