Enum vtkio::model::DataSet[][src]

pub enum DataSet {
    ImageData {
        extent: Extent,
        origin: [f32; 3],
        spacing: [f32; 3],
        meta: Option<Box<MetaData>>,
        pieces: Vec<Piece<ImageDataPiece>>,
    },
    StructuredGrid {
        extent: Extent,
        meta: Option<Box<MetaData>>,
        pieces: Vec<Piece<StructuredGridPiece>>,
    },
    RectilinearGrid {
        extent: Extent,
        meta: Option<Box<MetaData>>,
        pieces: Vec<Piece<RectilinearGridPiece>>,
    },
    UnstructuredGrid {
        meta: Option<Box<MetaData>>,
        pieces: Vec<Piece<UnstructuredGridPiece>>,
    },
    PolyData {
        meta: Option<Box<MetaData>>,
        pieces: Vec<Piece<PolyDataPiece>>,
    },
    Field {
        name: String,
        data_array: Vec<FieldArray>,
    },
}

Dataset described in the file.

For 2D objects, dims[2] will be set to 1. For 1D objects, dims[1] will also be 1. This enum is designed to closely represent the data as it is stored in the vtk file.

The extent specified in the enum variants corresponds to the WholeExtent attribute.

Each DataSet is split into pieces for compatibility with XML formats. Legacy formats correspond to a data set with a single inline piece.

Variants

ImageData

Also referred to as StructuredPoints in Legacy format.

Fields of ImageData

extent: Extentorigin: [f32; 3]spacing: [f32; 3]meta: Option<Box<MetaData>>pieces: Vec<Piece<ImageDataPiece>>
StructuredGrid

Fields of StructuredGrid

extent: Extentmeta: Option<Box<MetaData>>pieces: Vec<Piece<StructuredGridPiece>>
RectilinearGrid

Fields of RectilinearGrid

extent: Extentmeta: Option<Box<MetaData>>pieces: Vec<Piece<RectilinearGridPiece>>
UnstructuredGrid

3D Unstructured grid. Note that cells.num_cells must equal cell_types.len().

Fields of UnstructuredGrid

meta: Option<Box<MetaData>>pieces: Vec<Piece<UnstructuredGridPiece>>
PolyData

3D Polygon data.

Fields of PolyData

meta: Option<Box<MetaData>>pieces: Vec<Piece<PolyDataPiece>>
Field

Same as one field attribute.

Fields of Field

name: Stringdata_array: Vec<FieldArray>

Implementations

impl DataSet[src]

pub fn inline(p: impl Into<DataSet>) -> DataSet[src]

Construct a one piece data set.

When creating an ImageData set, the default origin is [0.0; 3] and spacing [1.0; 3] is used.

Trait Implementations

impl Clone for DataSet[src]

impl Debug for DataSet[src]

impl From<ImageDataPiece> for DataSet[src]

impl From<PolyDataPiece> for DataSet[src]

impl From<RectilinearGridPiece> for DataSet[src]

impl From<StructuredGridPiece> for DataSet[src]

impl From<UnstructuredGridPiece> for DataSet[src]

impl PartialEq<DataSet> for DataSet[src]

impl StructuralPartialEq for DataSet[src]

impl TryFrom<DataSet> for ImageDataPiece[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<DataSet> for RectilinearGridPiece[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<DataSet> for StructuredGridPiece[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<DataSet> for PolyDataPiece[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<DataSet> for UnstructuredGridPiece[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for DataSet

impl Send for DataSet

impl Sync for DataSet

impl Unpin for DataSet

impl UnwindSafe for DataSet

Blanket Implementations

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

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

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

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 = Infallible

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.