Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
vtkTexture Class Reference
handles properties associated with a texture map.
More...
#include <vtkTexture.h>
Inheritance diagram for vtkTexture:
[legend]Collaboration diagram for vtkTexture:
[legend]List of all members.
Detailed Description
handles properties associated with a texture map.
-
Date:
-
2001/11/02 16:43:22
-
Revision:
-
1.53
vtkTexture is an object that handles loading and binding of texture maps. It obtains its data from an input image data dataset type. Thus you can create visualization pipelines to read, process, and construct textures. Note that textures will only work if texture coordinates are also defined, and if the rendering system supports texture.
Instances of vtkTexture are associated with actors via the actor's SetTexture() method. Actors can share texture maps (this is encouraged to save memory resources.)
-
Warning:
-
Currently only 2D texture maps are supported, even though the data pipeline supports 1,2, and 3D texture coordinates.
-
Warning:
-
Some renderers such as OpenGL require that the texture map dimensions are a power of two in each direction. Other renderers may have similar (ridiculous) restrictions, so be careful out there... (Note: a recent change to vtk allows use of non-power of two texture maps in OpenGL. The texture is automatically resampled to a power of two in one or more directions.)
-
See also:
-
vtkActor vtkRenderer vtkOpenGLTexture
-
Examples:
-
vtkTexture (Examples)
-
Tests:
-
vtkTexture (Tests)
Definition at line 93 of file vtkTexture.h.
Constructor & Destructor Documentation
vtkTexture::vtkTexture |
( |
|
) |
[protected] |
|
vtkTexture::~vtkTexture |
( |
|
) |
[protected] |
|
Member Function Documentation
vtkTexture* vtkTexture::New |
( |
|
) |
[static] |
|
virtual const char* vtkTexture::GetClassName |
( |
|
) |
[virtual] |
|
int vtkTexture::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
virtual int vtkTexture::IsA |
( |
const char * |
type |
) |
[virtual] |
|
vtkTexture* vtkTexture::SafeDownCast |
( |
vtkObject * |
o |
) |
[static] |
|
void vtkTexture::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 vtkProcessObject. |
virtual void vtkTexture::Render |
( |
vtkRenderer * |
ren |
) |
[virtual] |
|
|
Renders a texture map. It first checks the object's modified time to make sure the texture maps Input is valid, then it invokes the Load() method. |
virtual void vtkTexture::ReleaseGraphicsResources |
( |
vtkWindow * |
|
) |
[inline, virtual] |
|
|
Release any graphics resources that are being consumed by this texture. The parameter window could be used to determine which graphic resources to release.
Reimplemented in vtkMesaTexture, and vtkOpenGLTexture.
Definition at line 108 of file vtkTexture.h. |
virtual void vtkTexture::Load |
( |
vtkRenderer * |
ren |
) |
[inline, virtual] |
|
|
Abstract interface to renderer. Each concrete subclass of vtkTexture will load its data into graphics system in response to this method invocation.
Reimplemented in vtkMesaTexture, and vtkOpenGLTexture.
Definition at line 113 of file vtkTexture.h. |
virtual int vtkTexture::GetRepeat |
( |
|
) |
[virtual] |
|
|
Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range. |
virtual void vtkTexture::SetRepeat |
( |
int |
|
) |
[virtual] |
|
|
Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range. |
virtual void vtkTexture::RepeatOn |
( |
|
) |
[virtual] |
|
|
Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range. |
virtual void vtkTexture::RepeatOff |
( |
|
) |
[virtual] |
|
|
Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range. |
virtual int vtkTexture::GetInterpolate |
( |
|
) |
[virtual] |
|
|
Turn on/off linear interpolation of the texture map when rendering. |
virtual void vtkTexture::SetInterpolate |
( |
int |
|
) |
[virtual] |
|
|
Turn on/off linear interpolation of the texture map when rendering. |
virtual void vtkTexture::InterpolateOn |
( |
|
) |
[virtual] |
|
|
Turn on/off linear interpolation of the texture map when rendering. |
virtual void vtkTexture::InterpolateOff |
( |
|
) |
[virtual] |
|
|
Turn on/off linear interpolation of the texture map when rendering. |
virtual void vtkTexture::SetQuality |
( |
int |
|
) |
[virtual] |
|
|
Force texture quality to 16-bit or 32-bit. This might not be supported on all machines. |
virtual int vtkTexture::GetQuality |
( |
|
) |
[virtual] |
|
|
Force texture quality to 16-bit or 32-bit. This might not be supported on all machines. |
void vtkTexture::SetQualityToDefault |
( |
|
) |
[inline] |
|
|
Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.
Definition at line 135 of file vtkTexture.h. |
void vtkTexture::SetQualityTo16Bit |
( |
|
) |
[inline] |
|
|
Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.
Definition at line 136 of file vtkTexture.h. |
void vtkTexture::SetQualityTo32Bit |
( |
|
) |
[inline] |
|
|
Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.
Definition at line 137 of file vtkTexture.h. |
virtual int vtkTexture::GetMapColorScalarsThroughLookupTable |
( |
|
) |
[virtual] |
|
|
Turn on/off the mapping of color scalars through the lookup table. The default is Off. If Off, unsigned char scalars will be used directly as texture. If On, scalars will be mapped through the lookup table to generate 4-component unsigned char scalars. This ivar does not affect other scalars like unsigned short, float, etc. These scalars are always mapped through lookup tables. |
virtual void vtkTexture::SetMapColorScalarsThroughLookupTable |
( |
int |
|
) |
[virtual] |
|
|
Turn on/off the mapping of color scalars through the lookup table. The default is Off. If Off, unsigned char scalars will be used directly as texture. If On, scalars will be mapped through the lookup table to generate 4-component unsigned char scalars. This ivar does not affect other scalars like unsigned short, float, etc. These scalars are always mapped through lookup tables. |
virtual void vtkTexture::MapColorScalarsThroughLookupTableOn |
( |
|
) |
[virtual] |
|
|
Turn on/off the mapping of color scalars through the lookup table. The default is Off. If Off, unsigned char scalars will be used directly as texture. If On, scalars will be mapped through the lookup table to generate 4-component unsigned char scalars. This ivar does not affect other scalars like unsigned short, float, etc. These scalars are always mapped through lookup tables. |
virtual void vtkTexture::MapColorScalarsThroughLookupTableOff |
( |
|
) |
[virtual] |
|
|
Turn on/off the mapping of color scalars through the lookup table. The default is Off. If Off, unsigned char scalars will be used directly as texture. If On, scalars will be mapped through the lookup table to generate 4-component unsigned char scalars. This ivar does not affect other scalars like unsigned short, float, etc. These scalars are always mapped through lookup tables. |
|
This process object accepts image data as input. |
|
This process object accepts image data as input. |
|
Specify the lookup table to convert scalars if necessary |
|
Specify the lookup table to convert scalars if necessary |
unsigned char* vtkTexture::MapScalarsToColors |
( |
vtkDataArray * |
scalars |
) |
|
|
|
Map scalar values into color scalars. |
Member Data Documentation
int vtkTexture::Repeat [protected]
|
|
int vtkTexture::Interpolate [protected]
|
|
int vtkTexture::Quality [protected]
|
|
int vtkTexture::MapColorScalarsThroughLookupTable [protected]
|
|
int vtkTexture::SelfAdjustingTableRange [protected]
|
|
The documentation for this class was generated from the following file:
Generated on Thu Mar 28 14:43:44 2002 for VTK by
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001