Documentation for vtkTCoords

vtkTCoords - represent and manipulate texture coordinates

Super Class: vtkAttributeData

Description:

vtkTCoords represents and manipulates 1D, 2D, or 3D texture coordinates. Texture coordinates are 1D (s), 2D (s,t), or 3D (r,s,t) parametric values that map geometry into regular 1D, 2D, or 3D arrays of color and/or transparency values. During rendering the array are mapped onto the geometry for fast image detailing.

 

Methods:

void vtkTCoords (int ,int )
static vtkTCoords *New (int ,int )
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void SetData (vtkDataArray *)
vtkAttributeData *MakeObject ()
int GetNumberOfTCoords ()
float *GetTCoord (int )
void GetTCoord (int ,float )
void SetNumberOfTCoords (int )
void SetTCoord (int ,float )
void InsertTCoord (int ,float )
void InsertTCoord (int ,float ,float ,float )
int InsertNextTCoord (float )
int InsertNextTCoord (float ,float ,float )
void SetNumberOfComponents (int )
int GetNumberOfComponents ()
void GetTCoords (vtkIdList * ,vtkTCoords *)
void GetTCoords (vtkIdList & ,vtkTCoords &)

 

Detailed Method Descriptions:

Set the data for this object. The tuple dimension must be consistent with the object.

void SetData (vtkDataArray *)

Create a copy of this object.

vtkAttributeData *MakeObject ()

Return number of texture coordinates in array.

int GetNumberOfTCoords ()

Return a pointer to float texture coordinates tc[3] for a specific id.

float *GetTCoord (int )

Copy texture coordinate components into user provided array tc[3] for specified id.

void GetTCoord (int ,float )

Specify the number of texture coordinates for this object to hold. Make sure that you set the number of components in texture first.

void SetNumberOfTCoords (int )

Insert TCoord into object. No range checking performed (fast!). Make sure you use SetNumberOfTCoords() to allocate memory prior to using SetTCoord().

void SetTCoord (int ,float )

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

void InsertTCoord (int ,float )

Insert TCoord into position indicated.

void InsertTCoord (int ,float ,float ,float )

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

int InsertNextTCoord (float )
int InsertNextTCoord (float ,float ,float )

Set/Get the number of components in texture. Should be 1<=n<=3.

void SetNumberOfComponents (int )

Get a list of texture coordinates

int GetNumberOfComponents ()
void GetTCoords (vtkIdList * ,vtkTCoords *)

For legacy compatibility. Do not use.

void GetTCoords (vtkIdList & ,vtkTCoords &)