/// Converts the 2D screen point to the 3D point on the view according to the point of view
/// \param thePoint a screen point
/// \param theView a 3D view
/// Converts the 2D screen point to the 3D point on the view according to the point of view
/// \param thePoint a screen point
/// \param theView a 3D view
/// \param theX the X coordinate
/// \param theY the Y coordinate
static void convertTo2D(const gp_Pnt& thePoint, FeaturePtr theSketch,
/// \param theX the X coordinate
/// \param theY the Y coordinate
static void convertTo2D(const gp_Pnt& thePoint, FeaturePtr theSketch,
- Handle(V3d_View) theView, double& theX, double& theY);
+ Handle(V3d_View) theView,
+ double& theX, double& theY);
/// \brief Converts the 2D projected coodinates on the sketch plane to the 3D point.
/// \param theX the X coordinate
/// \brief Converts the 2D projected coodinates on the sketch plane to the 3D point.
/// \param theX the X coordinate
static void convertTo3D(const double theX, const double theY, FeaturePtr theSketch,
gp_Pnt& thePoint);
static void convertTo3D(const double theX, const double theY, FeaturePtr theSketch,
gp_Pnt& thePoint);
- /// Creates the feature presentation
- /// \param theKind a feature kind
- /// \param theSketch the sketch of the feature
- /// \param theFeature the feature
- static boost::shared_ptr<PartSet_FeaturePrs> createFeaturePrs(const std::string& theKind,
- FeaturePtr theSketch,
- FeaturePtr theFeature = FeaturePtr());
-
/// Returns a feature that is under the mouse point
/// \param thePoint a screen point
/// \param theView a 3D view
/// \param theSketch the sketch feature
/// \param theFeatures the list of selected presentations
static FeaturePtr nearestFeature(QPoint thePoint, Handle_V3d_View theView, FeaturePtr theSketch,
/// Returns a feature that is under the mouse point
/// \param thePoint a screen point
/// \param theView a 3D view
/// \param theSketch the sketch feature
/// \param theFeatures the list of selected presentations
static FeaturePtr nearestFeature(QPoint thePoint, Handle_V3d_View theView, FeaturePtr theSketch,
/// \param theAttribute the feature attribute
/// \param isValid an output parameter whether the value is valid
/// \returns the feature value
/// \param theAttribute the feature attribute
/// \param isValid an output parameter whether the value is valid
/// \returns the feature value
/// Find a feature in the attribute of the given feature. If the kind is not empty,
/// the return feature should be this type. Otherwise it is null
/// Find a feature in the attribute of the given feature. If the kind is not empty,
/// the return feature should be this type. Otherwise it is null
/// \param theKind an output feature kind
/// \return the feature
static FeaturePtr feature(FeaturePtr theFeature, const std::string& theAttribute,
/// \param theKind an output feature kind
/// \return the feature
static FeaturePtr feature(FeaturePtr theFeature, const std::string& theAttribute,
/// \param theClickedX the horizontal coordnate of the point
/// \param theClickedY the vertical coordnate of the point
static void setConstraints(FeaturePtr theSketch, FeaturePtr theFeature,
/// \param theClickedX the horizontal coordnate of the point
/// \param theClickedY the vertical coordnate of the point
static void setConstraints(FeaturePtr theSketch, FeaturePtr theFeature,