Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File 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)

Definition at line 64 of file vtkTCoords.h.


Constructor & Destructor Documentation

vtkTCoords::vtkTCoords   [protected]
 

vtkTCoords::~vtkTCoords   [inline, protected]
 

Definition at line 132 of file vtkTCoords.h.

vtkTCoords::vtkTCoords const vtkTCoords &    [inline, protected]
 

Definition at line 133 of file vtkTCoords.h.


Member Function Documentation

vtkTCoords* vtkTCoords::New int    dataType,
int    numComp = 2
[static]
 

vtkTCoords* vtkTCoords::New   [static]
 

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

Reimplemented from vtkObject.

Reimplemented in vtkFloatTCoords.

Referenced by MakeObject().

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

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.

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

void vtkTCoords::SetData vtkDataArray   data [virtual]
 

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

Reimplemented from vtkAttributeData.

Reimplemented in vtkFloatTCoords.

Referenced by vtkFloatTCoords::SetData().

vtkAttributeData * vtkTCoords::MakeObject   [inline, virtual]
 

Create a copy of this object.

Reimplemented from vtkAttributeData.

Definition at line 138 of file vtkTCoords.h.

int vtkTCoords::GetNumberOfTCoords   [inline]
 

Return number of texture coordinates in array.

Definition at line 82 of file vtkTCoords.h.

float* vtkTCoords::GetTCoord int    id [inline]
 

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

Definition at line 86 of file vtkTCoords.h.

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

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

Definition at line 90 of file vtkTCoords.h.

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.

Definition at line 94 of file vtkTCoords.h.

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().

Definition at line 99 of file vtkTCoords.h.

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

Definition at line 149 of file vtkTCoords.h.

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

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

Definition at line 104 of file vtkTCoords.h.

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

Insert TCoord into position indicated.

Definition at line 158 of file vtkTCoords.h.

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

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

Definition at line 112 of file vtkTCoords.h.

int vtkTCoords::InsertNextTCoord float    tx,
float    ty,
float    tz
[inline]
 

Definition at line 168 of file vtkTCoords.h.

void vtkTCoords::SetNumberOfComponents int    num [inline]
 

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

Definition at line 143 of file vtkTCoords.h.

int vtkTCoords::GetNumberOfComponents   [inline]
 

Definition at line 118 of file vtkTCoords.h.

Referenced by MakeObject().

void vtkTCoords::GetTCoords vtkIdList   ptId,
vtkTCoords *    fv
 

Get a list of texture coordinates

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

For legacy compatibility. Do not use.

Definition at line 126 of file vtkTCoords.h.

void vtkTCoords::operator= const vtkTCoords &    [inline, protected]
 

Definition at line 134 of file vtkTCoords.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 13:00:45 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001