]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSet/PartSet_FeatureLengthPrs.h
Salome HOME
refs #80 - Sketch base GUI: create/draw point, circle and arc
[modules/shaper.git] / src / PartSet / PartSet_FeatureLengthPrs.h
index 1bd7f8c1f4dace6db0a8b36ca1cf3155894ec8c9..90b1edd4a34bf6d4f1527a65736d973ef4d0c6c9 100644 (file)
@@ -11,6 +11,7 @@
 #include "PartSet_Constants.h"
 
 class GeomDataAPI_Point2D;
+class Handle_AIS_InteractiveObject;
 
 /*!
  \class PartSet_FeatureLengthPrs
@@ -31,6 +32,12 @@ public:
   /// Destructor
   virtual ~PartSet_FeatureLengthPrs() {};
 
+  /// Sets the feature to to a feature attribute depending on the selection mode
+  /// \param theFeature a feature instance
+  /// \param theMode the selection mode
+  /// \return whether the feature is set
+  virtual bool setFeature(FeaturePtr theFeature, const PartSet_SelectionMode& theMode);
+
   /// Sets the point to the feature in an attribute depending on the selection mode
   /// \param theX the 2D point horizontal coordinate
   /// \param theY the 2D point vertical coordinate
@@ -39,11 +46,14 @@ public:
   virtual PartSet_SelectionMode setPoint(double theX, double theY,
                                          const PartSet_SelectionMode& theMode);
 
-  /// Sets the feature to to a feature attribute depending on the selection mode
-  /// \param theFeature a feature instance
-  /// \param theMode the selection mode
-  /// \return whether the feature is set
-  virtual bool setFeature(FeaturePtr theFeature, const PartSet_SelectionMode& theMode);
+  /// Creates an AIS presentation if the previous is null or update the given one
+  /// \param theFeature a feature
+  /// \param theSketch a feature sketch
+  /// \param thePrevious a previuos AIS presentation
+  /// \return a created/changed AIS object with the feature parameters
+  static Handle_AIS_InteractiveObject createPresentation(FeaturePtr theFeature,
+                                                         FeaturePtr theSketch,
+                                                         Handle_AIS_InteractiveObject thePreviuos);
 
   /// Returns the feature attribute name for the selection mode
   /// \param theMode the current operation selection mode. The feature attribute depends on the mode