X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_ConstraintBase.h;h=508980aa819e92230763f57ee5ebe347db08ae12;hb=3f1a42a51c7de1911c75453ff7134593d7d2c6b1;hp=dffeed1a36d32afb8496f5bfd6c7b8e8a05ae8ee;hpb=3ada52ad6bce1f69571d9dea97f6631f155681d7;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ConstraintBase.h b/src/SketchPlugin/SketchPlugin_ConstraintBase.h index dffeed1a3..508980aa8 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintBase.h +++ b/src/SketchPlugin/SketchPlugin_ConstraintBase.h @@ -14,6 +14,7 @@ #include #include +#include #include @@ -38,7 +39,8 @@ * Some feature's methods implemented here as dummy to * Base class for all constraints. */ -class SketchPlugin_ConstraintBase : public SketchPlugin_Constraint, public GeomAPI_IPresentable +class SketchPlugin_ConstraintBase : public SketchPlugin_Constraint, public GeomAPI_IPresentable, + public GeomAPI_ICustomPrs { public: /// Returns the AIS preview @@ -53,6 +55,13 @@ class SketchPlugin_ConstraintBase : public SketchPlugin_Constraint, public GeomA /// \param theDeltaY the delta for Y coordinate is moved SKETCHPLUGIN_EXPORT virtual void move(const double theDeltaX, const double theDeltaY); + /// Customize presentation of the feature + virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs, + std::shared_ptr theDefaultPrs) + { + return theDefaultPrs->customisePresentation(theResult, thePrs, theDefaultPrs); + } + protected: /// \brief Use plugin manager for features creation SketchPlugin_ConstraintBase()