1 #ifndef wxMaracasMultipleVolumeRendererManagerData_H_
2 #define wxMaracasMultipleVolumeRendererManagerData_H_
4 #include <vtkVolumeRayCastCompositeFunction.h>
6 #include <vtkVolumeRayCastMapper.h>
7 #include <vtkVolumeProperty.h>
9 #include <vtkPiecewiseFunction.h>
10 #include <vtkColorTransferFunction.h>
11 #include <vtkImageData.h>
12 #include <vtkProp3D.h>
13 #include <vtkRenderer.h>
18 class wxMaracasMultipleVolumeRendererManagerData {
21 wxMaracasMultipleVolumeRendererManagerData(vtkImageData* vol, std::string dataname="");
22 ~wxMaracasMultipleVolumeRendererManagerData();
25 ** Check if the variables are setted correctly
27 void checkInvariant();
37 vtkProp3D* getProp3D();
40 ** return the id from the daat
47 void setId(int propid);
52 std::string getDataname();
57 void setDataname(std::string dataname);
62 void setVolumeColor(std::vector<double>& greylevel,
63 std::vector<double>& red,
64 std::vector<double>& green,
65 std::vector<double>& blue);
70 void setVolumeOpacity(std::vector<double> greylevel,std::vector<double> value);
72 vtkPiecewiseFunction* GetTransferFunction(){
76 vtkColorTransferFunction* GetColorFunction(){
82 * Prop 3D (data actor)
86 * Dataname given by the user (ex. filename)
88 std::string _dataname;
98 vtkVolumeRayCastCompositeFunction *_compositeFunction;
99 vtkPlanes *_volumePlanes;
100 vtkVolumeRayCastMapper *_volumeMapper;
101 vtkVolumeProperty *_volumeProperty;
103 vtkPiecewiseFunction* _tfun;
104 vtkColorTransferFunction* _ctfun;
109 #endif /*wxMaracasMultipleVolumeRendererManagerData_H_*/