]> SALOME platform Git repositories - modules/shaper.git/blob - src/PartSet/PartSet_OperationSketchBase.h
Salome HOME
refs #30 - Sketch base GUI: create, draw lines
[modules/shaper.git] / src / PartSet / PartSet_OperationSketchBase.h
1 #ifndef PartSet_OperationSketchBase_H
2 #define PartSet_OperationSketchBase_H
3
4 #include "PartSet.h"
5
6 #include <TopoDS_Shape.hxx>
7
8 #include <ModuleBase_PropPanelOperation.h>
9 #include <QObject>
10
11 /*!
12  \class PartSet_OperationSketchBase
13  * \brief The base operation for the sketch features.
14  *
15  *  Base class for all sketch operations. It provides an access to the feature preview
16 */
17 class PARTSET_EXPORT PartSet_OperationSketchBase : public ModuleBase_PropPanelOperation
18 {
19 Q_OBJECT
20 public:
21   PartSet_OperationSketchBase(const QString& theId, QObject* theParent);
22   virtual ~PartSet_OperationSketchBase();
23
24   const TopoDS_Shape& preview() const;
25
26 signals:
27   /**
28    * The signal about preview visualization.
29    * \param isDisplay a state whether the preview should be displayed or erased
30    */
31   void visualizePreview(bool isDisplay);
32
33 protected:
34   virtual void startOperation();
35   virtual void stopOperation();
36 };
37
38 #endif