Salome HOME
Some fixes to compile against ParaView master.
[modules/gui.git] / src / VTKViewer / VTKViewer_Actor.cxx
index 9989dbebc04e3a5529dbf10ff3cfb8b30b00529f..1c40f660153e35236032c7aa9ff3e180eff04532 100644 (file)
@@ -42,7 +42,7 @@
 #include <vtkDataSetMapper.h>
 #include <vtkPolyDataMapper.h>
 #include <vtkRenderer.h>
-#include <vtkPassThroughFilter.h>
+#include <vtkPassThrough.h>
 
 #if defined __GNUC__
   #if __GNUC__ == 2
@@ -78,7 +78,7 @@ VTKViewer_Actor
                                                     myPolygonOffsetUnits);
 
   for(int i = 0; i < 6; i++)
-    myPassFilter.push_back(vtkPassThroughFilter::New());
+    myPassFilter.push_back(vtkPassThrough::New());
 }
 
 /*!
@@ -339,7 +339,7 @@ vtkDataSet*
 VTKViewer_Actor
 ::GetInput()
 {
-  return myPassFilter.front()->GetOutput();
+  return static_cast<vtkDataSet *>( myPassFilter.front()->GetOutput() );
 }
 
 /*!