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>
12 #include <ModuleBase_PropPanelOperation.h>
15 class AIS_ListOfInteractive;
18 \class PartSet_OperationSketchBase
19 * \brief The base operation for the sketch features.
20 * Base class for all sketch operations. It provides an access to the feature preview
22 class PARTSET_EXPORT PartSet_OperationSketchBase : public ModuleBase_PropPanelOperation
27 /// \param theId an feature index
28 /// \param theParent the object parent
29 PartSet_OperationSketchBase(const QString& theId, QObject* theParent);
31 virtual ~PartSet_OperationSketchBase();
33 /// Returns the feature preview shape
34 const TopoDS_Shape& preview() const;
36 /// Returns the operation local selection mode
37 /// \return the selection mode
38 virtual int getSelectionMode() const = 0;
40 /// Gives the current selected objects to be processed by the operation
41 /// \param a list of interactive selected objects
42 virtual void setSelectedObjects(const AIS_ListOfInteractive& aList) = 0;