]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx
Organizing code, the state now is in the view and the general render was simplified...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / vtkGObjectView.cxx
index 51761e7210662c5b37bc56f32012ab1f7144da4f..db905de37425c75e0cf4bce7efa68893e5fd6353 100644 (file)
@@ -46,6 +46,8 @@ namespace bbtk
                _baseView=NULL;
                _objectActor=NULL;
                _isStartDragging=false;
+               
+               _state = NOTHING_HAPPENS;
        }
 
        //=========================================================================
@@ -54,7 +56,7 @@ namespace bbtk
        }
        //=========================================================================
 
-       void vtkGObjectView::update(int command)//virtual
+       void vtkGObjectView::update(int idObservable,int command)//virtual
        {
                //virtual
        }
@@ -90,6 +92,13 @@ namespace bbtk
 
        //=========================================================================
 
+       void vtkGObjectView::updateColors() //virtual
+       {
+               //virtual
+       }
+
+       //=========================================================================
+
        void vtkGObjectView::addVtkActors()//virtual
        {
                _baseView->GetRenderer()->AddActor(_objectActor);
@@ -141,6 +150,28 @@ namespace bbtk
 
        //=========================================================================
 
+       void vtkGObjectView::setState(int state)
+       {
+               _state = state;
+       }
+
+       //=========================================================================
+
+       int vtkGObjectView::getState()
+       {
+               return _state;
+       }
+
+       //=========================================================================
+
+       void vtkGObjectView::setRefreshWaiting()
+       {
+               ((vtkInteractorStyleBaseView*)_baseView->GetInteractorStyleBaseView())->SetRefresh_waiting();
+       }
+
+       //=========================================================================
+
+
 }  // EO namespace bbtk
 
 // EOF