vtkImageTransform

Struct vtkImageTransform 

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

helper class to transform output of non-axis-aligned images

vtkImageTransform is a helper class to transform the output of image filters (i.e., filter that input vtkImageData) by applying the Index to Physical transformation from the input image, which can include origin, spacing, direction. The transformation process is threaded with vtkSMPTools for performance.

Typically in application the single method TransformPointSet() is invoked to transform the output of an image algorithm (assuming that the image’s direction/orientation matrix is non-identity). Note that vtkPointSets encompass vtkPolyData as well as vtkUnstructuredGrids. In the future other output types may be added. Note that specific methods for transforming points, normals, and vectors is also provided by this class in case additional output data arrays need to be transformed (since TransformPointSet() only processes data arrays labeled as points, normals, and vectors).

@warning This class assumes that any vectors are gradients, and vector arrays will therefore be transformed by first dividing by the spacing and then applying the inverse transpose of the direction matrix.

@warning This class has been threaded with vtkSMPTools. Using TBB or other non-sequential type (set in the CMake variable VTK_SMP_IMPLEMENTATION_TYPE) may improve performance significantly.

Implementations§

Source§

impl vtkImageTransform

Source

pub fn new() -> Self

Creates a new vtkImageTransform wrapped inside vtkNew

Trait Implementations§

Source§

impl Default for vtkImageTransform

Source§

fn default() -> Self

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

impl Drop for vtkImageTransform

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.