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

vtkTCoords Class Reference

represent and manipulate texture coordinates. More...

#include <vtkTCoords.h>

Inheritance diagram for vtkTCoords:

Inheritance graph
[legend]
Collaboration diagram for vtkTCoords:

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)
void SetData (vtkDataArray *)
vtkAttributeDataMakeObject ()
int GetNumberOfTCoords ()
float * GetTCoord (int id)
void GetTCoord (int id, float tc[3])
void SetNumberOfTCoords (int number)
void SetTCoord (int id, const float tc[3])
void SetTCoord (int id, float r, float s, float t)
void InsertTCoord (int id, const float tc[3])
void InsertTCoord (int id, float tx, float ty, float tz)
int InsertNextTCoord (const float tc[3])
int InsertNextTCoord (float tx, float ty, float tz)
void SetNumberOfComponents (int num)
int GetNumberOfComponents ()
void GetTCoords (vtkIdList *ptId, vtkTCoords *fv)
void GetTCoords (vtkIdList &ptId, vtkTCoords &fv)

Static Public Methods

vtkTCoords * New (int dataType, int dim=2)
vtkTCoords * New ()
int IsTypeOf (const char *type)
vtkTCoords * SafeDownCast (vtkObject *o)

Protected Methods

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

Detailed Description

represent and manipulate texture coordinates.

Date:
2000/12/10 20:08:18
Revision:
1.47

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.

Examples:
vtkTCoords (examples)


Member Function Documentation

virtual const char* vtkTCoords::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 vtkTCoords::GetNumberOfTCoords   [inline]
 

Return number of texture coordinates in array.

void vtkTCoords::GetTCoord int    id,
float    tc[3]
[inline]
 

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

float* vtkTCoords::GetTCoord int    id [inline]
 

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

void vtkTCoords::GetTCoords vtkIdList   ptId,
vtkTCoords &    fv
[inline]
 

For legacy compatibility. Do not use.

void vtkTCoords::GetTCoords vtkIdList   ptId,
vtkTCoords *    fv
 

Get a list of texture coordinates

int vtkTCoords::InsertNextTCoord const float    tc[3] [inline]
 

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

void vtkTCoords::InsertTCoord int    id,
float    tx,
float    ty,
float    tz
[inline]
 

Insert TCoord into position indicated.

void vtkTCoords::InsertTCoord int    id,
const float    tc[3]
[inline]
 

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

virtual int vtkTCoords::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 vtkTCoords::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 * vtkTCoords::MakeObject   [inline, virtual]
 

Create a copy of this object.

Implements vtkAttributeData.

vtkTCoords* vtkTCoords::New   [static]
 

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

Reimplemented from vtkObject.

void vtkTCoords::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.

vtkTCoords* vtkTCoords::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 vtkTCoords::SetData vtkDataArray   [virtual]
 

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

Reimplemented from vtkAttributeData.

void vtkTCoords::SetNumberOfComponents int    num [inline]
 

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

void vtkTCoords::SetNumberOfTCoords int    number [inline]
 

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

void vtkTCoords::SetTCoord int    id,
const float    tc[3]
[inline]
 

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


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