]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.cxx
Necessary changes to manage the basic action . First prototype totally completed...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GObjectController.cxx
index 37b5de2d4ddf64067a6ed54e61cfe219614723e3..6b1174ff43faa6425f71f49d1a29e053ceaa1fbc 100644 (file)
@@ -62,6 +62,8 @@ namespace bbtk
 bool GObjectController::OnMouseMove()
 {
        
+       /**********************   VIRTUAL *************************/
+
        if ( _vtkInteractorStyleBaseView!=NULL)
        {
                int X,Y;
@@ -97,11 +99,15 @@ bool GObjectController::OnMouseMove()
                
                _model->notifyObservers();
        }
+
+       /**/
+
        return true;
 }
 //=========================================================================
 bool GObjectController::OnLeftButtonDown()
 {
+       /**********************   VIRTUAL *************************
        
        if ( _vtkInteractorStyleBaseView!=NULL )
        {
@@ -115,7 +121,7 @@ bool GObjectController::OnLeftButtonDown()
                //Evaluate new state
                if(!_model->hasChanged() && state==HIGHLIGHTED)
                {
-                       _view->isFirstDragging(true);
+                       _view->isStartDragging(true);
                        _model->setState(DRAG);
                        _model->setChanged();
                }
@@ -124,7 +130,7 @@ bool GObjectController::OnLeftButtonDown()
                {
                        if(_view->isPointInside(X,Y))
                        {
-                               _view->isFirstDragging(true);
+                               _view->isStartDragging(true);
                                _model->setState(DRAG);
                                _model->setChanged();
                        }       
@@ -132,11 +138,17 @@ bool GObjectController::OnLeftButtonDown()
                
                _model->notifyObservers();
        }
+
+       */
+
        return true;
 }
 //=========================================================================
 bool GObjectController::OnLeftButtonUp()
 {
+
+       /**********************   VIRTUAL *************************
+
        if ( _vtkInteractorStyleBaseView!=NULL )
        {
                int X,Y;
@@ -162,11 +174,15 @@ bool GObjectController::OnLeftButtonUp()
                _model->notifyObservers();
 
        }
+
+       */
        return true;
 }
 //=========================================================================
 bool GObjectController::OnLeftDClick()
 {
+       /**********************   VIRTUAL *************************
+
        if ( _vtkInteractorStyleBaseView!=NULL )
        {
                int X,Y;
@@ -176,11 +192,15 @@ bool GObjectController::OnLeftDClick()
 
                _model->notifyObservers();
        }
+
+       */
        return true;
 }
 //=========================================================================
 bool GObjectController::OnRightButtonDown()
 {
+       /**********************   VIRTUAL *************************/
+
        if( _vtkInteractorStyleBaseView!= NULL )
        {
                int X,Y;
@@ -199,7 +219,11 @@ bool GObjectController::OnRightButtonDown()
 
                _model->notifyObservers();
        }
+       
+       /**/
+
        return true;
+
 }
 
 //=========================================================================