#ifndef VolumeRendererManagerData_H_
#define VolumeRendererManagerData_H_
+#include "vtkCommand.h"
#include <vtkVolumeRayCastCompositeFunction.h>
#include <vtkPlanes.h>
#include <vtkVolumeRayCastMapper.h>
#include <vtkProp3D.h>
#include <vtkRenderer.h>
#include <vtkVolumeRayCastMIPFunction.h>
+
#include <vtkLookupTable.h>
-#include <vector>
+
#include <vtkBoxWidget.h>
-#include <vtkGPUVolumeRayCastMapper.h>
-#include "vtkCommand.h"
+#include <vtkAbstractMapper.h>
+
+#if (VTK_MAYOR_VERSION>=5 && VTK_MINOR_VERSION>=6)
+ #include <vtkGPUVolumeRayCastMapper.h>
+#endif
+
+#include <vector>
+
// Callback for moving the planes from the box widget to the mapper
class vtkBoxWidgetCallback : public vtkCommand
planes->Delete();
}
}
- void SetMapper(vtkGPUVolumeRayCastMapper* m)
+ void SetMapper(vtkAbstractMapper* m)
{ this->Mapper = m; }
protected:
{ this->Mapper = 0; }
//vtkVolumeRayCastMapper *Mapper;
- vtkGPUVolumeRayCastMapper *Mapper;
+ vtkAbstractMapper *Mapper;
};
vtkVolumeRayCastCompositeFunction *_compositeFunction;
vtkPlanes *_volumePlanes;
vtkVolumeRayCastMapper *_volumeMapper;
- vtkGPUVolumeRayCastMapper *_volumeMappergpu;
+ vtkGPUVolumeRayCastMapper *_volumeMappergpu;
vtkVolumeProperty *_volumeProperty;
vtkVolume *_newvol;
vtkPiecewiseFunction* _tfun;