X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationFeatureEdit.h;h=67223fce62fa0b756da56fae9c00c33cda84ca0c;hb=e30796dab1aa68c01201b2b89d4292d3fcbbc4d4;hp=0f7ed18c83b36eb63d827a7ecaa9291930529871;hpb=89f7d71d9de698384a8e504f8275d08cd49b32af;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationFeatureEdit.h b/src/PartSet/PartSet_OperationFeatureEdit.h index 0f7ed18c8..67223fce6 100644 --- a/src/PartSet/PartSet_OperationFeatureEdit.h +++ b/src/PartSet/PartSet_OperationFeatureEdit.h @@ -7,7 +7,7 @@ #include "PartSet.h" -#include +#include #include class QMouseEvent; @@ -16,7 +16,7 @@ class QMouseEvent; \class PartSet_OperationFeatureEdit * \brief The operation for the sketch feature creation */ -class PARTSET_EXPORT PartSet_OperationFeatureEdit : public PartSet_OperationSketchBase +class PARTSET_EXPORT PartSet_OperationFeatureEdit : public PartSet_OperationFeatureBase { Q_OBJECT /// Struct to define gp point, with the state is the point is initialized @@ -25,6 +25,7 @@ Q_OBJECT /// Constructor Point() { + myIsInitialized = false; } /// Constructor /// \param thePoint the point @@ -69,18 +70,6 @@ Q_OBJECT /// Destructor virtual ~PartSet_OperationFeatureEdit(); - /// Returns the operation local selection mode - /// \param theFeature the feature object to get the selection mode - /// \return the selection mode - virtual std::list getSelectionModes(ObjectPtr theFeature) const; - - /// 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 - virtual FeaturePtr sketch() const; - /// Processes the mouse pressed in the point /// \param theEvent the mouse event /// \param theView a viewer to have the viewer the eye position @@ -111,10 +100,6 @@ Q_OBJECT const std::list& theSelected, const std::list& theHighlighted); - /// Processes the key pressed in the view - /// \param theKey a key value - virtual bool keyReleased(const int theKey); - protected: /// \brief Virtual method called when operation is started /// Virtual method called when operation started (see start() method for more description) @@ -143,7 +128,6 @@ Q_OBJECT void sendFeatures(); private: - FeaturePtr mySketch; ///< the sketch feature Point myCurPoint; ///< the current 3D point clicked or moved bool myIsBlockedSelection; ///< the state of the last state of selection blocked signal };