Documentation for vtkTransformTextureCoords

vtkTransformTextureCoords - transform (scale, rotate, translate) texture coordinates

Super Class: vtkDataSetToDataSetFilter

Description:

vtkTransformTextureCoords is a filter that operates on texture coordinates. It ingests any type of dataset, and outputs a dataset of the same type. The filter lets you scale, translate, and rotate texture coordinates. For example, by using the the Scale ivar, you can shift texture coordinates that range from (0->1) to range from (0->10) (useful for repeated patterns). The filter operates on texture coordinates of dimension 1->3. The texture coordinates are referred to as r-s-t. If the texture map is two dimensional, the t-coordinate (and operations on the t-coordinate) are ignored.

 

See Also:

vtkTextureMapToPlane vtkTextureMapToBox vtkTextureMapToCylinder vtkTextureMapToSphere vtkThresholdTextureCoords vtkTexture vtkTCoords

 

Methods:

void vtkTransformTextureCoords ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkTransformTextureCoords *New ()
void SetPosition (float ,float ,float )
void SetPosition (float *)
float *GetPosition ()
void AddPosition (float ,float ,float )
void AddPosition (float )
void SetScale (float ,float ,float )
void SetScale (float *)
float *GetScale ()
void SetOrigin (float ,float ,float )
void SetOrigin (float *)
float *GetOrigin ()
void SetFlipR (int )
int GetFlipR ()
void FlipROn ()
void FlipROff ()
void SetFlipS (int )
int GetFlipS ()
void FlipSOn ()
void FlipSOff ()
void SetFlipT (int )
int GetFlipT ()
void FlipTOn ()
void FlipTOff ()
void Execute ()

 

Detailed Method Descriptions:

Create instance with Origin (0.5,0.5,0.5); Position (0,0,0); and Scale set to (1,1,1). Rotation of the texture coordinates is turned off.

static vtkTransformTextureCoords *New ()

Set/Get the position of the texture map. Setting the position translates the texture map by the amount specified.

void SetPosition (float ,float ,float )
void SetPosition (float *)
float *GetPosition ()

Incrementally change the position of the texture map (i.e., does a translate or shift of the texture coordinates).

void AddPosition (float ,float ,float )
void AddPosition (float )

Set/Get the scale of the texture map. Scaling in performed independently on the r, s and t axes.

void SetScale (float ,float ,float )
void SetScale (float *)
float *GetScale ()

Set/Get the origin of the texture map. This is the point about which the texture map is flipped (e.g., rotated). Since a typical texture map ranges from (0,1) in the r-s-t coordinates, the default origin is set at (0.5,0.5,0.5).

void SetOrigin (float ,float ,float )
void SetOrigin (float *)
float *GetOrigin ()

Boolean indicates whether the texture map should be flipped around the s-axis. Note that the flips occur around the texture origin.

void SetFlipR (int )
int GetFlipR ()
void FlipROn ()
void FlipROff ()
void SetFlipS (int )
int GetFlipS ()
void FlipSOn ()
void FlipSOff ()

Boolean indicates whether the texture map should be flipped around the t-axis. Note that the flips occur around the texture origin.

void SetFlipT (int )
int GetFlipT ()
void FlipTOn ()
void FlipTOff ()