/// Destructor
virtual ~PartSet_OperationEditLine();
- /// Returns that this operator can be started above already running one.
- /// The runned operation should be the sketch feature modified operation
- virtual bool isGranted() const;
+ /// Returns that this operator can be started above already running one.
+ /// The runned operation should be the sketch feature modified operation
+ /// \param theOperation the previous running operation
+ virtual bool isGranted(ModuleBase_IOperation* theOperation) const;
/// Returns the operation local selection mode
/// \param theFeature the feature object to get the selection mode
/// Initializes some fields accorging to the feature
/// \param theFeature the feature
- virtual void init(boost::shared_ptr<ModelAPI_Feature> theFeature);
+ /// \param thePresentations the list of additional presentations
+ virtual void init(boost::shared_ptr<ModelAPI_Feature> theFeature,
+ const std::list<XGUI_ViewerPrs>& thePresentations);
+
+ /// Returns the operation sketch feature
+ /// \returns the sketch instance
+ virtual boost::shared_ptr<ModelAPI_Feature> sketch() const;
/// Processes the mouse pressed in the point
/// \param thePoint a point clicked in the viewer
/// Gives the current mouse point in the viewer
/// \param thePoint a point clicked in the viewer
/// \param theEvent the mouse event
- /// \param theSelected the list of selected presentations
- virtual void mouseMoved(QMouseEvent* theEvent, Handle_V3d_View theView,
- const std::list<XGUI_ViewerPrs>& theSelected);
+ virtual void mouseMoved(QMouseEvent* theEvent, Handle_V3d_View theView);
/// Gives the current selected objects to be processed by the operation
/// \param thePoint a point clicked in the viewer
/// \param theEvent the mouse event
private:
boost::shared_ptr<ModelAPI_Feature> mySketch; ///< the sketch feature
+ std::list<XGUI_ViewerPrs> myFeatures; ///< the features to apply the edit operation
Point myCurPoint; ///< the current 3D point clicked or moved
gp_Pnt myCurPressed; ///< the current 3D point clicked or moved
};