#include <vtkTransformTextureCoords.h>
Inheritance diagram for vtkTransformTextureCoords:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetPosition (float, float, float) |
virtual void | SetPosition (float[3]) |
virtual float * | GetPosition () |
virtual void | GetPosition (float data[3]) |
void | AddPosition (float deltaR, float deltaS, float deltaT) |
void | AddPosition (float deltaPosition[3]) |
virtual void | SetScale (float, float, float) |
virtual void | SetScale (float[3]) |
virtual float * | GetScale () |
virtual void | GetScale (float data[3]) |
virtual void | SetOrigin (float, float, float) |
virtual void | SetOrigin (float[3]) |
virtual float * | GetOrigin () |
virtual void | GetOrigin (float 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 Methods | |
int | IsTypeOf (const char *type) |
vtkTransformTextureCoords * | SafeDownCast (vtkObject *o) |
vtkTransformTextureCoords * | New () |
Protected Methods | |
vtkTransformTextureCoords () | |
~vtkTransformTextureCoords () | |
vtkTransformTextureCoords (const vtkTransformTextureCoords &) | |
void | operator= (const vtkTransformTextureCoords &) |
void | Execute () |
Protected Attributes | |
float | Origin [3] |
float | Position [3] |
float | Scale [3] |
int | FlipR |
int | FlipS |
int | FlipT |
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.
|
Incrementally change the position of the texture map (i.e., does a translate or shift of the texture coordinates). |
|
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 vtkDataSetToDataSetFilter. |
|
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 vtkDataSetToDataSetFilter. |
|
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 vtkDataSetToDataSetFilter. |
|
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 vtkDataSetSource. |
|
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 vtkSource. |
|
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 vtkDataSetToDataSetFilter. |
|
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. |
|
Boolean indicates whether the texture map should be flipped around the t-axis. Note that the flips occur around the texture origin. |
|
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 position of the texture map. Setting the position translates the texture map by the amount specified. |
|
Set/Get the scale of the texture map. Scaling in performed independently on the r, s and t axes. |