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
/// 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;