Salome HOME
Removed not used function SimpleAISobject
[modules/shaper.git] / src / PartSet / PartSet_OperationSketch.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        PartSet_OperationSketch.h
4 // Created:     20 Apr 2014
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef PartSet_OperationSketch_H
8 #define PartSet_OperationSketch_H
9
10 #include "PartSet.h"
11
12 #include <ModuleBase_Operation.h>
13 #include <SketchPlugin_Sketch.h>
14
15 /*!
16  \class PartSet_OperationSketch
17  * \brief The operation for the sketch feature creation
18  */
19 class PARTSET_EXPORT PartSet_OperationSketch : public ModuleBase_Operation
20 {
21 Q_OBJECT
22
23  public:
24   /// Returns the operation type key
25   static std::string Type()
26   {
27     return SketchPlugin_Sketch::ID();
28   }
29
30   /// Constructor
31   /// \param theId the feature identifier
32   /// \param theParent the operation parent
33   PartSet_OperationSketch(const QString& theId, QObject* theParent);
34   /// Destructor
35   virtual ~PartSet_OperationSketch();
36
37   /// Returns whether the nested operations are enabled.
38   /// The state can depend on the operation current state.
39   /// It returns true after the sketch plane is choosen.
40   /// \return enabled state
41   virtual bool isNestedOperationsEnabled() const;
42
43 };
44
45 #endif