1 // File: PartSet_OperationSketchBase.h
2 // Created: 20 Apr 2014
3 // Author: Natalia ERMOLAEVA
5 #ifndef PartSet_OperationSketchBase_H
6 #define PartSet_OperationSketchBase_H
10 #include <TopoDS_Shape.hxx>
11 #include <NCollection_List.hxx>
13 #include <ModuleBase_PropPanelOperation.h>
17 \class PartSet_OperationSketchBase
18 * \brief The base operation for the sketch features.
19 * Base class for all sketch operations. It provides an access to the feature preview
21 class PARTSET_EXPORT PartSet_OperationSketchBase : public ModuleBase_PropPanelOperation
26 /// \param theId an feature index
27 /// \param theParent the object parent
28 PartSet_OperationSketchBase(const QString& theId, QObject* theParent);
30 virtual ~PartSet_OperationSketchBase();
32 /// Returns the feature preview shape
33 const TopoDS_Shape& preview() const;
35 /// Returns the operation local selection mode
36 /// \return the selection mode
37 virtual int getSelectionMode() const = 0;
39 /// Gives the current selected objects to be processed by the operation
40 /// \param a list of interactive selected objects
41 virtual void setSelectedShapes(const NCollection_List<TopoDS_Shape>& theList) = 0;
44 void viewerProjectionChange(double theX, double theY, double theZ);