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>
14 #include <vtkVolumeRayCastMIPFunction.h>
19 class wxMaracasMultipleVolumeRendererManagerData {
22 wxMaracasMultipleVolumeRendererManagerData(vtkImageData* vol, std::string dataname="");
23 ~wxMaracasMultipleVolumeRendererManagerData();
26 ** Check if the variables are setted correctly
28 void checkInvariant()throw (char *);
38 vtkProp3D* getProp3D();
41 ** return the id from the daat
48 void setId(int propid);
53 std::string getDataname();
58 void setDataname(std::string dataname);
63 void setVolumeColor(std::vector<double>& greylevel,
64 std::vector<double>& red,
65 std::vector<double>& green,
66 std::vector<double>& blue);
71 void setVolumeOpacity(std::vector<double> greylevel,std::vector<double> value);
73 vtkPiecewiseFunction* GetTransferFunction(){
77 vtkColorTransferFunction* GetColorFunction(){
81 void changeCompositeMIPFunction(int function) throw (char *);
85 * Prop 3D (data actor)
89 * Dataname given by the user (ex. filename)
91 std::string _dataname;
101 vtkVolumeRayCastCompositeFunction *_compositeFunction;
102 vtkPlanes *_volumePlanes;
103 vtkVolumeRayCastMapper *_volumeMapper;
104 vtkVolumeProperty *_volumeProperty;
106 vtkPiecewiseFunction* _tfun;
107 vtkColorTransferFunction* _ctfun;
108 vtkVolumeRayCastMIPFunction* _MIPFunction;
113 #endif /*wxMaracasMultipleVolumeRendererManagerData_H_*/