]> SALOME platform Git repositories - modules/shaper.git/blob - src/PartSet/PartSet_OperationSketch.h
Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / PartSet / PartSet_OperationSketch.h
1 // File:        PartSet_OperationSketch.h
2 // Created:     20 Apr 2014
3 // Author:      Natalia ERMOLAEVA
4
5 #ifndef PartSet_OperationSketch_H
6 #define PartSet_OperationSketch_H
7
8 #include "PartSet.h"
9
10 #include <PartSet_OperationSketchBase.h>
11 #include <QObject>
12
13 /*!
14  \class PartSet_OperationSketch
15  * \brief The operation for the sketch feature creation
16 */
17 class PARTSET_EXPORT PartSet_OperationSketch : public PartSet_OperationSketchBase
18 {
19   Q_OBJECT
20 public:
21   /// Constructor
22   /// \param theId the feature identifier
23   /// \param theParent the operation parent
24   PartSet_OperationSketch(const QString& theId, QObject* theParent);
25   /// Destructor
26   virtual ~PartSet_OperationSketch();
27
28   /// Returns the operation local selection mode
29   /// \param theFeature the feature object to get the selection mode
30   /// \return the selection mode
31   virtual std::list<int> getSelectionModes(boost::shared_ptr<ModelAPI_Feature> theFeature) const;
32
33   /// Gives the current selected objects to be processed by the operation
34   /// \param theFeature the selected feature
35   /// \param theShape the selected shape
36   virtual void setSelected(boost::shared_ptr<ModelAPI_Feature> theFeature,
37                            const TopoDS_Shape& theShape);
38
39 signals:
40   /// signal about the sketch plane is selected
41   /// \param theX the value in the X direction of the plane
42   /// \param theX the value in the Y direction value of the plane
43   /// \param theX the value in the Z direction of the plane
44   void planeSelected(double theX, double theY, double theZ);
45
46 protected:
47   /// Set the plane to the current sketch
48   /// \param theShape the shape
49   void setSketchPlane(const TopoDS_Shape& theShape);
50 };
51
52 #endif