pub struct VtkMultiBlock {
pub blocks: Vec<VtkBlock>,
pub title: String,
}Expand description
A ParaView-compatible multi-block dataset.
Wraps several VtuGrid blocks, each with a name. Serializes to a
<vtkMultiBlockDataSet> XML document.
Fields§
§blocks: Vec<VtkBlock>The named blocks comprising this dataset.
title: StringOptional dataset title.
Implementations§
Source§impl VtkMultiBlock
impl VtkMultiBlock
Sourcepub fn total_points(&self) -> usize
pub fn total_points(&self) -> usize
Total number of points across all blocks.
Sourcepub fn total_cells(&self) -> usize
pub fn total_cells(&self) -> usize
Total number of cells across all blocks.
Sourcepub fn to_vtm_string(&self) -> String
pub fn to_vtm_string(&self) -> String
Serialize to a VTK multi-block VTM XML string.
Each block references an external VTU file {block_name}.vtu.
Auto Trait Implementations§
impl Freeze for VtkMultiBlock
impl RefUnwindSafe for VtkMultiBlock
impl Send for VtkMultiBlock
impl Sync for VtkMultiBlock
impl Unpin for VtkMultiBlock
impl UnsafeUnpin for VtkMultiBlock
impl UnwindSafe for VtkMultiBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.