* \brief Class bbtk::vtkGBlackBoxView : abstract black-box interface.
*/
-/**
-* \class bbtk::vtkGBlackBoxView
-* \brief
-*/
+/****
+* Design and Developpement of BBTK GEditor
+* Ricardo A Corredor J <ra.corredor67@uniandes.edu.co>
+* RaC - 2010
+****/
#ifndef __vtkGBlackBoxView_h__
#define __vtkGBlackBoxView_h__
//Includes same project
#include "GlobalConstants.h"
-#include "vtkGObjectView.h"
+#include "vtkGBoxView.h"
+#include "GBlackBoxModel.h"
//Includes creaMaracasVisu
+#include "vtkInteractorStyleBaseView.h"
+
//Includes vtk
#include "vtkPolyDataMapper.h"
namespace bbtk
{
- class vtkGBlackBoxView : public vtkGObjectView
+ class vtkGBlackBoxView : public vtkGBoxView
{
public:
private:
//Private Attributes
- vtkPoints *_pts;
- vtkActor* _nameActor;
- vtkActor* _typeActor;
-
- //vtkVectorText* _vectorNameText;
- vtkTextActor3D* _vectorNameText;
-
- vtkVectorText* _vectorTypeText;
+ vtkTextActor3D* _boxTextActor;
//Private Methods
- void updatePositionTextActors(double xInic, double yInic, double zInic);
+ void updatePositionTextActor(double xInic, double yInic, double zInic);
protected:
//Protected Methods
virtual void addVtkActors();
+ virtual void removeVtkActors();
virtual void createVtkObjects();
- virtual void update(int command);
+
+ virtual void update(int idController,int command);
+ virtual void updateColors();
};