1 // File: PartSet_OperationSketch.h
2 // Created: 20 Apr 2014
3 // Author: Natalia ERMOLAEVA
5 #ifndef PartSet_OperationSketch_H
6 #define PartSet_OperationSketch_H
10 #include <ModuleBase_Operation.h>
11 #include <SketchPlugin_Sketch.h>
14 \class PartSet_OperationSketch
15 * \brief The operation for the sketch feature creation
17 class PARTSET_EXPORT PartSet_OperationSketch : public ModuleBase_Operation
22 /// Returns the operation type key
23 static std::string Type()
25 return SketchPlugin_Sketch::ID();
29 /// \param theId the feature identifier
30 /// \param theParent the operation parent
31 PartSet_OperationSketch(const QString& theId, QObject* theParent);
33 virtual ~PartSet_OperationSketch();
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;