Documentation for vtkVectors

vtkVectors - represent and manipulate 3D vectors

Super Class: vtkAttributeData

Description:

vtkVectors represents 3D vectors. The data model for vtkVectors is an array of vx-vy-vz triplets accessible by (point or cell) id.

 

Methods:

void vtkVectors (int )
static vtkVectors *New (int )
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
vtkAttributeData *MakeObject ()
int GetNumberOfVectors ()
float *GetVector (int )
void GetVector (int ,float )
void SetVector (int ,float )
void InsertVector (int ,float )
int InsertNextVector (float )
void SetNumberOfVectors (int )
void InsertVector (int ,float ,float ,float )
int InsertNextVector (float ,float ,float )
void ComputeMaxNorm ()
float GetMaxNorm ()
void GetVectors (vtkIdList * ,vtkVectors *)
void GetVectors (vtkIdList & ,vtkVectors &)

 

Detailed Method Descriptions:

Create a copy of this object.

vtkAttributeData *MakeObject ()

Return number of vectors in array.

int GetNumberOfVectors ()

Return a pointer to a float vector v[3] for a specific id.

float *GetVector (int )

Copy vector components into user provided array v[3] for specified id.

void GetVector (int ,float )

Insert vector into object. No range checking performed (fast!). Make sure you use SetNumberOfVectors() to allocate memory prior to using SetVector().

void SetVector (int ,float )

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

void InsertVector (int ,float )

Insert vector into next available slot. Returns id of slot.

int InsertNextVector (float )

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

void SetNumberOfVectors (int )

Insert vector into position indicated.

void InsertVector (int ,float ,float ,float )

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

int InsertNextVector (float ,float ,float )

Compute the largest norm for these vectors.

void ComputeMaxNorm ()

Return the maximum norm for these vectors.

float GetMaxNorm ()

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

void GetVectors (vtkIdList * ,vtkVectors *)