VTK
|
The legacy vtk data file readers / writers store certain vtkInformation
entries that are set on vtkAbstractArray
's GetInformation()
object. Support is currently limited to numeric and string information keys, both single- and vector-valued. Only the information objects attached to arrays are encoded.
A block of metadata may immediately follow the specification of an array. Whitespace is permitted between the array data and the opening METADATA
tag. The metadata block is terminated by an empty line.
As shown, a metadata block can have two sections, COMPONENT_NAMES
and INFORMATION
. The INFORMATION
tag is followed by the number of information keys that follow.
If the METADATA
block contains the line COMPONENT_NAMES
, the following lines are expected to be encoded strings containing the names of each component. There must be one line per component.
If the METADATA
block contains the line INFORMATION
, the number of information keys is read from the INFORMATION line and vtkInformation
data that follows is parsed. The general form of a single valued information entry is:
A vector information key is generally represented as:
The exception is a string vector, which contains encoded entries separated by newlines.
Specific examples of supported key types: