#include <vtkImageData.h>
#include <vtkProp3D.h>
#include <vtkRenderer.h>
+#include <vtkVolumeRayCastMIPFunction.h>
#include <vector>
/**
** Check if the variables are setted correctly
**/
- void checkInvariant();
+ void checkInvariant()throw (char *);
+
+ /**
+ ** Updates volume
+ **/
+ void Update();
+
/**
** get the prop3D
**/
vtkProp3D* getProp3D();
+
/**
** return the id from the daat
**/
int getId();
+
/**
** set data id
**/
void setId(int propid);
+
/**
** Get the filanme
**/
std::string getDataname();
+
/**
** Set the filanme
**/
- void setDataname(std::string dataname);
-
+ void setDataname(std::string dataname);
/**
** Set Volume Color
** Volume Opacity
**/
void setVolumeOpacity(std::vector<double> greylevel,std::vector<double> value);
+
+ vtkPiecewiseFunction* GetTransferFunction(){
+ return _tfun;
+ }
+
+ vtkColorTransferFunction* GetColorFunction(){
+ return _ctfun;
+ }
+
+ void changeCompositeMIPFunction(int function) throw (char *);
protected:
/**
vtkVolume *_newvol;
vtkPiecewiseFunction* _tfun;
vtkColorTransferFunction* _ctfun;
+ vtkVolumeRayCastMIPFunction* _MIPFunction;
};