VTK
|
generate 2D triangular texture map More...
#include <vtkTriangularTexture.h>
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.
Definition at line 39 of file vtkTriangularTexture.h.
Reimplemented from vtkImageAlgorithm.
Definition at line 42 of file vtkTriangularTexture.h.
vtkTriangularTexture::vtkTriangularTexture | ( | ) | [protected] |
vtkTriangularTexture::~vtkTriangularTexture | ( | ) | [inline, protected] |
Definition at line 76 of file vtkTriangularTexture.h.
static int vtkTriangularTexture::IsTypeOf | ( | const char * | name | ) | [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 vtkImageAlgorithm.
virtual int vtkTriangularTexture::IsA | ( | const char * | name | ) | [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 vtkImageAlgorithm.
static vtkTriangularTexture* vtkTriangularTexture::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkImageAlgorithm.
virtual vtkObjectBase* vtkTriangularTexture::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkImageAlgorithm.
Reimplemented from vtkImageAlgorithm.
void vtkTriangularTexture::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 vtkImageAlgorithm.
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.
Reimplemented from vtkAlgorithm.
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 * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.
Reimplemented from vtkImageAlgorithm.
virtual void vtkTriangularTexture::ExecuteDataWithInformation | ( | vtkDataObject * | output, |
vtkInformation * | outInfo | ||
) | [protected, virtual] |
This is a convenience method that is implemented in many subclasses instead of RequestData. It is called by RequestData.
Reimplemented from vtkImageAlgorithm.
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.