Skip to content

StringArray ​

A String array is meant to keep track of String values. It is basically a standard JavaScript array where each value is expected to be a String.

String array in memory ​

js
{
  vtkClass: 'vtkStringArray',
  name: 'Players',
  numberOfComponents: 1,
  size: 1024,
  dataType: 'string',
  values: [ 'Player 1', 'Player 2', 'Palyer 3', ...],
}

String array reference ​

Reference array are used within dataset that needs to be fetch on the network or that written on disk. The ref section provide the information needed to download the array and fill it in memory like the previously described ones.

js
{
  type: 'vtkStringArray',
  name: 'Players',
  numberOfComponents: 1,
  size: 1024,
  values: null,
  dataType: 'string',
  ref: {
    id: '57b161d50afcda9eee221d6a5190075e',
    basepath: 'data',
    encode: 'JSON',
  },
}