[vtkusers] Re: using generic datasets with VTK

John Biddiscombe jbiddiscombe at bluewin.ch
Fri Jun 3 04:08:16 EDT 2005


>I don't see any way for you to escape using VTK data structures for VTK to
>render properly; 
>
It can be done if you create your own Mapper. The input to the mapper 
can be defined as
SetMySpecialOwnFormatInput(void/struct/class *datastuff);
then inside the mapper render methods you simply stuff your normal 
opengl calls, traversing your own data in whatever way you want. You 
lose much of the pipeline functionality by doing this, however - as an 
excercise in rendering your own non-vtk stuff alongside vtk, it is 
useful.thing to know.

Of course, if you can wrap up your datastructures into someting more 
vtklike, then the pipeline mechanism can be used more effectively.

JB





More information about the vtkusers mailing list