]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.h
The actual version updates the status bar with the highlighted object ... Also it...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / vtkGObjectView.h
index 5c15592c3bc160911387dda6fa2527f933a3335c..691d2ef3290690c5887ebc58badc5272d261222d 100644 (file)
@@ -46,13 +46,14 @@ Version:   $Revision$
 //Includes same project
 #include "GlobalConstants.h"
 #include "GObjectModel.h"
+#include "Observer.h"
 
 //Includes creaMaracasVisu
 #include <wxVtkBaseView.h>
+#include <vtkInteractorStyleBaseView.h>
 
 //Includes vtk
 #include <vtkRenderer.h>
-
 #include "vtkConeSource.h"
 #include "vtkPolyDataMapper.h"
 #include "vtkActor.h"
@@ -65,7 +66,7 @@ Version:   $Revision$
 namespace bbtk
 {
 
-       class vtkGObjectView 
+       class vtkGObjectView : public Observer
        {
 
        public: 
@@ -79,13 +80,23 @@ namespace bbtk
                void setBaseView(wxVtkBaseView* baseView);
                void initVtkObjects();
                
-               bool isPointInside(int X,int Y);
+               virtual bool isPointInside(int X,int Y);
+               virtual void moveObject(int X, int Y);
+
+               virtual void update(int idController,int command);
+               void setStartDragging(bool param);
 
-               virtual void refresh();
+               void setState(int state);
+               int getState();
+               void setRefreshWaiting();
 
        private:
 
                //Private Attributes
+               bool _isStartDragging;
+               double dragDifX;
+               double dragDifY;
+
 
                //Private Methods
                
@@ -94,11 +105,17 @@ namespace bbtk
                //Protected Attributes
                wxVtkBaseView *_baseView;
                GObjectModel *_model;
-               vtkActor *_objectActor;
-
+               vtkActor *_borderObjectActor;
+               vtkActor *_fillObjectActor;
+               vtkPolyDataMapper* _fillPolyMapper;
+               vtkPolyDataMapper* _borderPolyMapper;
+               vtkPoints *_pts;
+               int  _state;
+               
                //Protected Methods
                virtual void createVtkObjects();
                virtual void addVtkActors();
+               virtual void updateColors();
        };