Salome HOME
Commit of the current operation if the preselection is activated.
[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 <ModuleBase_Operation.h>
11 #include <SketchPlugin_Sketch.h>
12
13 /*!
14  \class PartSet_OperationSketch
15  * \brief The operation for the sketch feature creation
16  */
17 class PARTSET_EXPORT PartSet_OperationSketch : public ModuleBase_Operation
18 {
19 Q_OBJECT
20
21  public:
22   /// Returns the operation type key
23   static std::string Type()
24   {
25     return SketchPlugin_Sketch::ID();
26   }
27
28   /// Constructor
29   /// \param theId the feature identifier
30   /// \param theParent the operation parent
31   PartSet_OperationSketch(const QString& theId, QObject* theParent);
32   /// Destructor
33   virtual ~PartSet_OperationSketch();
34
35   /// Returns whether the nested operations are enabled.
36   /// The state can depend on the operation current state.
37   /// It returns true after the sketch plane is choosen.
38   /// \return enabled state
39   virtual bool isNestedOperationsEnabled() const;
40
41 };
42
43 #endif