Documentation for vtkImplicitTextureCoords

vtkImplicitTextureCoords - generate 1D, 2D, or 3D texture coordinates based on implicit function(s)

Super Class: vtkDataSetToDataSetFilter

Description:

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

 

Caveats:

You can use the transformation capabilities of vtkImplicitFunction to orient, translate, and scale the implicit functions. Also, the dimension of the texture coordinates is implicitly defined by the number of implicit functions defined.

 

See Also:

vtkImplicitFunction vtkTexture vtkBooleanTexture vtkTransformTexture

 

Methods:

void vtkImplicitTextureCoords ()
void vtkImplicitTextureCoords ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkImplicitTextureCoords *New ()
void SetRFunction (vtkImplicitFunction *)
vtkImplicitFunction *GetRFunction ()
void SetSFunction (vtkImplicitFunction *)
vtkImplicitFunction *GetSFunction ()
void SetTFunction (vtkImplicitFunction *)
vtkImplicitFunction *GetTFunction ()
void SetFlipTexture (int )
int GetFlipTexture ()
void FlipTextureOn ()
void FlipTextureOff ()
void Update ()
void Execute ()

 

Detailed Method Descriptions:

Create object with texture dimension=2 and no r-s-t implicit functions defined and FlipTexture turned off.

static vtkImplicitTextureCoords *New ()

Specify an implicit function to compute the r texture coordinate.

void SetRFunction (vtkImplicitFunction *)
vtkImplicitFunction *GetRFunction ()

Specify an implicit function to compute the s texture coordinate.

void SetSFunction (vtkImplicitFunction *)
vtkImplicitFunction *GetSFunction ()

Specify an implicit function to compute the t texture coordinate.

void SetTFunction (vtkImplicitFunction *)
vtkImplicitFunction *GetTFunction ()

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

void SetFlipTexture (int )
int GetFlipTexture ()
void FlipTextureOn ()
void FlipTextureOff ()

Update input to this filter and the filter itself. Note that we are overloading this method because the output is an abstract dataset type. This requires special treatment.

void Update ()