Documentation for vtkTensors

vtkTensors - represent and manipulate 3x3 tensors

Super Class: vtkAttributeData

Description:

vtkTensors represents 3x3 tensors. The data model for vtkTensors is an array of 3x3 matrices accessible by (point or cell) id.

 

Methods:

void vtkTensors (int )
void vtkTensors ()
static vtkTensors *New (int )
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
vtkAttributeData *MakeObject ()
int GetNumberOfTensors ()
vtkTensor *GetTensor (int )
void SetNumberOfTensors (int )
void GetTensor (int ,vtkTensor *)
void SetTensor (int ,vtkTensor *)
void InsertTensor (int ,vtkTensor *)
void InsertTensor (int ,float ,float ,float ,float ,float ,float ,float ,float ,float )
int InsertNextTensor (vtkTensor *)
int InsertNextTensor (float ,float ,float ,float ,float ,float ,float ,float ,float )
void GetTensors (vtkIdList * ,vtkTensors *)
void GetTensors (vtkIdList & ,vtkTensors &)
void GetTensor (int ,vtkTensor &)

 

Detailed Method Descriptions:

Create a copy of this object.

vtkAttributeData *MakeObject ()

Return number of tensors in array.

int GetNumberOfTensors ()

Return a pointer to a float tensor for a specific id.

vtkTensor *GetTensor (int )

Specify the number of tensors for this object to hold. Does an allocation as well as setting the MaxId ivar. Used in conjunction with SetTensor() method for fast insertion.

void SetNumberOfTensors (int )

Return the Tensor requested in the tensor passed.

void GetTensor (int ,vtkTensor *)

Insert a Tensor into an object. No range checking performed (fast!). Make sure you use SetNumberOfScalars() to allocate memory prior to using SetTensor().

void SetTensor (int ,vtkTensor *)

Insert a Tensor into object. Range checking performed and memory allocated as necessary.

void InsertTensor (int ,vtkTensor *)
void InsertTensor (int ,float ,float ,float ,float ,float ,float ,float ,float ,float )

Insert a Tensor at end of array and return its location (id) in the array.

int InsertNextTensor (vtkTensor *)
int InsertNextTensor (float ,float ,float ,float ,float ,float ,float ,float ,float )

Given a list of pt ids, return an array of tensors.

void GetTensors (vtkIdList * ,vtkTensors *)

For legacy compatibility. Do not use.

void GetTensors (vtkIdList & ,vtkTensors &)