]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GConnectorController.cxx
BUG 1504
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GConnectorController.cxx
index 40a1a343548494603465d32d5e1a6575e8304c2e..1d07ba845fe679a10046d4870fd318e371de9608 100644 (file)
@@ -60,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;
@@ -166,7 +173,7 @@ namespace bbtk
        {
                if ( _vtkInteractorStyleBaseView!=NULL )
                {
-                       int X,Y,Z=900;
+                       int X, Y, Z=GPOSITION_Z;
                        wxVTKRenderWindowInteractor *wxVTKiren;
                        wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk3DBaseView()->GetWxVTKRenderWindowInteractor();
                        wxVTKiren->GetEventPosition(X, Y);