[vtkusers] extending VTK's XML file formats
Bryn Lloyd
lloyd at itis.ethz.ch
Tue Jan 10 11:19:36 EST 2012
Hi Tim
You can add some types of meta data by add vtkFieldData to the
vtkImageData, e.g. strings (vtkStringArray).
Array have names, which again can be abused to add metadata (e.g. an
empty array with the name "This data originates from XYZ").
You could also try to figure how to use vtkModelMetadata or how to write
a similar class for your needs:
http://www.vtk.org/doc/nightly/html/classvtkModelMetadata.html
/Bryn
On 1/10/2012 5:11 PM, Tim Hutton wrote:
> What is the accepted way of extending VTK's XML file formats? I would
> like to be able to attach metadata to a vtkImageData file. Presumably
> the right approach involves subclassing vtkXMLImageDataWriter and
> vtkXMLImageDataReader but I'm not sure how to proceed. Is there an
> example somewhere?
>
> Thanks,
>
> Tim
>
More information about the vtkusers
mailing list