[vtkusers] what about a vtkStringArray format ?

Berk Geveci berklist at nycap.rr.com
Mon Feb 24 11:03:04 EST 2003


> It would be very convenient to use a vtkStringArray as any
> vtkDataArray for setting scalars.

vtkDataArray is not really the right superclass for an array
of strings. It has a lot of methods which make no sense in
an array of strings. Furthermore, it is not possible to implement
things such as interpolation for strings. I think it would be more
cleaner to associate some sort of standard container of strings (an
STL vector?) with your dataset.

-Berk




More information about the vtkusers mailing list