gustaf.helpers.data.VertexData#
- class gustaf.helpers.data.VertexData(helpee)[source]#
Bases:
DataHolder
Minimal manager for vertex data. Checks input array size, transforms data on request. __setitem__ and __getitem__ will perform length checks. key(), values(), items(), and get() will return whatever is currently stored.
gustaf supports two kinds of data representation: scalar-data with cmap and vector-data with arrows.
Methods
VertexData.as_arrow
(key[, default, raise_])Returns an array as is, only if it is showable as arrow.
VertexData.as_scalar
(key[, default])Returns scalar version of requested data.