vtkMultiTimeStepAlgorithm

Struct vtkMultiTimeStepAlgorithm 

Source
pub struct vtkMultiTimeStepAlgorithm(/* private fields */);
Expand description

Superclass for algorithms that would like to make multiple time requests

This class can be inherited by any algorithm that wishes to make multiple time requests upstream.

A subclass should override RequestUpdateExtent and use vtkMultiTimeStepAlgorithm::UPDATE_TIME_STEPS key to indicate which timesteps are to be requested. This class will then take care of executing the upstream pipeline to obtain the requested timesteps.

Subclasses can then override Execute which is provided a vector of input data objects corresponding to the requested timesteps.

In VTK 9.1 and earlier, subclasses overrode RequestData instead of Execute. RequestData was passed a vtkMultiBlockDataSet with blocks corresponding to the input timesteps. However, with addition of vtkPartitionedDataSet and vtkPartitionedDataSetCollection in VTK 9.2, it is not possible to package all input data types into a multiblock dataset. Hence, the method is deprecated and only used when Execute is not overridden.

Implementations§

Source§

impl vtkMultiTimeStepAlgorithm

Source

pub fn new() -> Self

Creates a new vtkMultiTimeStepAlgorithm wrapped inside vtkNew

Trait Implementations§

Source§

impl Default for vtkMultiTimeStepAlgorithm

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for vtkMultiTimeStepAlgorithm

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.