]> Creatis software - creaMaracasVisu.git/blobdiff - lib/Kernel/VTKObjects/VolumeRenderer/volumerenderermanagerdata.h
#3207 creaMaracasVisu Feature New Normal branch vtk7itk4wx3-mingw
[creaMaracasVisu.git] / lib / Kernel / VTKObjects / VolumeRenderer / volumerenderermanagerdata.h
index a26f18a95df35da05d8cee06bbe861f491a25210..bcf6ea25b89d1677a8da10bf8779e0cfb3525f02 100644 (file)
 #define VolumeRendererManagerData_H_
 
 #include "vtkCommand.h"
-#include <vtkVolumeRayCastCompositeFunction.h>
+
+#if (VTK_MAJOR_VERSION <= 7) 
+       #include "vtkVolumeRayCastCompositeFunction.h"
+       #include "vtkVolumeRayCastMIPFunction.h"
+#else 
+       // ..
+#endif
+
+
 #include <vtkPlanes.h>
 #include <vtkVolumeMapper.h>
 
@@ -38,7 +46,6 @@
 #include <vtkImageData.h>
 #include <vtkProp3D.h>
 #include <vtkRenderer.h>
-#include <vtkVolumeRayCastMIPFunction.h>
 #include <vtkLookupTable.h>
 #include <vtkBoxWidget.h>
 #include <vtkAbstractMapper.h>
@@ -196,14 +203,18 @@ private:
          */
         int _id;
 
+#if (VTK_MAJOR_VERSION <= 7) 
         vtkVolumeRayCastCompositeFunction      *_compositeFunction;
-        vtkPlanes                                                      *_volumePlanes;
-       
+        vtkVolumeRayCastMIPFunction                    *_MIPFunction;
+#else 
+               //..
+#endif
+
+        vtkPlanes                                                      *_volumePlanes; 
         vtkVolumeProperty                                      *_volumeProperty;
         vtkVolume                                                      *_newvol;
         vtkPiecewiseFunction                           *_tfun;
         vtkColorTransferFunction                       *_ctfun;
-        vtkVolumeRayCastMIPFunction                    *_MIPFunction;
         /**
         ** boxwidget to control the volume
         **/