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
vtkTriangularTexture Class Reference

generate 2D triangular texture map More...

#include <vtkTriangularTexture.h>

Inherits vtkImageAlgorithm.

Public Types

typedef vtkImageAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkTriangularTextureNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetScaleFactor (double)
 
virtual double GetScaleFactor ()
 
virtual void SetXSize (int)
 
virtual int GetXSize ()
 
virtual void SetYSize (int)
 
virtual int GetYSize ()
 
virtual void SetTexturePattern (int)
 
virtual int GetTexturePattern ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkTriangularTextureSafeDownCast (vtkObjectBase *o)
 
static vtkTriangularTextureNew ()
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkTriangularTexture ()
 
 ~vtkTriangularTexture ()
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual void ExecuteDataWithInformation (vtkDataObject *data, vtkInformation *outInfo)
 

Protected Attributes

int XSize
 
int YSize
 
double ScaleFactor
 
int TexturePattern
 

Detailed Description

generate 2D triangular texture map

vtkTriangularTexture is a filter that generates a 2D texture map based on the paper "Opacity-modulating Triangular Textures for Irregular Surfaces," by Penny Rheingans, IEEE Visualization '96, pp. 219-225. The textures assume texture coordinates of (0,0), (1.0) and (.5, sqrt(3)/2). The sequence of texture values is the same along each edge of the triangular texture map. So, the assignment order of texture coordinates is arbitrary.

See Also
vtkTriangularTCoords
Tests:
vtkTriangularTexture (Tests)

Definition at line 39 of file vtkTriangularTexture.h.

Member Typedef Documentation

typedef vtkImageAlgorithm vtkTriangularTexture::Superclass

Definition at line 42 of file vtkTriangularTexture.h.

Constructor & Destructor Documentation

vtkTriangularTexture::vtkTriangularTexture ( )
protected
vtkTriangularTexture::~vtkTriangularTexture ( )
inlineprotected

Definition at line 76 of file vtkTriangularTexture.h.

Member Function Documentation

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

Instantiate object with XSize and YSize = 64; the texture pattern =1 (opaque at centroid); and the scale factor set to 1.0.

virtual void vtkTriangularTexture::SetScaleFactor ( double  )
virtual

Set a Scale Factor.

virtual double vtkTriangularTexture::GetScaleFactor ( )
virtual

Set a Scale Factor.

virtual void vtkTriangularTexture::SetXSize ( int  )
virtual

Set the X texture map dimension. Default is 64.

virtual int vtkTriangularTexture::GetXSize ( )
virtual

Set the X texture map dimension. Default is 64.

virtual void vtkTriangularTexture::SetYSize ( int  )
virtual

Set the Y texture map dimension. Default is 64.

virtual int vtkTriangularTexture::GetYSize ( )
virtual

Set the Y texture map dimension. Default is 64.

virtual void vtkTriangularTexture::SetTexturePattern ( int  )
virtual

Set the texture pattern. 1 = opaque at centroid (default) 2 = opaque at vertices 3 = opaque in rings around vertices

virtual int vtkTriangularTexture::GetTexturePattern ( )
virtual

Set the texture pattern. 1 = opaque at centroid (default) 2 = opaque at vertices 3 = opaque in rings around vertices

virtual int vtkTriangularTexture::RequestInformation ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual
virtual void vtkTriangularTexture::ExecuteDataWithInformation ( vtkDataObject *  data,
vtkInformation *  outInfo 
)
protectedvirtual

Member Data Documentation

int vtkTriangularTexture::XSize
protected

Definition at line 81 of file vtkTriangularTexture.h.

int vtkTriangularTexture::YSize
protected

Definition at line 82 of file vtkTriangularTexture.h.

double vtkTriangularTexture::ScaleFactor
protected

Definition at line 83 of file vtkTriangularTexture.h.

int vtkTriangularTexture::TexturePattern
protected

Definition at line 85 of file vtkTriangularTexture.h.


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