#include "PartSet_Constants.h"
class GeomDataAPI_Point2D;
+class Handle_AIS_InteractiveObject;
/*!
\class PartSet_FeatureLengthPrs
/// 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
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