]> Creatis software - creaMaracasVisu.git/commitdiff
*** empty log message ***
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 9 Jun 2011 08:40:26 +0000 (08:40 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 9 Jun 2011 08:40:26 +0000 (08:40 +0000)
lib/Kernel/VTKObjects/VolumeRenderer/volumerenderermanagerdata.h

index 802372840ebf7e83e949c8cf89cba99e1f812f0e..cfa0c879c0f7e15cc4339785b3f0821b42c61aac 100644 (file)
@@ -2,6 +2,7 @@
 #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
@@ -36,7 +44,7 @@ public:
         planes->Delete();
         }
     }
-  void SetMapper(vtkGPUVolumeRayCastMapper* m)
+  void SetMapper(vtkAbstractMapper* m)
     { this->Mapper = m; }
 
 protected:
@@ -44,7 +52,7 @@ protected:
     { this->Mapper = 0; }
 
   //vtkVolumeRayCastMapper *Mapper;
-  vtkGPUVolumeRayCastMapper *Mapper;
+  vtkAbstractMapper *Mapper;
 };
 
 
@@ -143,7 +151,7 @@ private:
         vtkVolumeRayCastCompositeFunction      *_compositeFunction;
         vtkPlanes                                                      *_volumePlanes;
         vtkVolumeRayCastMapper                         *_volumeMapper;
-        vtkGPUVolumeRayCastMapper                               *_volumeMappergpu;
+        vtkGPUVolumeRayCastMapper           *_volumeMappergpu;
         vtkVolumeProperty                                      *_volumeProperty;
         vtkVolume                                                      *_newvol;
         vtkPiecewiseFunction* _tfun;