Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkImplicitTextureCoords Class Reference

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

#include <vtkImplicitTextureCoords.h>

Inheritance diagram for vtkImplicitTextureCoords:

Inheritance graph
[legend]
Collaboration diagram for vtkImplicitTextureCoords:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetRFunction (vtkImplicitFunction *)
virtual vtkImplicitFunctionGetRFunction ()
virtual void SetSFunction (vtkImplicitFunction *)
virtual vtkImplicitFunctionGetSFunction ()
virtual void SetTFunction (vtkImplicitFunction *)
virtual vtkImplicitFunctionGetTFunction ()
virtual void SetFlipTexture (int)
virtual int GetFlipTexture ()
virtual void FlipTextureOn ()
virtual void FlipTextureOff ()

Static Public Methods

int IsTypeOf (const char *type)
vtkImplicitTextureCoords * SafeDownCast (vtkObject *o)
vtkImplicitTextureCoords * New ()

Protected Methods

 vtkImplicitTextureCoords ()
 ~vtkImplicitTextureCoords ()
 vtkImplicitTextureCoords (const vtkImplicitTextureCoords &)
void operator= (const vtkImplicitTextureCoords &)
void Execute ()

Protected Attributes

vtkImplicitFunctionRFunction
vtkImplicitFunctionSFunction
vtkImplicitFunctionTFunction
int FlipTexture

Detailed Description

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

Date:
2000/12/10 20:08:39
Revision:
1.34

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

Warning:
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
Examples:
vtkImplicitTextureCoords (examples)

Definition at line 84 of file vtkImplicitTextureCoords.h.


Constructor & Destructor Documentation

vtkImplicitTextureCoords::vtkImplicitTextureCoords   [protected]
 

vtkImplicitTextureCoords::~vtkImplicitTextureCoords   [protected]
 

vtkImplicitTextureCoords::vtkImplicitTextureCoords const vtkImplicitTextureCoords &    [inline, protected]
 

Definition at line 115 of file vtkImplicitTextureCoords.h.


Member Function Documentation

virtual const char* vtkImplicitTextureCoords::GetClassName   [virtual]
 

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.

int vtkImplicitTextureCoords::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 vtkImplicitTextureCoords::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.

vtkImplicitTextureCoords* vtkImplicitTextureCoords::SafeDownCast vtkObject   o [static]
 

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.

void vtkImplicitTextureCoords::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.

vtkImplicitTextureCoords* vtkImplicitTextureCoords::New   [static]
 

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

Reimplemented from vtkDataSetSource.

virtual void vtkImplicitTextureCoords::SetRFunction vtkImplicitFunction   [virtual]
 

Specify an implicit function to compute the r texture coordinate.

virtual vtkImplicitFunction* vtkImplicitTextureCoords::GetRFunction   [virtual]
 

virtual void vtkImplicitTextureCoords::SetSFunction vtkImplicitFunction   [virtual]
 

Specify an implicit function to compute the s texture coordinate.

virtual vtkImplicitFunction* vtkImplicitTextureCoords::GetSFunction   [virtual]
 

virtual void vtkImplicitTextureCoords::SetTFunction vtkImplicitFunction   [virtual]
 

Specify an implicit function to compute the t texture coordinate.

virtual vtkImplicitFunction* vtkImplicitTextureCoords::GetTFunction   [virtual]
 

virtual void vtkImplicitTextureCoords::SetFlipTexture int    [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 int vtkImplicitTextureCoords::GetFlipTexture   [virtual]
 

virtual void vtkImplicitTextureCoords::FlipTextureOn   [virtual]
 

virtual void vtkImplicitTextureCoords::FlipTextureOff   [virtual]
 

void vtkImplicitTextureCoords::operator= const vtkImplicitTextureCoords &    [inline, protected]
 

Definition at line 116 of file vtkImplicitTextureCoords.h.

void vtkImplicitTextureCoords::Execute   [protected, virtual]
 

Reimplemented from vtkSource.


Member Data Documentation

vtkImplicitFunction* vtkImplicitTextureCoords::RFunction [protected]
 

Definition at line 120 of file vtkImplicitTextureCoords.h.

vtkImplicitFunction* vtkImplicitTextureCoords::SFunction [protected]
 

Definition at line 121 of file vtkImplicitTextureCoords.h.

vtkImplicitFunction* vtkImplicitTextureCoords::TFunction [protected]
 

Definition at line 122 of file vtkImplicitTextureCoords.h.

int vtkImplicitTextureCoords::FlipTexture [protected]
 

Definition at line 123 of file vtkImplicitTextureCoords.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:49:12 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001