X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Perpendicular.h;h=33a6f7495d659675f4bd7ed1fe56095f4d7b50e6;hb=f98f887290d4e2b4bd6618389911e82b6b9674f3;hp=c77a09203bcdb3f0a80ab550f3227845cc301ec4;hpb=ad777acf40828575ffa8a9ba6db103a7cc17dd71;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Perpendicular.h b/src/SketcherPrs/SketcherPrs_Perpendicular.h index c77a09203..33a6f7495 100644 --- a/src/SketcherPrs/SketcherPrs_Perpendicular.h +++ b/src/SketcherPrs/SketcherPrs_Perpendicular.h @@ -25,10 +25,17 @@ public: /// Constructor /// \param theConstraint a constraint feature /// \param thePlane a coordinate plane of current sketch - Standard_EXPORT SketcherPrs_Perpendicular(SketchPlugin_Constraint* theConstraint, + Standard_EXPORT SketcherPrs_Perpendicular(ModelAPI_Feature* theConstraint, const std::shared_ptr& thePlane); DEFINE_STANDARD_RTTI(SketcherPrs_Perpendicular) + + /// 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 "perpendicular.png"; } @@ -39,7 +46,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