stencil->SetBackgroundValue(128);
stencil->Update();
- if(ImageOutput)
- {
- ImageOutput->Delete();
- }
- ImageOutput = vtkImageData::New();
- ImageOutput->DeepCopy(stencil->GetOutput());
+// if(ImageOutput)
+// {
+// ImageOutput->Delete();
+// }
+// ImageOutput = vtkImageData::New();
+// ImageOutput->DeepCopy(stencil->GetOutput());
+
+ output->ShallowCopy( stencil->GetOutput() );
+ stencil->Delete();
+
return 1;
}
//-------------------------------------------------------------------------------------------
-vtkImageData* SurfaceRenderingImageStencilExport::GetOutputData()
-{
- return ImageOutput;
-}
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
+ vtkImageData* SurfaceRenderingImageStencilExport::GetOutputData()
+ {
+ return ImageOutput;
+ }
+#else
+ // ..
+#endif
+