/// \return the selection mode
virtual std::list<int> getSelectionModes(FeaturePtr theFeature) const;
- /// Initializes some fields accorging to the feature
- /// \param theSelected the list of selected presentations
- /// \param theHighlighted the list of highlighted presentations
- virtual void init(FeaturePtr theFeature,
- const std::list<XGUI_ViewerPrs>& theSelected,
- const std::list<XGUI_ViewerPrs>& theHighlighted);
+ /// Initializes the operation with previously created feature. It is used in sequental operations
+ virtual void initFeature(FeaturePtr theFeature);
/// Returns the operation sketch feature
/// \returns the sketch instance
/// \param theEvent the mouse event
virtual void mouseMoved(QMouseEvent* theEvent, Handle_V3d_View theView);
- /// Returns the map of the operation previews including the nested feature previews
- /// \return the map of feature to the feature preview
- virtual std::map<FeaturePtr, boost::shared_ptr<GeomAPI_Shape> >
- subPreview() 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