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"
14 class wxMaracasSurfaceRenderingManagerData {
17 wxMaracasSurfaceRenderingManagerData(vtkProp3D* _prop3Dvect, std::string dataname="", vtkRenderWindowInteractor* interactor=NULL);
18 ~wxMaracasSurfaceRenderingManagerData();
21 ** Adds a prop3D to the world of the application
23 void setProp3D(vtkProp3D* prop3D);
25 ** Changes the opacity in a prop3D
27 void changeOpacity(int value);
29 ** Check if the variables are setted correctly
31 void checkInvariant();
35 vtkProp3D* getProp3D();
37 ** return the id from the daat
43 void setId(int propid);
47 std::string getDataname();
51 void setDataname(std::string dataname);
56 void contourExtractor(int isovalue);
59 ** Changes the color of the actor
61 void changeColor(double red, double green, double blue);
64 ** adds or removes the surface box
66 void addRemoveSurfaceBox(bool visible);
68 void initializeBoxWidget(vtkRenderWindowInteractor* interactor);
70 void saveProp3DSTL(const char* filename);
72 virtual void enableBoxWidget(bool enable);
75 vtkPolyDataMapper* _dataMapper;
77 * Prop 3D (data actor)
81 * Dataname given by the user (ex. filename)
83 std::string _dataname;
88 vtkBoxWidget* _boxWidgetS1;
101 #endif /*WXMARACASSURFACERENDERINGMANAGERDATA_H_*/