]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.h
Organizing code, the state now is in the view and the general render was simplified...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / vtkGObjectView.h
index e15232f4bf16368250bd8bfc4af2361eef00a51f..ce1e4ce8f432875bfc7378d71f473a1578f811a3 100644 (file)
@@ -50,6 +50,7 @@ Version:   $Revision$
 
 //Includes creaMaracasVisu
 #include <wxVtkBaseView.h>
+#include <vtkInteractorStyleBaseView.h>
 
 //Includes vtk
 #include <vtkRenderer.h>
@@ -82,9 +83,13 @@ namespace bbtk
                virtual bool isPointInside(int X,int Y);
                virtual void moveObject(int X, int Y);
 
-               virtual void update(int command);
+               virtual void update(int idObservable,int command);
                void isStartDragging(bool param);
 
+               void setState(int state);
+               int getState();
+               void setRefreshWaiting();
+
        private:
 
                //Private Attributes
@@ -101,10 +106,12 @@ namespace bbtk
                wxVtkBaseView *_baseView;
                GObjectModel *_model;
                vtkActor *_objectActor;
+               int  _state;
                
                //Protected Methods
                virtual void createVtkObjects();
                virtual void addVtkActors();
+               virtual void updateColors();
        };