]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Refs #288 - the profile section selected and addition mode is activated
authornds <nds@opencascade.com>
Wed, 25 Dec 2013 16:00:03 +0000 (16:00 +0000)
committernds <nds@opencascade.com>
Wed, 25 Dec 2013 16:00:03 +0000 (16:00 +0000)
src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx
src/HYDROGUI/HYDROGUI_ProfileDlg.cxx

index 35be05cd0187f33c40e768357d133f30320d7001..7bb035f06bf3e14b3a461239f8b7386c395859a2 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "HYDROGUI_Tool.h"
 
-#include <GEOMUtils.hxx>
+#include <CurveCreator_Utils.h>
 
 #include <OCCViewer_ViewWindow.h>
 #include <OCCViewer_ViewManager.h>
@@ -309,8 +309,8 @@ void HYDROGUI_GeoreferencementDlg::onMousePress(
 
   // Get the selected point coordinates
   OCCViewer_ViewPort3d* aViewPort = anOCCViewWindow->getViewPort();
-  gp_Pnt aPnt = GEOMUtils::ConvertClickToPoint( theEvent->x(), theEvent->y(), 
-                                                aViewPort->getView() );
+  gp_Pnt aPnt = CurveCreator_Utils::ConvertClickToPoint( theEvent->x(), theEvent->y(), 
+                                                         aViewPort->getView() );
 
   // Set the coordinates to the corresponding cells of the table
   int aColumnX = aColumn < 3 ? 1 : 3;
index 9c10ea4a994f448b5d68f2a7e72c66eb8c141e97..611e888f23d5589dbecef5ea1ba69e4f91fc435b 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <CurveCreator_Widget.h>
 #include <CurveCreator_ICurve.hxx>
+#include <CurveCreator_Utils.h>
 
 #include <OCCViewer_ViewPort3d.h>
 #include <OCCViewer_Utilities.h>
@@ -37,8 +38,6 @@
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
 
-#include <GEOMUtils.hxx>
-
 #include <QGroupBox>
 #include <QHBoxLayout>
 #include <QLabel>
@@ -204,7 +203,7 @@ void HYDROGUI_ProfileDlg::onMouseMove( SUIT_ViewWindow* theViewWindow, QMouseEve
   OCCViewer_ViewWindow* anOCCViewWindow = 
     dynamic_cast<OCCViewer_ViewWindow*>(theViewWindow);
   if ( anOCCViewWindow && anOCCViewWindow->getViewPort() ) {
-    gp_Pnt aPnt = GEOMUtils::ConvertClickToPoint( 
+    gp_Pnt aPnt = CurveCreator_Utils::ConvertClickToPoint( 
       theEvent->x(), theEvent->y(), anOCCViewWindow->getViewPort()->getView() );
 
     // Show the coordinates