#include <VTKViewer_PolyDataMapper.h>
#include <VTKViewer_DataSetMapper.h>
-#include <vtkPassThroughFilter.h>
+#include <vtkPassThrough.h>
vtkStandardNewMacro(SVTK_DeviceActor)
myTransformFilter = VTKViewer_TransformFilter::New();
for(int i = 0; i < 6; i++)
- myPassFilter.push_back(vtkPassThroughFilter::New());
+ myPassFilter.push_back(vtkPassThrough::New());
}
/*!
class vtkShrinkFilter;
class vtkFeatureEdges;
class VTKViewer_DataSetMapper;
-class vtkPassThroughFilter;
+class vtkPassThrough;
class vtkAlgorithmOutput;
#ifdef WIN32
VTKViewer_GeometryFilter *myGeomFilter;
VTKViewer_TransformFilter *myTransformFilter;
- std::vector<vtkPassThroughFilter*> myPassFilter;
+ std::vector<vtkPassThrough*> myPassFilter;
vtkShrinkFilter* myShrinkFilter;
vtkFeatureEdges* myFeatureEdges;
VTKViewer_DataSetMapper* myMapper;
#include <vtkDataSetMapper.h>
#include <vtkPolyDataMapper.h>
#include <vtkRenderer.h>
-#include <vtkPassThroughFilter.h>
+#include <vtkPassThrough.h>
#if defined __GNUC__
#if __GNUC__ == 2
myPolygonOffsetUnits);
for(int i = 0; i < 6; i++)
- myPassFilter.push_back(vtkPassThroughFilter::New());
+ myPassFilter.push_back(vtkPassThrough::New());
}
/*!
VTKViewer_Actor
::GetInput()
{
- return myPassFilter.front()->GetOutput();
+ return static_cast<vtkDataSet *>(myPassFilter.front()->GetOutput());
}
/*!
class vtkCamera;
class vtkProperty;
class vtkRenderer;
-class vtkPassThroughFilter;
+class vtkPassThrough;
class VTKViewer_Transform;
class VTKViewer_GeometryFilter;
bool myStoreMapping;
VTKViewer_GeometryFilter *myGeomFilter;
VTKViewer_TransformFilter *myTransformFilter;
- std::vector<vtkPassThroughFilter*> myPassFilter;
+ std::vector<vtkPassThrough*> myPassFilter;
int myRepresentation;
vtkProperty *myProperty;
#include <vtkPNGWriter.h>
#include <vtkOpenGLTexture.h>
#include <vtkTimerLog.h>
-#include <vtkOpenGL.h>
+#include <vtk_glew.h>
#include <vtkObjectFactory.h>
#include <Basics_Utils.hxx>
return ;
}
- ((vtkInteractorStyle*)this->InteractorStyle)->OnTimer() ;
+ ((vtkInteractorStyle*)this->InteractorStyle.Get())->OnTimer() ;
emit RenderWindowModified() ;
}
#include "vtkOpenGLRenderWindow.h"
#include "vtkTransform.h"
#include "vtkPixelBufferObject.h"
-#include "vtkOpenGL.h"
+#include "vtk_glew.h"
#include <vtkObjectFactory.h>
vtkStandardNewMacro(VTKViewer_Texture)
#include "VTKViewer_Algorithm.h"
// VTK Includes
-#include <vtkConfigure.h>
#include <vtkMath.h>
#include <vtkMapper.h>
#include <vtkDataSet.h>