X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationEditLine.h;h=5f447c7305bcd7425703b13458c92b7c85453fdf;hb=118e2ee9b8627855a172fa5ea0aa7945aab48e99;hp=826a5f9aedf77a4132e8dcf6fc3d94db16e2a0fc;hpb=009748938269b60a5195a288513092b25b09e8d9;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationEditLine.h b/src/PartSet/PartSet_OperationEditLine.h index 826a5f9ae..5f447c730 100644 --- a/src/PartSet/PartSet_OperationEditLine.h +++ b/src/PartSet/PartSet_OperationEditLine.h @@ -60,9 +60,10 @@ public: /// 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 @@ -71,7 +72,13 @@ public: /// Initializes some fields accorging to the feature /// \param theFeature the feature - virtual void init(boost::shared_ptr theFeature); + /// \param thePresentations the list of additional presentations + virtual void init(boost::shared_ptr theFeature, + const std::list& thePresentations); + + /// Returns the operation sketch feature + /// \returns the sketch instance + virtual boost::shared_ptr sketch() const; /// Processes the mouse pressed in the point /// \param thePoint a point clicked in the viewer @@ -80,9 +87,7 @@ public: /// 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& 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 @@ -116,6 +121,7 @@ protected: private: boost::shared_ptr mySketch; ///< the sketch feature + std::list 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 };