Salome HOME
e577962bb957c7cf01bc0f27758db3ed00531540
[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 theList a list of interactive selected shapes
35   /// \param theSelectedPoint a point clidked in the viewer
36   virtual void setSelectedShapes(const NCollection_List<TopoDS_Shape>& theList);
37
38 signals:
39   /// signal about the sketch plane is selected
40   /// \param theX the value in the X direction of the plane
41   /// \param theX the value in the Y direction value of the plane
42   /// \param theX the value in the Z direction of the plane
43   void planeSelected(double theX, double theY, double theZ);
44 };
45
46 #endif