VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkImplicitTextureCoords Class Reference

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)
 
vtkImplicitTextureCoordsNewInstance () 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 vtkImplicitTextureCoordsSafeDownCast (vtkObjectBase *o)
 
static vtkImplicitTextureCoordsNew ()
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkImplicitTextureCoords ()
 
 ~vtkImplicitTextureCoords ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

vtkImplicitFunction * RFunction
 
vtkImplicitFunction * SFunction
 
vtkImplicitFunction * TFunction
 
int FlipTexture
 

Detailed Description

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

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
Tests:
vtkImplicitTextureCoords (Tests)

Definition at line 59 of file vtkImplicitTextureCoords.h.

Member Typedef Documentation

typedef vtkDataSetAlgorithm vtkImplicitTextureCoords::Superclass

Definition at line 62 of file vtkImplicitTextureCoords.h.

Constructor & Destructor Documentation

vtkImplicitTextureCoords::vtkImplicitTextureCoords ( )
protected
vtkImplicitTextureCoords::~vtkImplicitTextureCoords ( )
protected

Member Function Documentation

static int vtkImplicitTextureCoords::IsTypeOf ( const char *  type)
static
virtual int vtkImplicitTextureCoords::IsA ( const char *  type)
virtual
static vtkImplicitTextureCoords* vtkImplicitTextureCoords::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkImplicitTextureCoords::NewInstanceInternal ( ) const
protectedvirtual
vtkImplicitTextureCoords* vtkImplicitTextureCoords::NewInstance ( ) const
void vtkImplicitTextureCoords::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
static vtkImplicitTextureCoords* vtkImplicitTextureCoords::New ( )
static

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

virtual void vtkImplicitTextureCoords::SetRFunction ( vtkImplicitFunction *  )
virtual

Specify an implicit function to compute the r texture coordinate.

virtual vtkImplicitFunction* vtkImplicitTextureCoords::GetRFunction ( )
virtual

Specify an implicit function to compute the r texture coordinate.

virtual void vtkImplicitTextureCoords::SetSFunction ( vtkImplicitFunction *  )
virtual

Specify an implicit function to compute the s texture coordinate.

virtual vtkImplicitFunction* vtkImplicitTextureCoords::GetSFunction ( )
virtual

Specify an implicit function to compute the s texture coordinate.

virtual void vtkImplicitTextureCoords::SetTFunction ( vtkImplicitFunction *  )
virtual

Specify an implicit function to compute the t texture coordinate.

virtual vtkImplicitFunction* vtkImplicitTextureCoords::GetTFunction ( )
virtual

Specify an implicit function to compute the t texture coordinate.

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

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 void vtkImplicitTextureCoords::FlipTextureOn ( )
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 void vtkImplicitTextureCoords::FlipTextureOff ( )
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).

int vtkImplicitTextureCoords::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected

Member Data Documentation

vtkImplicitFunction* vtkImplicitTextureCoords::RFunction
protected

Definition at line 101 of file vtkImplicitTextureCoords.h.

vtkImplicitFunction* vtkImplicitTextureCoords::SFunction
protected

Definition at line 102 of file vtkImplicitTextureCoords.h.

vtkImplicitFunction* vtkImplicitTextureCoords::TFunction
protected

Definition at line 103 of file vtkImplicitTextureCoords.h.

int vtkImplicitTextureCoords::FlipTexture
protected

Definition at line 104 of file vtkImplicitTextureCoords.h.


The documentation for this class was generated from the following file: