X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FPartSet%2FPartSet_FeatureCirclePrs.h;h=f9688b103966f7cb261594d72951bb512ec3a16b;hb=1415276ab954e686026d88c8cf65812d16134f48;hp=ef4b8497dc2012b5edb514bc372b9761506c503b;hpb=c2b387f9978e4a306ad51d2e7f8e417416898f66;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_FeatureCirclePrs.h b/src/PartSet/PartSet_FeatureCirclePrs.h index ef4b8497d..f9688b103 100644 --- a/src/PartSet/PartSet_FeatureCirclePrs.h +++ b/src/PartSet/PartSet_FeatureCirclePrs.h @@ -10,17 +10,24 @@ #include "PartSet_FeaturePrs.h" #include "PartSet_Constants.h" +#include + class GeomDataAPI_Point2D; +class Handle_V3d_View; /*! \class PartSet_FeatureCirclePrs - * \brief The abstract class to define the specific feature manipulation. It is created for + * \brief The class to define the circle feature manipulation. It is created for * the feature create operation to move out the feature properties set and use one operation * for any type of features. */ class PARTSET_EXPORT PartSet_FeatureCirclePrs : public PartSet_FeaturePrs { public: + /// Returns the feature type processed by this presentation + /// \return the feature kind + static std::string getKind(); + /// Constructor /// \param theSketch the sketch feature PartSet_FeatureCirclePrs(FeaturePtr theSketch); @@ -44,6 +51,16 @@ public: /// \return next attribute selection mode virtual PartSet_SelectionMode getNextMode(const std::string& theAttribute) const; + /// Project the view point on the feature. The output coordinates belong to the feature + /// \param theFeature a feature + /// \param theSketch the sketch feature + /// \param thePoint a viewer point + /// \param theView the OCC view + /// \theX the output horizontal coordinate of a projected point + /// \theY the output vertical coordinate of a projected point + static void projectPointOnFeature(FeaturePtr theFeature, FeaturePtr theSketch, gp_Pnt& thePoint, + Handle_V3d_View theView, double& theX, double& theY); + protected: /// Returns the feature point in the selection mode position. /// \param theMode the current operation selection mode. The feature attribute depends on the mode