[vtkusers] load and display a vtk DataFile in a FLTK window

frederic.salvador at epfl.ch frederic.salvador at epfl.ch
Mon Apr 27 12:06:47 EDT 2009



Dear all,

I would like to display a vtk datafile containing a list of points in a FLTK
window:

# vtk DataFile Version 3.0
vtk output
ASCII
DATASET POLYDATA
POINTS 220 float
...........................
POLYGONS 401 1604
...........................
CELL_DATA 401
POINT_DATA 220
NORMALS normals float
...........................

I have seen it exists a few ways to link vtk to fltk, like: vtkFlRenderWindow,
vtkFlRenderWindowInteractor, vtkFLTK, but I did not figure out how to use one
of these in my case...
Do you have some advices?

Do I need to use the filter itkVTKImageToImageFilter so as to convert my vtk
file into an itk file?

Thank you very much in advance for your answers or advices.

Cordially

Fred



More information about the vtkusers mailing list