vtkCellGridResponders

Struct vtkCellGridResponders 

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

A container that holds objects able to respond to queries

specialized for particular vtkCellMetadata types.

This class holds sets of responders for vtkCellGridQuery and for vtkCellAttributeQuery.

§Cell-grid query responders

vtkCellGridResponders holds a list of objects statically registered to the vtkCellMetadata subclass. These objects respond to queries for information (e.g., a bounding box) or processing (e.g., rendering, picking, generating isocontours) for one cell type (and subclasses of that cell type if no more specific responder is registered).

Application code (such as a plugin) can register subclasses of vtkCellGridResponse which accept the API of a particular vtkCellGridQuery for that cell type. Then, when a query is passed to the cell, this collection will identify matching responders for the query and invoke them until one returns true (indicating success). Multiple matches can exist as a responder can be registered to a common base cell class and/or to handle common base query classes.

If a given cell type cannot respond to a query, its superclasses are asked to respond. If no superclass can respond to the query, then query’s superclasses are searched for responders.

Because queries can be registered to cell types at any time, existing cell types can be extended to support new features by additional libraries.

§Cell-attribute calculators

In order to support the evaluation of vtkCellAttribute data on any vtkCellMetadata (cell type), this class also holds “calculators” grouped by both attribute and cell type. This API is different that vtkCellGridQuery because vtkCellAttribute is not subclassed by attribute type but rather uses vtkStringToken data to determine the nature of the attribute (e.g., Lagrange; Nedelec; Raviart-Thomas; etc.).

It is also different in that these objects are expected to be used inside vtkCellGridQuery to evaluate a single cell at a time rather than longer-running queries across all cells.

@sa vtkCellMetadata vtkCellGrid vtkCellAttribute

Implementations§

Source§

impl vtkCellGridResponders

Source

pub fn new() -> Self

Creates a new vtkCellGridResponders wrapped inside vtkNew

Trait Implementations§

Source§

impl Default for vtkCellGridResponders

Source§

fn default() -> Self

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

impl Drop for vtkCellGridResponders

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.