Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkTensors Class Reference

represent and manipulate 3x3 tensors. More...

#include <vtkTensors.h>

Inheritance diagram for vtkTensors:

Inheritance graph
[legend]
Collaboration diagram for vtkTensors:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
vtkAttributeDataMakeObject ()
int GetNumberOfTensors ()
vtkTensorGetTensor (int id)
void SetNumberOfTensors (int number)
void GetTensor (int id, vtkTensor *t)
void SetTensor (int id, vtkTensor *t)
void InsertTensor (int id, vtkTensor *t)
void InsertTensor (int id, float t11, float t12, float t13, float t21, float t22, float t23, float t31, float t32, float t33)
int InsertNextTensor (vtkTensor *t)
int InsertNextTensor (float t11, float t12, float t13, float t21, float t22, float t23, float t31, float t32, float t33)
void GetTensors (vtkIdList *ptId, vtkTensors *fv)
void GetTensors (vtkIdList &ptId, vtkTensors &fv)
void GetTensor (int id, vtkTensor &t)

Static Public Methods

vtkTensors * New (int dataType)
vtkTensors * New ()
int IsTypeOf (const char *type)
vtkTensors * SafeDownCast (vtkObject *o)

Protected Methods

 vtkTensors ()
 ~vtkTensors ()
 vtkTensors (const vtkTensors &)
void operator= (const vtkTensors &)

Protected Attributes

vtkTensorT

Detailed Description

represent and manipulate 3x3 tensors.

Date:
2000/12/10 20:08:19
Revision:
1.37

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


Member Function Documentation

virtual const char* vtkTensors::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkAttributeData.

int vtkTensors::GetNumberOfTensors   [inline]
 

Return number of tensors in array.

void vtkTensors::GetTensor int    id,
vtkTensor   t
 

Return the Tensor requested in the tensor passed.

vtkTensor * vtkTensors::GetTensor int    id [inline]
 

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

void vtkTensors::GetTensors vtkIdList   ptId,
vtkTensors &    fv
[inline]
 

For legacy compatibility. Do not use.

void vtkTensors::GetTensors vtkIdList   ptId,
vtkTensors *    fv
 

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

int vtkTensors::InsertNextTensor vtkTensor   t
 

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

void vtkTensors::InsertTensor int    id,
vtkTensor   t
 

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

virtual int vtkTensors::IsA const char *    type [virtual]
 

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkAttributeData.

int vtkTensors::IsTypeOf const char *    type [static]
 

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkAttributeData.

vtkAttributeData* vtkTensors::MakeObject   [inline, virtual]
 

Create a copy of this object.

Implements vtkAttributeData.

vtkTensors* vtkTensors::New   [static]
 

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

Reimplemented in vtkFloatTensors.

void vtkTensors::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkAttributeData.

vtkTensors* vtkTensors::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkAttributeData.

void vtkTensors::SetNumberOfTensors int    number [inline]
 

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 vtkTensors::SetTensor int    id,
vtkTensor   t
 

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


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:33:37 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002