//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>
namespace bbtk
{
- class vtkGObjectView
+ class vtkGObjectView : public Observer
{
public:
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 refresh();
+ virtual void update(int idController,int command);
+ void setStartDragging(bool param);
+
+ void setState(int state);
+ int getState();
+ void setRefreshWaiting();
private:
//Private Attributes
+ bool _isStartDragging;
+ double dragDifX;
+ double dragDifY;
+
//Private Methods
//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();
};