Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / PartSet / PartSet_OperationSketchBase.h
index bcc3f3aa1a5e9f110ef679735ed8348e5a919074..48aa06c840fc0878d6b496543f17a92d0b1af7c1 100644 (file)
@@ -33,11 +33,13 @@ public:
   virtual ~PartSet_OperationSketchBase();
 
   /// Returns the feature preview shape
-  boost::shared_ptr<GeomAPI_Shape> preview() const;
+  /// \param theFeature the feature object to obtain the preview
+  boost::shared_ptr<GeomAPI_Shape> preview(boost::shared_ptr<ModelAPI_Feature> theFeature) const;
 
   /// Returns the operation local selection mode
+  /// \param theFeature the feature object to get the selection mode
   /// \return the selection mode
-  virtual int getSelectionMode() const = 0;
+  virtual int getSelectionMode(boost::shared_ptr<ModelAPI_Feature> theFeature) const = 0;
 
   /// Gives the current selected objects to be processed by the operation
   /// \param theList a list of interactive selected shapes
@@ -50,6 +52,23 @@ public:
   /// Processes the mouse move in the point
   /// \param thePoint a 3D point clicked in the viewer
   virtual void mouseMoved(const gp_Pnt& thePoint) {};
+
+  /// Processes the key pressed in the view
+  /// \param theKey a key value
+  virtual void keyReleased(const int theKey) {};
+
+signals:
+  /// Signal about the feature construing is finished
+  /// \param theFeature the result feature
+  void featureConstructed(boost::shared_ptr<ModelAPI_Feature> theFeature);
+
+public:
+  /// temporary code to provide edition mode
+  void setEditMode(const bool isEditMode) { myIsEditMode = isEditMode; };
+protected:
+  bool isEditMode() const { return myIsEditMode; }
+private:
+  bool myIsEditMode;
 };
 
 #endif