Enum vtkio::model::Attribute[][src]

pub enum Attribute {
    Scalars {
        num_comp: u8,
        lookup_table: Option<String>,
        data: IOBuffer,
    },
    ColorScalars {
        num_comp: u8,
        data: IOBuffer,
    },
    LookupTable {
        data: IOBuffer,
    },
    Vectors {
        data: IOBuffer,
    },
    Normals {
        data: IOBuffer,
    },
    TextureCoordinates {
        dim: u8,
        data: IOBuffer,
    },
    Tensors {
        data: IOBuffer,
    },
    Field {
        data_array: Vec<FieldArray>,
    },
}

Data structure that stores a Vtk attribute.

Variants

Scalar field. num_comp describes how many components (1, 2, 3 or 4) there are in the field.

Fields of Scalars

num_comp is called nValues in the Vtk documentation.

Fields of ColorScalars

Fields of LookupTable

Fields of Vectors

Normals are assumed to be normalized.

Fields of Normals

1D, 2D or 3D texture coordinates are supported by Vtk.

Fields of TextureCoordinates

3x3 symmetric tensors are supported. These are given in full row major form:

    [t^1_00, t^1_01, t^1_02,
     t^1_10, t^1_11, t^1_12,
     t^1_20, t^1_21, t^1_22,
     ...
     t^{n}_00, t^{n}_01, t^{n}_02,
     t^{n}_10, t^{n}_11, t^{n}_12,
     t^{n}_20, t^{n}_21, t^{n}_22,
    ]

Note that symmetry is assumed (t^k_ij == t^k_ji).

Fields of Tensors

Field attribute. Essentially an array of data arrays of any size.

Fields of Field

Trait Implementations

impl Clone for Attribute
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Attribute
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Attribute
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Attribute

impl Sync for Attribute