]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/manualConnectorContourController.cxx
Feature #1666
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / manualConnectorContourController.cxx
index a1c234a00b5a20ed5d2b3a7ecc2aa3abae128bc6..1fb59cf3888a3bd1063c24d98aabe774e1920bab 100644 (file)
@@ -55,7 +55,9 @@ namespace bbtk
 
        void manualConnectorContourController::MouseMove(int x, int y) // virtual
        {
+               
                int z=GetZ();
+               
                GetManualViewBaseContour()->SelectPosiblePoint(x,y,z);
                GetManualViewBaseContour()->SelectPosibleContour(x,y,z);
                if (GetState()==1){     SetPoint( _bakIdPoint , x , y ,z); }
@@ -97,9 +99,10 @@ namespace bbtk
        {
 
                bool ok = false;
-               int z   = GetZ();
+               int z=GetZ();
                int size= GetManualViewBaseContour()->GetNumberOfPoints();
 
+               
                // Insert a Control Point with shift+ClickLeft
                vtkRenderWindowInteractor *vtkrenderwindowinteractor = _vtkInteractorStyleBaseView->GetInteractor();
                if( IsEditable() )
@@ -171,10 +174,12 @@ namespace bbtk
                        GetManualViewBaseContour()->InitMove(x,y,z);
                        SetState(6);
                }
+               
                if (ok==true)
                {
                        GetManualViewBaseContour()->Refresh();
-               }
+               }// ok
+               
        }
        
        //=========================================================================