[vtkusers] VTK 6: override not found for "vtkRenderer" issue

David Cole dlrdave at aol.com
Sun Aug 11 08:32:17 EDT 2013


> I did follow this post to add these 2 macros, 
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines
>
>
> But still not resolved this problem. The following is a sample code 
using cone example on wiki.
> ---------------------------------------------
>
> #include "stdafx.h"
>
> #include "vtkConeSource.h"
> #include "vtkPolyData.h"
> #include "vtkSmartPointer.h"
> #include "vtkPolyDataMapper.h"
> #include "vtkActor.h"
> #include "vtkRenderWindow.h"
> #include "vtkRenderer.h"
> #include "vtkRenderWindowInteractor.h"
>  
>
> #define vtkRenderingCore_AUTOINIT 
4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtk
RenderingOpenGL)
> #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL)


You need to #define those symbols *BEFORE* including any VTK header 
files. Otherwise that have no effect....


HTH,
David




More information about the vtkusers mailing list