VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkTransformTextureCoords Class Reference

transform (scale, rotate, translate) texture coordinates More...

#include <vtkTransformTextureCoords.h>

Inheritance diagram for vtkTransformTextureCoords:
Inheritance graph
[legend]
Collaboration diagram for vtkTransformTextureCoords:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkDataSetAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkTransformTextureCoordsNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetPosition (double, double, double)
virtual void SetPosition (double[3])
virtual doubleGetPosition ()
virtual void GetPosition (double data[3])
void AddPosition (double deltaR, double deltaS, double deltaT)
void AddPosition (double deltaPosition[3])
virtual void SetScale (double, double, double)
virtual void SetScale (double[3])
virtual doubleGetScale ()
virtual void GetScale (double data[3])
virtual void SetOrigin (double, double, double)
virtual void SetOrigin (double[3])
virtual doubleGetOrigin ()
virtual void GetOrigin (double data[3])
virtual void SetFlipR (int)
virtual int GetFlipR ()
virtual void FlipROn ()
virtual void FlipROff ()
virtual void SetFlipS (int)
virtual int GetFlipS ()
virtual void FlipSOn ()
virtual void FlipSOff ()
virtual void SetFlipT (int)
virtual int GetFlipT ()
virtual void FlipTOn ()
virtual void FlipTOff ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkTransformTextureCoordsSafeDownCast (vtkObjectBase *o)
static vtkTransformTextureCoordsNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkTransformTextureCoords ()
 ~vtkTransformTextureCoords ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

double Origin [3]
double Position [3]
double Scale [3]
int FlipR
int FlipS
int FlipT

Detailed Description

transform (scale, rotate, translate) texture coordinates

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 vtkTextureMapToCylinder vtkTextureMapToSphere vtkThresholdTextureCoords vtkTexture
Examples:
vtkTransformTextureCoords (Examples)
Tests:
vtkTransformTextureCoords (Tests)

Definition at line 46 of file vtkTransformTextureCoords.h.


Member Typedef Documentation

Reimplemented from vtkDataSetAlgorithm.

Definition at line 49 of file vtkTransformTextureCoords.h.


Constructor & Destructor Documentation

Definition at line 113 of file vtkTransformTextureCoords.h.


Member Function Documentation

static int vtkTransformTextureCoords::IsTypeOf ( const char *  name) [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 vtkDataSetAlgorithm.

virtual int vtkTransformTextureCoords::IsA ( const char *  name) [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 vtkDataSetAlgorithm.

Reimplemented from vtkDataSetAlgorithm.

virtual vtkObjectBase* vtkTransformTextureCoords::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkDataSetAlgorithm.

Reimplemented from vtkDataSetAlgorithm.

void vtkTransformTextureCoords::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 vtkDataSetAlgorithm.

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.

Reimplemented from vtkDataSetAlgorithm.

virtual void vtkTransformTextureCoords::SetPosition ( double  ,
double  ,
double   
) [virtual]

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

virtual void vtkTransformTextureCoords::SetPosition ( double  [3]) [virtual]

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

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

virtual void vtkTransformTextureCoords::GetPosition ( double  data[3]) [virtual]

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

void vtkTransformTextureCoords::AddPosition ( double  deltaR,
double  deltaS,
double  deltaT 
)

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

void vtkTransformTextureCoords::AddPosition ( double  deltaPosition[3])

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

virtual void vtkTransformTextureCoords::SetScale ( double  ,
double  ,
double   
) [virtual]

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

virtual void vtkTransformTextureCoords::SetScale ( double  [3]) [virtual]

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

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

virtual void vtkTransformTextureCoords::GetScale ( double  data[3]) [virtual]

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

virtual void vtkTransformTextureCoords::SetOrigin ( double  ,
double  ,
double   
) [virtual]

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

virtual void vtkTransformTextureCoords::SetOrigin ( double  [3]) [virtual]

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

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

virtual void vtkTransformTextureCoords::GetOrigin ( double  data[3]) [virtual]

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

virtual void vtkTransformTextureCoords::SetFlipR ( int  ) [virtual]

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

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

virtual void vtkTransformTextureCoords::FlipROn ( ) [virtual]

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

virtual void vtkTransformTextureCoords::FlipROff ( ) [virtual]

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

virtual void vtkTransformTextureCoords::SetFlipS ( int  ) [virtual]

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

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

virtual void vtkTransformTextureCoords::FlipSOn ( ) [virtual]

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

virtual void vtkTransformTextureCoords::FlipSOff ( ) [virtual]

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

virtual void vtkTransformTextureCoords::SetFlipT ( int  ) [virtual]

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

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

virtual void vtkTransformTextureCoords::FlipTOn ( ) [virtual]

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

virtual void vtkTransformTextureCoords::FlipTOff ( ) [virtual]

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

This is called within ProcessRequest when a request asks the algorithm to do its work. This is the method you should override to do whatever the algorithm is designed to do. This happens during the fourth pass in the pipeline execution process.

Reimplemented from vtkDataSetAlgorithm.


Member Data Documentation

Definition at line 117 of file vtkTransformTextureCoords.h.

Definition at line 118 of file vtkTransformTextureCoords.h.

Definition at line 119 of file vtkTransformTextureCoords.h.

Definition at line 120 of file vtkTransformTextureCoords.h.

Definition at line 121 of file vtkTransformTextureCoords.h.

Definition at line 122 of file vtkTransformTextureCoords.h.


The documentation for this class was generated from the following file: