Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OCC functionality moving out from the widget
[modules/hydro.git]
/
src
/
HYDROCurveCreator
/
CurveCreator_Utils.h
diff --git
a/src/HYDROCurveCreator/CurveCreator_Utils.h
b/src/HYDROCurveCreator/CurveCreator_Utils.h
index c9ca61547e4862497bd9964a9d4c205da07123d1..28b6bb50c73756f0f0ff04b4f852d547b2ba6892 100644
(file)
--- a/
src/HYDROCurveCreator/CurveCreator_Utils.h
+++ b/
src/HYDROCurveCreator/CurveCreator_Utils.h
@@
-27,6
+27,8
@@
#include <gp_Pnt.hxx>
#include <Geom_Curve.hxx>
#include <gp_Pnt.hxx>
#include <Geom_Curve.hxx>
+#include <list>
+
class CurveCreator_Utils
{
public:
class CurveCreator_Utils
{
public:
@@
-52,7
+54,14
@@
public:
* \retval gp_Pnt Returns the point clicked in 3D view
*/
CURVECREATOR_EXPORT static gp_Pnt ConvertClickToPoint( int x, int y,
* \retval gp_Pnt Returns the point clicked in 3D view
*/
CURVECREATOR_EXPORT static gp_Pnt ConvertClickToPoint( int x, int y,
- Handle(V3d_View) theView );
+ Handle(V3d_View) theView );
+
+ /**
+ * Find selected points in the context
+ * \param theContext the viewer context
+ */
+ CURVECREATOR_EXPORT static std::list<float> getSelectedPoints(
+ Handle(AIS_InteractiveContext) theContext );
/*!
* \brief Sets the local point context for the 3D viewer.
/*!
* \brief Sets the local point context for the 3D viewer.
@@
-78,6
+87,8
@@
public:
const int theX, const int theY,
gp_Pnt& thePoint, gp_Pnt& thePoint1,
gp_Pnt& thePoint2 );
const int theX, const int theY,
gp_Pnt& thePoint, gp_Pnt& thePoint1,
gp_Pnt& thePoint2 );
+
+protected:
/**
* Checks whether the point belongs to the OCC object
* \param theObject a line or shape with a bspline inside
/**
* Checks whether the point belongs to the OCC object
* \param theObject a line or shape with a bspline inside