Enum vtkio::model::DataSet [−][src]
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
Also referred to as StructuredPoints
in Legacy format.
Fields of ImageData
Fields of StructuredGrid
Fields of RectilinearGrid
3D Unstructured grid. Note that cells.num_cells
must equal cell_types.len()
.
3D Polygon data.
Same as one field attribute.
Fields of Field
name: String
data_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]
fn from(p: ImageDataPiece) -> DataSet
[src]
impl From<PolyDataPiece> for DataSet
[src]
fn from(p: PolyDataPiece) -> DataSet
[src]
impl From<RectilinearGridPiece> for DataSet
[src]
fn from(p: RectilinearGridPiece) -> DataSet
[src]
impl From<StructuredGridPiece> for DataSet
[src]
fn from(p: StructuredGridPiece) -> DataSet
[src]
impl From<UnstructuredGridPiece> for DataSet
[src]
fn from(p: UnstructuredGridPiece) -> 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.
fn try_from(data_set: DataSet) -> Result<Self, Error>
[src]
impl TryFrom<DataSet> for RectilinearGridPiece
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(data_set: DataSet) -> Result<Self, Error>
[src]
impl TryFrom<DataSet> for StructuredGridPiece
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(data_set: DataSet) -> Result<Self, Error>
[src]
impl TryFrom<DataSet> for PolyDataPiece
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(data_set: DataSet) -> Result<Self, Error>
[src]
impl TryFrom<DataSet> for UnstructuredGridPiece
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,