1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PartSet_OperationSketch.h
4 // Created: 20 Apr 2014
5 // Author: Natalia ERMOLAEVA
7 #ifndef PartSet_OperationSketch_H
8 #define PartSet_OperationSketch_H
12 #include <ModuleBase_Operation.h>
13 #include <SketchPlugin_Sketch.h>
16 \class PartSet_OperationSketch
17 * \brief The operation for the sketch feature creation
19 class PARTSET_EXPORT PartSet_OperationSketch : public ModuleBase_Operation
24 /// Returns the operation type key
25 static std::string Type()
27 return SketchPlugin_Sketch::ID();
31 /// \param theId the feature identifier
32 /// \param theParent the operation parent
33 PartSet_OperationSketch(const QString& theId, QObject* theParent);
35 virtual ~PartSet_OperationSketch();
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;