VTK
|
generate 1D, 2D, or 3D texture coordinates based on implicit function(s) More...
#include <vtkImplicitTextureCoords.h>
Inherits vtkDataSetAlgorithm.
Public Types | |
typedef vtkDataSetAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkImplicitTextureCoords * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetRFunction (vtkImplicitFunction *) |
virtual vtkImplicitFunction * | GetRFunction () |
virtual void | SetSFunction (vtkImplicitFunction *) |
virtual vtkImplicitFunction * | GetSFunction () |
virtual void | SetTFunction (vtkImplicitFunction *) |
virtual vtkImplicitFunction * | GetTFunction () |
virtual void | SetFlipTexture (int) |
virtual int | GetFlipTexture () |
virtual void | FlipTextureOn () |
virtual void | FlipTextureOff () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkImplicitTextureCoords * | SafeDownCast (vtkObjectBase *o) |
static vtkImplicitTextureCoords * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkImplicitTextureCoords () | |
~vtkImplicitTextureCoords () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
vtkImplicitFunction * | RFunction |
vtkImplicitFunction * | SFunction |
vtkImplicitFunction * | TFunction |
int | FlipTexture |
generate 1D, 2D, or 3D texture coordinates based on implicit function(s)
vtkImplicitTextureCoords is a filter to generate 1D, 2D, or 3D texture coordinates from one, two, or three implicit functions, respectively. In combinations with a vtkBooleanTexture map (or another texture map of your own creation), the texture coordinates can be used to highlight (via color or intensity) or cut (via transparency) dataset geometry without any complex geometric processing. (Note: the texture coordinates are referred to as r-s-t coordinates.)
The texture coordinates are automatically normalized to lie between (0,1). Thus, no matter what the implicit functions evaluate to, the resulting texture coordinates lie between (0,1), with the zero implicit function value mapped to the 0.5 texture coordinates value. Depending upon the maximum negative/positive implicit function values, the full (0,1) range may not be occupied (i.e., the positive/negative ranges are mapped using the same scale factor).
A boolean variable InvertTexture is available to flip the texture coordinates around 0.5 (value 1.0 becomes 0.0, 0.25->0.75). This is equivalent to flipping the texture map (but a whole lot easier).
Definition at line 59 of file vtkImplicitTextureCoords.h.
typedef vtkDataSetAlgorithm vtkImplicitTextureCoords::Superclass |
Definition at line 62 of file vtkImplicitTextureCoords.h.
|
protected |
|
protected |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkImplicitTextureCoords* vtkImplicitTextureCoords::NewInstance | ( | ) | const |
void vtkImplicitTextureCoords::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
Create object with texture dimension=2 and no r-s-t implicit functions defined and FlipTexture turned off.
|
virtual |
Specify an implicit function to compute the r texture coordinate.
|
virtual |
Specify an implicit function to compute the r texture coordinate.
|
virtual |
Specify an implicit function to compute the s texture coordinate.
|
virtual |
Specify an implicit function to compute the s texture coordinate.
|
virtual |
Specify an implicit function to compute the t texture coordinate.
|
virtual |
Specify an implicit function to compute the t texture coordinate.
|
virtual |
If enabled, this will flip the sense of inside and outside the implicit function (i.e., a rotation around the r-s-t=0.5 axis).
|
virtual |
If enabled, this will flip the sense of inside and outside the implicit function (i.e., a rotation around the r-s-t=0.5 axis).
|
virtual |
If enabled, this will flip the sense of inside and outside the implicit function (i.e., a rotation around the r-s-t=0.5 axis).
|
virtual |
If enabled, this will flip the sense of inside and outside the implicit function (i.e., a rotation around the r-s-t=0.5 axis).
|
protected |
|
protected |
Definition at line 101 of file vtkImplicitTextureCoords.h.
|
protected |
Definition at line 102 of file vtkImplicitTextureCoords.h.
|
protected |
Definition at line 103 of file vtkImplicitTextureCoords.h.
|
protected |
Definition at line 104 of file vtkImplicitTextureCoords.h.