- /// Returns the map of the operation previews including the nested feature previews
- /// \return the map of feature to the feature preview
- virtual std::map<boost::shared_ptr<ModelAPI_Feature>, boost::shared_ptr<GeomAPI_Shape> >
- preview() const;
+ /// Returns the list of the nested features
+ /// \return the list of subfeatures
+ virtual std::list<FeaturePtr> subFeatures() const;
+
+ /// Virtual method called when operation stopped - committed or aborted.
+ /// Emits a signal to hide the preview of the operation
+ virtual void stopOperation();
+
+ /// Returns whether the nested operations are enabled.
+ /// The state can depend on the operation current state.
+ /// It returns true after the sketch plane is choosen.
+ /// \return enabled state
+ virtual bool isNestedOperationsEnabled() const;
+
+ /// Returns whether the sketch plane is set
+ /// \return the boolean value whether the sketch is set
+ bool hasSketchPlane() const;
+
+ /// Set the plane to the current sketch
+ /// \param theShape the shape
+ void setSketchPlane(const TopoDS_Shape& theShape);
+
+ /// If operation needs to redisplay its result during operation
+ /// then this method has to return True
+ virtual bool hasPreview() const { return false; }
+