[vtkusers] subclassing with VTK 6.1
martin.affolter at ntb.ch
Tue Aug 5 10:02:17 EDT 2014
I'm trying to get our projects up and running on vtk 6.1 (from 5.10.1). After successfully initializing the modules used to render with OpenGL (with the VTK_MODULE_INIT Macro) I am now having some issues with our own vtk subclasses and factories. I used to register an object factory to create my own actor type (CCOpenGLActor) instead of the vtkOpenGLActor, which used to work with 5.10.1. Now, an instance of vtkOpenGLActor is created instead.
So far, I've tried to use the vtkObjectFactoryNewMacro instead of the vtkStandardNewMacro for my subclasses, which should create the object through my registered factory if I understood correctly. However, it doesn't change anything. Do I need to rebuild the vtk-binaries with the option VTK_ALL_NEW_OBJECT_FACTORY for it to work?
MSc FHO in Engineering
NTB Interstaatliche Hochschule für Technik Buchs
Institut für Ingenieurinformatik
CH-9013 St. Gallen
Tel: +41 81 755 32 49
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers