Salome HOME
Add a new 'moveSection' operation to change position of section in the list.
[modules/hydro.git] / src / HYDROCurveCreator / CurveCreator_Widget.h
index 39e752d8440dc9f22c03eb612c0170aaa05c6855..f17cf3d17f567238a4f2f6fd6798965141e3740e 100644 (file)
@@ -157,6 +157,7 @@ private:
 
   // curve algorithm
   int  findLocalPointIndex( int theSectionId, float theX, float theY );
+  void findSections( int thePointId, QList<int>& theSections );
 
   // OCC algorithm
   bool pointOnObject( Handle(AIS_InteractiveObject) theObject,
@@ -164,7 +165,7 @@ private:
                       gp_Pnt& thePoint, int& thePoint1, int& thePoint2 );
   bool hasProjectPointOnCurve( const int theX, const int theY,
                                const Handle(Geom_Curve)& theCurve,
-                               gp_Pnt& theOutPoint );
+                               Standard_Real& theParameter );
 
 private:
   QMap<ActionId, QAction*>    myActionMap;
@@ -176,8 +177,10 @@ private:
   int                         mySection;
   int                         myPointNum;
   bool                        myDragStarted;
-  QList<int>                  myDragPoints;
   QPoint                      myDragStartPosition;
+  int                         myDragInteractionStyle;
+  QList<int>                  myDragPoints;
+  bool                        myDragged;
   QByteArray                  myGuiState;
 };