Enum vtkio::model::DataSet [−][src]
pub enum DataSet { StructuredPoints { dims: [u32; 3], origin: [f32; 3], spacing: [f32; 3], data: Attributes, }, StructuredGrid { dims: [u32; 3], points: IOBuffer, data: Attributes, }, UnstructuredGrid { points: IOBuffer, cells: Cells, cell_types: Vec<CellType>, data: Attributes, }, PolyData { points: IOBuffer, topo: Vec<PolyDataTopology>, data: Attributes, }, RectilinearGrid { dims: [u32; 3], x_coords: IOBuffer, y_coords: IOBuffer, z_coords: IOBuffer, data: Attributes, }, Field { name: String, data_array: Vec<FieldArray>, }, }
Dataset described in the file.
For 2D objects, dims[2]
will be set to 0
. For 1D objects, dims[1]
will also be 0
.
This enum is designed to closely represent the data as it is stored in the vtk file.
Variants
StructuredPoints
Fields of StructuredPoints
dims: [u32; 3] | |
origin: [f32; 3] | |
spacing: [f32; 3] | |
data: Attributes |
StructuredGrid
Fields of StructuredGrid
dims: [u32; 3] | |
points: IOBuffer | |
data: Attributes |
UnstructuredGrid
3D Unstructured grid. Note that cells.num_cells
must equal cell_types.len()
.
Fields of UnstructuredGrid
points: IOBuffer | A contiguous array of coordinates (x,y,z) representing the points in the mesh. |
cells: Cells | |
cell_types: Vec<CellType> | |
data: Attributes |
PolyData
3D Polygon data.
Fields of PolyData
points: IOBuffer | |
topo: Vec<PolyDataTopology> | |
data: Attributes |
RectilinearGrid
Fields of RectilinearGrid
dims: [u32; 3] | |
x_coords: IOBuffer | |
y_coords: IOBuffer | |
z_coords: IOBuffer | |
data: Attributes |
Field
Same as one field attribute.
Fields of Field
name: String | |
data_array: Vec<FieldArray> |
Trait Implementations
impl Clone for DataSet
[src]
impl Clone for DataSet
fn clone(&self) -> DataSet
[src]
fn clone(&self) -> DataSet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for DataSet
[src]
impl PartialEq for DataSet
fn eq(&self, other: &DataSet) -> bool
[src]
fn eq(&self, other: &DataSet) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DataSet) -> bool
[src]
fn ne(&self, other: &DataSet) -> bool
This method tests for !=
.
impl Debug for DataSet
[src]
impl Debug for DataSet