VTK
|
OpenGL texture map. More...
#include <vtkOpenGLTexture.h>
OpenGL texture map.
vtkOpenGLTexture is a concrete implementation of the abstract class vtkTexture. vtkOpenGLTexture interfaces to the OpenGL rendering library.
Definition at line 36 of file vtkOpenGLTexture.h.
Reimplemented from vtkTexture.
Definition at line 40 of file vtkOpenGLTexture.h.
Reimplemented from vtkTexture.
Definition at line 36 of file vtkOpenGLTexture.h.
vtkOpenGLTexture::vtkOpenGLTexture | ( | ) | [protected] |
vtkOpenGLTexture::~vtkOpenGLTexture | ( | ) | [protected] |
vtkOpenGLTexture::vtkOpenGLTexture | ( | ) | [protected] |
vtkOpenGLTexture::~vtkOpenGLTexture | ( | ) | [protected] |
static vtkOpenGLTexture* vtkOpenGLTexture::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTexture.
static int vtkOpenGLTexture::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 vtkTexture.
virtual int vtkOpenGLTexture::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 vtkTexture.
static vtkOpenGLTexture* vtkOpenGLTexture::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkTexture.
virtual vtkObjectBase* vtkOpenGLTexture::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkTexture.
vtkOpenGLTexture* vtkOpenGLTexture::NewInstance | ( | ) | const |
Reimplemented from vtkTexture.
virtual void vtkOpenGLTexture::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 vtkTexture.
void vtkOpenGLTexture::Load | ( | vtkRenderer * | ) | [virtual] |
Implement base class method.
Reimplemented from vtkTexture.
virtual void vtkOpenGLTexture::PostRender | ( | vtkRenderer * | ) | [virtual] |
Cleans up after the texture rendering to restore the state of the graphics context.
Reimplemented from vtkTexture.
void vtkOpenGLTexture::ReleaseGraphicsResources | ( | vtkWindow * | ) | [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. Using the same texture object in multiple render windows is NOT currently supported.
Reimplemented from vtkTexture.
virtual long vtkOpenGLTexture::GetIndex | ( | ) | [virtual] |
Get the openGL texture name to which this texture is bound. This is available only if GL version >= 1.1
unsigned char* vtkOpenGLTexture::ResampleToPowerOfTwo | ( | int & | xsize, |
int & | ysize, | ||
unsigned char * | dptr, | ||
int | bpp | ||
) | [protected] |
static vtkOpenGLTexture* vtkOpenGLTexture::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTexture.
static int vtkOpenGLTexture::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 vtkTexture.
virtual int vtkOpenGLTexture::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 vtkTexture.
static vtkOpenGLTexture* vtkOpenGLTexture::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkTexture.
virtual vtkObjectBase* vtkOpenGLTexture::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkTexture.
vtkOpenGLTexture* vtkOpenGLTexture::NewInstance | ( | ) | const |
Reimplemented from vtkTexture.
virtual void vtkOpenGLTexture::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 vtkTexture.
virtual void vtkOpenGLTexture::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.
Reimplemented from vtkTexture.
void vtkOpenGLTexture::Load | ( | vtkRenderer * | ) | [virtual] |
Implement base class method.
Reimplemented from vtkTexture.
virtual void vtkOpenGLTexture::PostRender | ( | vtkRenderer * | ) | [virtual] |
Cleans up after the texture rendering to restore the state of the graphics context.
Reimplemented from vtkTexture.
void vtkOpenGLTexture::ReleaseGraphicsResources | ( | vtkWindow * | ) | [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. Using the same texture object in multiple render windows is NOT currently supported.
Reimplemented from vtkTexture.
virtual long vtkOpenGLTexture::GetIndex | ( | ) | [virtual] |
Get the openGL texture name to which this texture is bound.
void vtkOpenGLTexture::CopyTexImage | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
copy the renderers read buffer into this texture
virtual int vtkOpenGLTexture::GetIsDepthTexture | ( | ) | [virtual] |
Provide for specifying a format for the texture
virtual void vtkOpenGLTexture::SetIsDepthTexture | ( | int | ) | [virtual] |
Provide for specifying a format for the texture
virtual int vtkOpenGLTexture::GetTextureType | ( | ) | [virtual] |
What type of texture map GL_TEXTURE_2D versus GL_TEXTURE_RECTANGLE
virtual void vtkOpenGLTexture::SetTextureType | ( | int | ) | [virtual] |
What type of texture map GL_TEXTURE_2D versus GL_TEXTURE_RECTANGLE
virtual vtkTextureObject* vtkOpenGLTexture::GetTextureObject | ( | ) | [virtual] |
virtual int vtkOpenGLTexture::GetTextureUnit | ( | ) | [virtual] |
Return the texture unit used for this texture
Reimplemented from vtkTexture.
virtual int vtkOpenGLTexture::IsTranslucent | ( | ) | [virtual] |
Is this Texture Translucent? returns false (0) if the texture is either fully opaque or has only fully transparent pixels and fully opaque pixels and the Interpolate flag is turn off.
Reimplemented from vtkTexture.
unsigned char* vtkOpenGLTexture::ResampleToPowerOfTwo | ( | int & | xsize, |
int & | ysize, | ||
unsigned char * | dptr, | ||
int | bpp | ||
) | [protected] |
vtkTimeStamp vtkOpenGLTexture::LoadTime [protected] |
Definition at line 70 of file vtkOpenGLTexture.h.
unsigned int vtkOpenGLTexture::Index [protected] |
Definition at line 71 of file vtkOpenGLTexture.h.
vtkWeakPointer< vtkRenderWindow > vtkOpenGLTexture::RenderWindow [protected] |
Definition at line 72 of file vtkOpenGLTexture.h.
bool vtkOpenGLTexture::CheckedHardwareSupport [protected] |
Definition at line 73 of file vtkOpenGLTexture.h.
bool vtkOpenGLTexture::SupportsNonPowerOfTwoTextures [protected] |
Definition at line 74 of file vtkOpenGLTexture.h.
bool vtkOpenGLTexture::SupportsPBO [protected] |
Definition at line 75 of file vtkOpenGLTexture.h.
vtkPixelBufferObject* vtkOpenGLTexture::PBO [protected] |
Definition at line 76 of file vtkOpenGLTexture.h.
bool vtkOpenGLTexture::ExternalTextureObject [protected] |
Definition at line 96 of file vtkOpenGLTexture.h.
vtkTextureObject* vtkOpenGLTexture::TextureObject [protected] |
Definition at line 97 of file vtkOpenGLTexture.h.
int vtkOpenGLTexture::IsDepthTexture [protected] |
Definition at line 99 of file vtkOpenGLTexture.h.
int vtkOpenGLTexture::TextureType [protected] |
Definition at line 100 of file vtkOpenGLTexture.h.