]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/manualConnectorContourController.cxx
It is possible to delete connections !!!
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / manualConnectorContourController.cxx
index 0a352646e70a6e3d9d6a279def8c2232808c94fa..415c64d138815916a18f1a3848106beaa70d87a7 100644 (file)
@@ -46,9 +46,37 @@ namespace bbtk
        }
 
        //=========================================================================
+       
        manualConnectorContourController::~manualConnectorContourController()
        {
        }
+
+       //=========================================================================
+
+       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); }
+               if (GetState()==5){     SetPoint( _bakIdPoint , x , y ,z); }
+               if ( GetState()==6 && !IsEditable() && GetPosibleToMove() &&IsMoving() )
+               {
+                       //GetManualViewBaseContour()->MoveContour(x,y,z);
+               }
+               if (GetState()!=7 || GetManualViewBaseContour()->GetPosibleSelected() ){
+                       GetManualViewBaseContour()->Refresh();
+                       this->_vtkInteractorStyleBaseView->SetRefresh_waiting();
+               }
+               if (!IsEditable())
+               {
+                       GetManualViewBaseContour()->RemoveControlPoints();
+                       GetManualViewBaseContour()->Refresh();
+                       this->_vtkInteractorStyleBaseView->SetRefresh_waiting();
+               }
+
+       }
+
        //=========================================================================
 
        void manualConnectorContourController::MouseClickRight(int x, int y)
@@ -60,11 +88,7 @@ namespace bbtk
                SetEditable( false );
                SetPosibleToMove( false );
                SetState(0);
-
-               if(!_created)
-               {
-                       //DeleteContour();
-               }
+               
        }
 
        //=========================================================================