VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkCellDerivatives Class Reference

compute derivatives of scalars and vectors More...

#include <vtkCellDerivatives.h>

Inherits vtkDataSetAlgorithm.

Public Types

typedef vtkDataSetAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkCellDerivativesNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetVectorMode (int)
 
virtual int GetVectorMode ()
 
void SetVectorModeToPassVectors ()
 
void SetVectorModeToComputeGradient ()
 
void SetVectorModeToComputeVorticity ()
 
const char * GetVectorModeAsString ()
 
virtual void SetTensorMode (int)
 
virtual int GetTensorMode ()
 
void SetTensorModeToPassTensors ()
 
void SetTensorModeToComputeGradient ()
 
void SetTensorModeToComputeStrain ()
 
const char * GetTensorModeAsString ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkCellDerivativesSafeDownCast (vtkObjectBase *o)
 
static vtkCellDerivativesNew ()
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkCellDerivatives ()
 
 ~vtkCellDerivatives ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

int VectorMode
 
int TensorMode
 

Detailed Description

compute derivatives of scalars and vectors

vtkCellDerivatives is a filter that computes derivatives of scalars and vectors at the center of cells. You can choose to generate different output including the scalar gradient (a vector), computed tensor vorticity (a vector), gradient of input vectors (a tensor), and strain matrix of the input vectors (a tensor); or you may choose to pass data through to the output.

Note that it is assumed that on input scalars and vector point data is available, which are then used to generate cell vectors and tensors. (The interpolation functions of the cells are used to compute the derivatives which is why point data is required.)

Warning
The computed derivatives are cell attribute data; you can convert them to point attribute data by using the vtkCellDataToPointData filter. Note that, due to the interpolation function used (obtained using 1/r**2 normalized sum), the derivatives calculated for polygons with more than 4 vertices are inaccurate in most cases.
The point data is passed through the filter to the output.
See Also
vtkVectorNorm
Tests:
vtkCellDerivatives (Tests)

Definition at line 61 of file vtkCellDerivatives.h.

Member Typedef Documentation

typedef vtkDataSetAlgorithm vtkCellDerivatives::Superclass

Definition at line 64 of file vtkCellDerivatives.h.

Constructor & Destructor Documentation

vtkCellDerivatives::vtkCellDerivatives ( )
protected
vtkCellDerivatives::~vtkCellDerivatives ( )
inlineprotected

Definition at line 106 of file vtkCellDerivatives.h.

Member Function Documentation

static int vtkCellDerivatives::IsTypeOf ( const char *  type)
static
virtual int vtkCellDerivatives::IsA ( const char *  type)
virtual
static vtkCellDerivatives* vtkCellDerivatives::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkCellDerivatives::NewInstanceInternal ( ) const
protectedvirtual
vtkCellDerivatives* vtkCellDerivatives::NewInstance ( ) const
void vtkCellDerivatives::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
static vtkCellDerivatives* vtkCellDerivatives::New ( )
static

Construct to compute the gradient of the scalars and vectors.

virtual void vtkCellDerivatives::SetVectorMode ( int  )
virtual

Control how the filter works to generate vector cell data. You can choose to pass the input cell vectors, compute the gradient of the input scalars, or extract the vorticity of the computed vector gradient tensor. By default (VectorModeToComputeGradient), the filter will take the gradient of the input scalar data.

virtual int vtkCellDerivatives::GetVectorMode ( )
virtual

Control how the filter works to generate vector cell data. You can choose to pass the input cell vectors, compute the gradient of the input scalars, or extract the vorticity of the computed vector gradient tensor. By default (VectorModeToComputeGradient), the filter will take the gradient of the input scalar data.

void vtkCellDerivatives::SetVectorModeToPassVectors ( )
inline

Control how the filter works to generate vector cell data. You can choose to pass the input cell vectors, compute the gradient of the input scalars, or extract the vorticity of the computed vector gradient tensor. By default (VectorModeToComputeGradient), the filter will take the gradient of the input scalar data.

Definition at line 78 of file vtkCellDerivatives.h.

void vtkCellDerivatives::SetVectorModeToComputeGradient ( )
inline

Control how the filter works to generate vector cell data. You can choose to pass the input cell vectors, compute the gradient of the input scalars, or extract the vorticity of the computed vector gradient tensor. By default (VectorModeToComputeGradient), the filter will take the gradient of the input scalar data.

Definition at line 80 of file vtkCellDerivatives.h.

void vtkCellDerivatives::SetVectorModeToComputeVorticity ( )
inline

Control how the filter works to generate vector cell data. You can choose to pass the input cell vectors, compute the gradient of the input scalars, or extract the vorticity of the computed vector gradient tensor. By default (VectorModeToComputeGradient), the filter will take the gradient of the input scalar data.

Definition at line 82 of file vtkCellDerivatives.h.

const char* vtkCellDerivatives::GetVectorModeAsString ( )

Control how the filter works to generate vector cell data. You can choose to pass the input cell vectors, compute the gradient of the input scalars, or extract the vorticity of the computed vector gradient tensor. By default (VectorModeToComputeGradient), the filter will take the gradient of the input scalar data.

virtual void vtkCellDerivatives::SetTensorMode ( int  )
virtual

Control how the filter works to generate tensor cell data. You can choose to pass the input cell tensors, compute the gradient of the input vectors, or compute the strain tensor of the vector gradient tensor. By default (TensorModeToComputeGradient), the filter will take the gradient of the vector data to construct a tensor.

virtual int vtkCellDerivatives::GetTensorMode ( )
virtual

Control how the filter works to generate tensor cell data. You can choose to pass the input cell tensors, compute the gradient of the input vectors, or compute the strain tensor of the vector gradient tensor. By default (TensorModeToComputeGradient), the filter will take the gradient of the vector data to construct a tensor.

void vtkCellDerivatives::SetTensorModeToPassTensors ( )
inline

Control how the filter works to generate tensor cell data. You can choose to pass the input cell tensors, compute the gradient of the input vectors, or compute the strain tensor of the vector gradient tensor. By default (TensorModeToComputeGradient), the filter will take the gradient of the vector data to construct a tensor.

Definition at line 95 of file vtkCellDerivatives.h.

void vtkCellDerivatives::SetTensorModeToComputeGradient ( )
inline

Control how the filter works to generate tensor cell data. You can choose to pass the input cell tensors, compute the gradient of the input vectors, or compute the strain tensor of the vector gradient tensor. By default (TensorModeToComputeGradient), the filter will take the gradient of the vector data to construct a tensor.

Definition at line 97 of file vtkCellDerivatives.h.

void vtkCellDerivatives::SetTensorModeToComputeStrain ( )
inline

Control how the filter works to generate tensor cell data. You can choose to pass the input cell tensors, compute the gradient of the input vectors, or compute the strain tensor of the vector gradient tensor. By default (TensorModeToComputeGradient), the filter will take the gradient of the vector data to construct a tensor.

Definition at line 99 of file vtkCellDerivatives.h.

const char* vtkCellDerivatives::GetTensorModeAsString ( )

Control how the filter works to generate tensor cell data. You can choose to pass the input cell tensors, compute the gradient of the input vectors, or compute the strain tensor of the vector gradient tensor. By default (TensorModeToComputeGradient), the filter will take the gradient of the vector data to construct a tensor.

int vtkCellDerivatives::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected

Member Data Documentation

int vtkCellDerivatives::VectorMode
protected

Definition at line 109 of file vtkCellDerivatives.h.

int vtkCellDerivatives::TensorMode
protected

Definition at line 110 of file vtkCellDerivatives.h.


The documentation for this class was generated from the following file: