Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
vtkTransformTextureCoords Class Reference
transform (scale, rotate, translate) texture coordinates.
More...
#include <vtkTransformTextureCoords.h>
Inheritance diagram for vtkTransformTextureCoords:
[legend]Collaboration diagram for vtkTransformTextureCoords:
[legend]List of all members.
Detailed Description
transform (scale, rotate, translate) texture coordinates.
-
Date:
-
2000/12/10 20:08:56
-
Revision:
-
1.22
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
-
Examples:
-
vtkTransformTextureCoords (examples)
Definition at line 69 of file vtkTransformTextureCoords.h.
Constructor & Destructor Documentation
vtkTransformTextureCoords::vtkTransformTextureCoords |
( |
|
) |
[protected] |
|
vtkTransformTextureCoords::~vtkTransformTextureCoords |
( |
|
) |
[inline, protected] |
|
vtkTransformTextureCoords::vtkTransformTextureCoords |
( |
const vtkTransformTextureCoords & |
|
) |
[inline, protected] |
|
Member Function Documentation
virtual const char* vtkTransformTextureCoords::GetClassName |
( |
|
) |
[virtual] |
|
int vtkTransformTextureCoords::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 vtkDataSetToDataSetFilter. |
virtual int vtkTransformTextureCoords::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 vtkDataSetToDataSetFilter. |
vtkTransformTextureCoords* vtkTransformTextureCoords::SafeDownCast |
( |
vtkObject * |
o |
) |
[static] |
|
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 vtkSource. |
vtkTransformTextureCoords* vtkTransformTextureCoords::New |
( |
|
) |
[static] |
|
|
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. |
virtual void vtkTransformTextureCoords::SetPosition |
( |
float |
, |
|
|
float |
, |
|
|
float |
|
|
) |
[virtual] |
|
|
Set/Get the position of the texture map. Setting the position translates the texture map by the amount specified. |
virtual void vtkTransformTextureCoords::SetPosition |
( |
float |
[3] |
) |
[virtual] |
|
virtual float* vtkTransformTextureCoords::GetPosition |
( |
|
) |
[virtual] |
|
virtual void vtkTransformTextureCoords::GetPosition |
( |
float |
data[3] |
) |
[virtual] |
|
void vtkTransformTextureCoords::AddPosition |
( |
float |
deltaR, |
|
|
float |
deltaS, |
|
|
float |
deltaT |
|
) |
|
|
|
Incrementally change the position of the texture map (i.e., does a translate or shift of the texture coordinates). |
void vtkTransformTextureCoords::AddPosition |
( |
float |
deltaPosition[3] |
) |
|
|
virtual void vtkTransformTextureCoords::SetScale |
( |
float |
, |
|
|
float |
, |
|
|
float |
|
|
) |
[virtual] |
|
|
Set/Get the scale of the texture map. Scaling in performed independently on the r, s and t axes. |
virtual void vtkTransformTextureCoords::SetScale |
( |
float |
[3] |
) |
[virtual] |
|
virtual float* vtkTransformTextureCoords::GetScale |
( |
|
) |
[virtual] |
|
virtual void vtkTransformTextureCoords::GetScale |
( |
float |
data[3] |
) |
[virtual] |
|
virtual void vtkTransformTextureCoords::SetOrigin |
( |
float |
, |
|
|
float |
, |
|
|
float |
|
|
) |
[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 |
( |
float |
[3] |
) |
[virtual] |
|
virtual float* vtkTransformTextureCoords::GetOrigin |
( |
|
) |
[virtual] |
|
virtual void vtkTransformTextureCoords::GetOrigin |
( |
float |
data[3] |
) |
[virtual] |
|
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. |
virtual int vtkTransformTextureCoords::GetFlipR |
( |
|
) |
[virtual] |
|
virtual void vtkTransformTextureCoords::FlipROn |
( |
|
) |
[virtual] |
|
virtual void vtkTransformTextureCoords::FlipROff |
( |
|
) |
[virtual] |
|
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. |
virtual int vtkTransformTextureCoords::GetFlipS |
( |
|
) |
[virtual] |
|
virtual void vtkTransformTextureCoords::FlipSOn |
( |
|
) |
[virtual] |
|
virtual void vtkTransformTextureCoords::FlipSOff |
( |
|
) |
[virtual] |
|
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. |
virtual int vtkTransformTextureCoords::GetFlipT |
( |
|
) |
[virtual] |
|
virtual void vtkTransformTextureCoords::FlipTOn |
( |
|
) |
[virtual] |
|
virtual void vtkTransformTextureCoords::FlipTOff |
( |
|
) |
[virtual] |
|
void vtkTransformTextureCoords::operator= |
( |
const vtkTransformTextureCoords & |
|
) |
[inline, protected] |
|
void vtkTransformTextureCoords::Execute |
( |
|
) |
[protected, virtual] |
|
Member Data Documentation
float vtkTransformTextureCoords::Origin[3] [protected]
|
|
float vtkTransformTextureCoords::Position[3] [protected]
|
|
float vtkTransformTextureCoords::Scale[3] [protected]
|
|
int vtkTransformTextureCoords::FlipR [protected]
|
|
int vtkTransformTextureCoords::FlipS [protected]
|
|
int vtkTransformTextureCoords::FlipT [protected]
|
|
The documentation for this class was generated from the following file:
Generated on Wed Nov 21 13:01:08 2001 for VTK by
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001