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"
19 class wxMaracasSurfaceRenderingManagerData {
22 wxMaracasSurfaceRenderingManagerData(vtkProp3D* _prop3Dvect, std::string dataname="", vtkRenderWindowInteractor* interactor=NULL);
23 wxMaracasSurfaceRenderingManagerData(string filename, vtkRenderWindowInteractor* interactor);
24 ~wxMaracasSurfaceRenderingManagerData();
27 ** Adds a prop3D to the world of the application
29 void setProp3D(vtkProp3D* prop3D);
31 ** Changes the opacity in a prop3D
33 void changeOpacity(int value);
35 ** Check if the variables are setted correctly
37 void checkInvariant();
41 vtkProp3D* getProp3D();
43 ** return the id from the daat
49 void setId(int propid);
53 std::string getDataname();
57 void setDataname(std::string dataname);
62 void contourExtractor(int isovalue);
65 ** Changes the color of the actor
67 void changeColor(double red, double green, double blue);
70 ** adds or removes the surface box
72 void addRemoveSurfaceBox(bool visible);
74 void initializeBoxWidget(vtkRenderWindowInteractor* interactor);
76 void saveProp3DSTL(const char* filename);
78 virtual void enableBoxWidget(bool enable);
80 void exportImageStencil(const char* filename);
82 vtkProp3D* getProp3D(std::string filename);
84 vtkPolyDataMapper* _dataMapper;
86 * Prop 3D (data actor)
90 * Dataname given by the user (ex. filename)
92 std::string _dataname;
97 vtkBoxWidget* _boxWidgetS1;
110 #endif /*WXMARACASSURFACERENDERINGMANAGERDATA_H_*/