1 // File: PartSet_OperationSketch.h
2 // Created: 20 Apr 2014
3 // Author: Natalia ERMOLAEVA
5 #ifndef PartSet_OperationSketch_H
6 #define PartSet_OperationSketch_H
10 #include <PartSet_OperationSketchBase.h>
14 \class PartSet_OperationSketch
15 * \brief The operation for the sketch feature creation
17 class PARTSET_EXPORT PartSet_OperationSketch : public PartSet_OperationSketchBase
22 /// \param theId the feature identifier
23 /// \param theParent the operation parent
24 PartSet_OperationSketch(const QString& theId, QObject* theParent);
26 virtual ~PartSet_OperationSketch();
28 /// Returns the operation local selection mode
29 /// \param theFeature the feature object to get the selection mode
30 /// \return the selection mode
31 virtual std::list<int> getSelectionModes(boost::shared_ptr<ModelAPI_Feature> theFeature) const;
33 /// Gives the current selected objects to be processed by the operation
34 /// \param theFeature the selected feature
35 /// \param theShape the selected shape
36 virtual void setSelected(boost::shared_ptr<ModelAPI_Feature> theFeature,
37 const TopoDS_Shape& theShape);
40 /// signal about the sketch plane is selected
41 /// \param theX the value in the X direction of the plane
42 /// \param theX the value in the Y direction value of the plane
43 /// \param theX the value in the Z direction of the plane
44 void planeSelected(double theX, double theY, double theZ);
47 /// Set the plane to the current sketch
48 /// \param theShape the shape
49 void setSketchPlane(const TopoDS_Shape& theShape);