]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GConnectorController.cxx
BUG 1504
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GConnectorController.cxx
index c97055f814ef5b80ae9563b953c152e233abe76d..1d07ba845fe679a10046d4870fd318e371de9608 100644 (file)
@@ -36,6 +36,9 @@ Version:   $Revision$
 
 #include "GConnectorController.h"
 
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
 namespace bbtk
 {
 
@@ -57,6 +60,13 @@ namespace bbtk
        bool GConnectorController::OnMouseMove()
        {
 
+               printf("EED GConnectorController::OnMouseMove  state%d\n", _view->getState() );
+               
+               if (_view->getState() ==SELECTED)
+               {
+                       _controller->GetManualViewBaseContour()->SetSelected(true);
+               }
+               
                if ( _vtkInteractorStyleBaseView!=NULL)
                {
                        int X,Y;
@@ -137,7 +147,6 @@ namespace bbtk
 
        bool GConnectorController::OnRightButtonDown()
        {
-printf ("GConnectorController::OnRightButtonDown 1 \n"  );
                if( _vtkInteractorStyleBaseView!= NULL )
                {
                        int X,Y;
@@ -148,7 +157,6 @@ printf ("GConnectorController::OnRightButtonDown 1 \n"  );
                        _controller->MouseClickRight(X,Y);
 
                }
-printf ("GConnectorController::OnRightButtonDown 2 \n"  );
                return true;
        }
 
@@ -165,7 +173,7 @@ printf ("GConnectorController::OnRightButtonDown 2 \n"  );
        {
                if ( _vtkInteractorStyleBaseView!=NULL )
                {
-                       int X,Y,Z=900;
+                       int X, Y, Z=GPOSITION_Z;
                        wxVTKRenderWindowInteractor *wxVTKiren;
                        wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk3DBaseView()->GetWxVTKRenderWindowInteractor();
                        wxVTKiren->GetEventPosition(X, Y);