[vtkusers] subclassing with VTK 6.1

Affolter Martin martin.affolter at ntb.ch
Tue Aug 5 10:02:17 EDT 2014


Hello vtkusers,

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?

Best regards,
Martin Affolter
MSc FHO in Engineering
Wissenschaftlicher Mitarbeiter
___________________________________________
NTB Interstaatliche Hochschule für Technik Buchs
Institut für Ingenieurinformatik
Schönauweg 4
CH-9013 St. Gallen

Tel:  +41 81 755 32 49
Web: http://www.ntb.ch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140805/a223b1fd/attachment.html>


More information about the vtkusers mailing list