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

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

Scalars

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

Fields of Scalars

num_comp: u8lookup_table: Option<String>data: IOBuffer
ColorScalars

num_comp is called nValues in the Vtk documentation.

Fields of ColorScalars

num_comp: u8data: IOBuffer
LookupTable

Fields of LookupTable

data: IOBuffer
Vectors

Fields of Vectors

data: IOBuffer
Normals

Normals are assumed to be normalized.

Fields of Normals

data: IOBuffer
TextureCoordinates

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

Fields of TextureCoordinates

dim: u8data: IOBuffer
Tensors

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

data: IOBuffer
Field

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

Fields of Field

data_array: Vec<FieldArray>

Trait Implementations

impl Clone for Attribute[src]

impl PartialEq<Attribute> for Attribute[src]

impl Debug for Attribute[src]

impl StructuralPartialEq for Attribute[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]