Salome HOME
Merge branch 'SketchSolver'
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Feature.h
index 0419550a84cc36da75907cec9368ed5651f46130..db6a6d6607aff088a251a6e4f6e43fb30d71b82e 100644 (file)
@@ -29,6 +29,9 @@ public:
   SKETCHPLUGIN_EXPORT virtual const void addSub(
     const boost::shared_ptr<ModelAPI_Feature>& 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;