[vtkusers] Re: using generic datasets with VTK
Hendrik Belitz
h.belitz at fz-juelich.de
Fri Jun 3 04:25:47 EDT 2005
Am Freitag, 3. Juni 2005 10:08 schrieb John Biddiscombe:
> >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.
If time is not issue (e.g. your data is not varying over time), probably the
best approach is to convert your data format into some vtk data structure in
a seperate class or method. I'm doing this for myself (Conversion of half
edge - meshes into vtkPolyData) and it works very good.
-------------------------------------------------------------------------------------
Dipl.-Inform. Hendrik Belitz
Central Institute of Electronics
Multimodal image processing workgroup
Research Center Juelich
D-52428 Jülich, Germany
Tel.: (++49)2461 61 8701
Fax: (++49)2461 61 3990
email: h.belitz at fz-juelich.de
More information about the vtkusers
mailing list