Salome HOME
1a99babc94de8702687a8af90ff1981150952988
[modules/shaper.git] / src / PartSet / PartSet_OperationSketchBase.h
1 // File:        PartSet_OperationSketchBase.h
2 // Created:     20 Apr 2014
3 // Author:      Natalia ERMOLAEVA
4
5 #ifndef PartSet_OperationSketchBase_H
6 #define PartSet_OperationSketchBase_H
7
8 #include "PartSet.h"
9
10 #include <TopoDS_Shape.hxx>
11
12 #include <ModuleBase_PropPanelOperation.h>
13 #include <QObject>
14
15 /*!
16   \class PartSet_OperationSketchBase
17   * \brief The base operation for the sketch features.
18   *  Base class for all sketch operations. It provides an access to the feature preview
19 */
20 class PARTSET_EXPORT PartSet_OperationSketchBase : public ModuleBase_PropPanelOperation
21 {
22   Q_OBJECT
23 public:
24   /// Constructor
25   /// \param theId an feature index
26   /// \param theParent the object parent
27   PartSet_OperationSketchBase(const QString& theId, QObject* theParent);
28   /// Destructor
29   virtual ~PartSet_OperationSketchBase();
30
31   /// Returns the feature preview shape
32   const TopoDS_Shape& preview() const;
33 };
34
35 #endif