#ifndef SURFACERENDERINGIMAGESTENCILEXPORT_H
#define SURFACERENDERINGIMAGESTENCILEXPORT_H
+#include "vtkObjectFactory.h"
-#include <vtkImageData.h>
//EED 2017-01-01 Migration VTK7
#if VTK_MAJOR_VERSION <= 5
#include <vtkDataSetToImageFilter.h>
#else
- // ..
+ #include "vtkPolyDataAlgorithm.h"
+ #include "vtkDataObject.h"
+ #include "vtkInformation.h"
+ #include "vtkDemandDrivenPipeline.h"
+ #include "vtkInformationVector.h"
#endif
#include <vtkSmartPointer.h>
#include <vtkPolyDataToImageStencil.h>
#include <vtkImageStencil.h>
+#include <vtkImageData.h>
#include <vtkPolyData.h>
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
class SurfaceRenderingImageStencilExport : public vtkDataSetToImageFilter
+#else
+class SurfaceRenderingImageStencilExport : public vtkPolyDataAlgorithm
+#endif
{
public:
static SurfaceRenderingImageStencilExport *New();
- vtkTypeMacro(SurfaceRenderingImageStencilExport,vtkDataSetToImageFilter)
+ vtkTypeMacro(SurfaceRenderingImageStencilExport,vtkPolyDataAlgorithm)
+#if VTK_MAJOR_VERSION <= 5
virtual void Update();
- vtkImageData* GetOutput();
+#else
+ // ..
+#endif
+
+
+ virtual vtkImageData* GetOutputData();
protected:
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
+ // Usual data generation method
virtual void Execute(vtkImageData *data);
+#else
+ virtual int RequestData( vtkInformation *vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *outputVector);
+#endif
private: