[vtk-developers] Factory issue for new VBO and VertexArray painters
xabivtk at gmail.com
Thu Mar 13 10:45:49 EDT 2014
As a side question,
I got this message during the Configure step in CMake 188.8.131.52 when adding
my test in Rendering\OpenGL\Testing\Cxx:
Data file referenced by argument
corresponds to source tree path
that does not exist as a file (with or without an extension)!
What produces it?
I added this line in the CMakeLists.txt file:
# For tests that actually use a vtkRenderWindow
TestVBOandVertexArray.cxx <=== line added
and the test is correctly inserted to vtkRenderingOpenGLCxxTests.exe
2014-03-13 15:31 GMT+01:00 Xabi Riobe <xabivtk at gmail.com>:
> I have a set of painter classes using VBO (adapted from VTKEdge) and
> VertexArrays that i'm willing to share via gerrit, but there is an issue i
> would like to resolve before, in order to add the test class.
> Currently i use them with vtk 5.10.1, and i have a rendering factory to
> instantiate them instead of vtkPolygonsPainter, vtkLinesPainter
> and vtkTStripsPainter.
> but with vtk 6.1, the factory mechanism has changed and i can not manage
> to make it work properly. So i first try to localy test my classes with the
> new version by incorporating them directly in
> vtkRenderingOpenGLObjectFactory, adding these lines in
> Rendering\OpenGL\CMakeLists.txt :
> list(APPEND vtk_module_overrides "vtkPolygonsPainter")
> Runing my test in debug, i can see that the class is added in the factory,
> but when the vtkChooserPainter creates the vtkPolygonsPainter, my own class
> is not instantiated, nor it is if i directly call vtkPolygonsPainter::New()
> in the test.
> Is there something else i am missing to use my class in a factory with vtk
> extract from my own factory code:
> class vtkRenderingVertexArrayFactory
> : public vtkObjectFactory
> static vtkRenderingVertexArrayFactory* New();
> vtkTypeMacro(vtkRenderingVertexArrayFactory, vtkObjectFactory);
> static void RegisterFactory();
> vtkRenderingVertexArrayFactory(const vtkRenderingVertexArrayFactory&);
> // Not implemented.
> void operator=(const vtkRenderingVertexArrayFactory&); // Not
> "Override for vtkRenderingOpenGL module",
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtk-developers