1 #ifndef WXMARACASSURFACERENDERINGMANAGERDATA_H_
2 #define WXMARACASSURFACERENDERINGMANAGERDATA_H_
5 #include "vtkRenderer.h"
6 #include "vtkSTLReader.h"
7 #include "vtkPolyDataMapper.h"
9 #include "vtkProperty.h"
10 #include "vtkBoxWidget.h"
17 class wxMaracasSurfaceRenderingManagerData {
20 wxMaracasSurfaceRenderingManagerData(vtkProp3D* _prop3Dvect, std::string dataname="", vtkRenderWindowInteractor* interactor=NULL);
21 ~wxMaracasSurfaceRenderingManagerData();
24 ** Adds a prop3D to the world of the application
26 void setProp3D(vtkProp3D* prop3D);
28 ** Changes the opacity in a prop3D
30 void changeOpacity(int value);
32 ** Check if the variables are setted correctly
34 void checkInvariant();
38 vtkProp3D* getProp3D();
40 ** return the id from the daat
46 void setId(int propid);
50 std::string getDataname();
54 void setDataname(std::string dataname);
59 void contourExtractor(int isovalue);
62 ** Changes the color of the actor
64 void changeColor(double red, double green, double blue);
67 ** adds or removes the surface box
69 void addRemoveSurfaceBox(bool visible);
71 void initializeBoxWidget(vtkRenderWindowInteractor* interactor);
73 void saveProp3DSTL(const char* filename);
75 virtual void enableBoxWidget(bool enable);
78 vtkPolyDataMapper* _dataMapper;
80 * Prop 3D (data actor)
84 * Dataname given by the user (ex. filename)
86 std::string _dataname;
91 vtkBoxWidget* _boxWidgetS1;
104 #endif /*WXMARACASSURFACERENDERINGMANAGERDATA_H_*/