X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationSketchLine.h;h=b048ef8a7b451dc018878adf551a88a37d0a41af;hb=1d7a043abfadf964bf38802e8adb5a4773fec900;hp=d92224aaab9621a1a760f4f608dd55253cc40d31;hpb=277db1718bb7a3226515e4cc2272d83b463b3434;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationSketchLine.h b/src/PartSet/PartSet_OperationSketchLine.h index d92224aaa..b048ef8a7 100644 --- a/src/PartSet/PartSet_OperationSketchLine.h +++ b/src/PartSet/PartSet_OperationSketchLine.h @@ -57,7 +57,9 @@ public: /// Gives the current mouse point in the viewer /// \param thePoint a point clicked in the viewer /// \param theEvent the mouse event - virtual void mouseMoved(QMouseEvent* theEvent, Handle_V3d_View theView); + /// \param theSelected the list of selected presentations + virtual void mouseMoved(QMouseEvent* theEvent, Handle_V3d_View theView, + const std::list& theSelected); /// Processes the key pressed in the view /// \param theKey a key value virtual void keyReleased(const int theKey); @@ -88,6 +90,10 @@ protected: void createConstraint(boost::shared_ptr thePoint1, boost::shared_ptr thePoint2); + /// Creates constrains of the current + /// \param theX the horizontal coordnate of the point + /// \param theY the vertical coordnate of the point + void setConstraints(double theX, double theY); protected: /// \brief Get the line point 2d coordinates. /// \param theFeature the line feature @@ -96,6 +102,13 @@ protected: /// \param theY the vertical coordinate void getLinePoint(boost::shared_ptr theFeature, const std::string& theAttribute, double& theX, double& theY); + /// Find a point in the line with given coordinates + /// \param theFeature the line feature + /// \param theX the horizontal point coordinate + /// \param theY the vertical point coordinate + boost::shared_ptr findLinePoint(boost::shared_ptr theFeature, + double theX, double theY); + /// \brief Save the point to the line. /// \param theX the horizontal coordinate /// \param theY the vertical coordinate