X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationFeatureEditMulti.h;h=0f21f34ab0dd099c7b432dde41526778fc3919b8;hb=02bc870879ae19215d5ef6f721acd5b12d245473;hp=7f018618b215499bb6280d266212cfdb985133f8;hpb=72ccabc2a906e229fe487dfeae61d38f921927d0;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationFeatureEditMulti.h b/src/PartSet/PartSet_OperationFeatureEditMulti.h index 7f018618b..0f21f34ab 100644 --- a/src/PartSet/PartSet_OperationFeatureEditMulti.h +++ b/src/PartSet/PartSet_OperationFeatureEditMulti.h @@ -15,25 +15,32 @@ class QMouseEvent; /*! \class PartSet_OperationFeatureEditMulti * \brief The operation for the sketch feature creation -*/ -class PARTSET_EXPORT PartSet_OperationFeatureEditMulti : public PartSet_OperationSketchBase + */ +class PARTSET_EXPORT PartSet_OperationFeatureEditMulti : public PartSet_OperationSketchBase { - Q_OBJECT +Q_OBJECT /// Struct to define gp point, with the state is the point is initialized struct Point { /// Constructor - Point() {} + Point() + { + } /// Constructor /// \param thePoint the point Point(gp_Pnt thePoint) { setPoint(thePoint); } - ~Point() {} + ~Point() + { + } /// clear the initialized flag. - void clear() { myIsInitialized = false; } + void clear() + { + myIsInitialized = false; + } /// set the point and switch on the initialized flag /// \param thePoint the point void setPoint(const gp_Pnt& thePoint) @@ -42,29 +49,27 @@ class PARTSET_EXPORT PartSet_OperationFeatureEditMulti : public PartSet_Operatio myPoint = thePoint; } - bool myIsInitialized; /// the state whether the point is set - gp_Pnt myPoint; /// the point + bool myIsInitialized; /// the state whether the point is set + gp_Pnt myPoint; /// the point }; -public: + public: /// Returns the operation type key - static std::string Type() { return "EditMulti"; } + static std::string Type() + { + return "EditMulti"; + } -public: + public: /// Constructor /// \param theId the feature identifier /// \param theParent the operation parent /// \param theFeature the parent feature PartSet_OperationFeatureEditMulti(const QString& theId, QObject* theParent, - FeaturePtr theFeature); + FeaturePtr theFeature); /// Destructor virtual ~PartSet_OperationFeatureEditMulti(); - /// 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; - /// Initializes the operation with previously created feature. It is used in sequental operations virtual void initFeature(FeaturePtr theFeature); @@ -72,7 +77,7 @@ public: /// \param theSelected the list of selected presentations /// \param theHighlighted the list of highlighted presentations virtual void initSelection(const std::list& theSelected, - const std::list& theHighlighted); + const std::list& theHighlighted); /// Returns the operation sketch feature /// \returns the sketch instance @@ -95,10 +100,10 @@ public: /// \param theEvent the mouse event /// \param theSelected the list of selected presentations /// \param theHighlighted the list of highlighted presentations - virtual void mouseReleased(QMouseEvent* theEvent, Handle_V3d_View theView, - const std::list& theSelected, - const std::list& theHighlighted); -protected: + virtual void mouseReleased(QMouseEvent* theEvent, Handle_V3d_View theView, + const std::list& theSelected, + const std::list& theHighlighted); + protected: /// \brief Virtual method called when operation is started /// Virtual method called when operation started (see start() method for more description) /// Switch off the multi selection state @@ -108,7 +113,7 @@ protected: /// Restore the multi selection state virtual void stopOperation(); -protected: + protected: /// Emits a signal about the selection blocking. Emits a signal to change the selection. /// If the block is true, the signal clear selection, otherwise if restore selection flag allows, /// the internal operation features are to be selected @@ -119,11 +124,11 @@ protected: /// Sends the features void sendFeatures(); -private: - FeaturePtr mySketch; ///< the sketch feature - std::list myFeatures; ///< the features to apply the edit operation - Point myCurPoint; ///< the current 3D point clicked or moved - bool myIsBlockedSelection; ///< the state of the last state of selection blocked signal + private: + FeaturePtr mySketch; ///< the sketch feature + std::list myFeatures; ///< the features to apply the edit operation + Point myCurPoint; ///< the current 3D point clicked or moved + bool myIsBlockedSelection; ///< the state of the last state of selection blocked signal }; #endif