X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Feature.h;h=db6a6d6607aff088a251a6e4f6e43fb30d71b82e;hb=761f0db64165dd5208998f29db8c7a8ae6c30e60;hp=0419550a84cc36da75907cec9368ed5651f46130;hpb=d4572a0253007ff9fc263253720e37bf896f8d0d;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Feature.h b/src/SketchPlugin/SketchPlugin_Feature.h index 0419550a8..db6a6d660 100644 --- a/src/SketchPlugin/SketchPlugin_Feature.h +++ b/src/SketchPlugin/SketchPlugin_Feature.h @@ -29,6 +29,9 @@ public: SKETCHPLUGIN_EXPORT virtual const void addSub( const boost::shared_ptr& theFeature) = 0; + /// Returns true if this feature must be displayed in the history (top level of Part tree) + SKETCHPLUGIN_EXPORT virtual bool isInHistory() {return false;} + protected: /// Set the shape to the internal preview field /// \param theShape a preview shape @@ -39,7 +42,9 @@ protected: /// Sets the higher-level feature for the sub-feature (sketch for line) void setSketch(SketchPlugin_Sketch* theSketch) {mySketch = theSketch;} /// Returns the sketch of this feature - SketchPlugin_Sketch* sketch() {return mySketch;} + SketchPlugin_Sketch* sketch(); + /// initializes mySketch + SketchPlugin_Feature(); friend class SketchPlugin_Sketch;