X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Feature.h;h=8829f102f5f9ea007d555b0fda4c71fb8dcd41b6;hb=ad84ec41d7f40729d3aef2a1a3fdb4e102d84b82;hp=b8437dcbcaf7c3674d2399bc47ac87a5d4171668;hpb=93c7fa6135463fb0a202cf94f30da60316795a04;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Feature.h b/src/SketchPlugin/SketchPlugin_Feature.h index b8437dcbc..8829f102f 100644 --- a/src/SketchPlugin/SketchPlugin_Feature.h +++ b/src/SketchPlugin/SketchPlugin_Feature.h @@ -10,7 +10,6 @@ #include "SketchPlugin.h" #include #include -#include #include #include #include @@ -18,7 +17,6 @@ #include class SketchPlugin_Sketch; -class GeomAPI_Pnt2d; class Handle_AIS_InteractiveObject; /**\class SketchPlugin_Feature @@ -41,15 +39,24 @@ class SketchPlugin_Feature : public ModelAPI_Feature return false; } + /// Returns true if the feature is a copy of other feature + SKETCHPLUGIN_EXPORT virtual bool isCopy() const + { + return false; + } + + /// Returns true if the feature and the feature results can be displayed + /// \return true + SKETCHPLUGIN_EXPORT virtual bool canBeDisplayed() const + { + return true; + } + /// Moves the feature /// \param theDeltaX the delta for X coordinate is moved /// \param theDeltaY the delta for Y coordinate is moved SKETCHPLUGIN_EXPORT virtual void move(const double theDeltaX, const double theDeltaY) = 0; - /// Return the distance between the feature and the point - /// \param thePoint the point - virtual double distanceToPoint(const std::shared_ptr& thePoint) = 0; - /// Construction result is allways recomuted on the fly SKETCHPLUGIN_EXPORT virtual bool isPersistentResult() {return false;}