VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkOpenGLTexture Class Reference

OpenGL texture map. More...

#include <vtkOpenGLTexture.h>

Inheritance diagram for vtkOpenGLTexture:
Inheritance graph
[legend]
Collaboration diagram for vtkOpenGLTexture:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkTexture Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkOpenGLTextureNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
void Load (vtkRenderer *)
virtual void PostRender (vtkRenderer *)
void ReleaseGraphicsResources (vtkWindow *)
virtual long GetIndex ()

Static Public Member Functions

static vtkOpenGLTextureNew ()
static int IsTypeOf (const char *type)
static vtkOpenGLTextureSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkOpenGLTexture ()
 ~vtkOpenGLTexture ()
unsigned char * ResampleToPowerOfTwo (int &xsize, int &ysize, unsigned char *dptr, int bpp)

Protected Attributes

vtkTimeStamp LoadTime
unsigned int Index
vtkWeakPointer< vtkRenderWindowRenderWindow
bool CheckedHardwareSupport
bool SupportsNonPowerOfTwoTextures
bool SupportsPBO
vtkPixelBufferObjectPBO

Detailed Description

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.


Member Typedef Documentation

Reimplemented from vtkTexture.

Definition at line 40 of file vtkOpenGLTexture.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkTexture.

virtual vtkObjectBase* vtkOpenGLTexture::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkTexture.

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.

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]

Member Data Documentation

Definition at line 70 of file vtkOpenGLTexture.h.

unsigned int vtkOpenGLTexture::Index [protected]

Definition at line 71 of file vtkOpenGLTexture.h.

Definition at line 72 of file vtkOpenGLTexture.h.

Definition at line 73 of file vtkOpenGLTexture.h.

Definition at line 74 of file vtkOpenGLTexture.h.

Definition at line 75 of file vtkOpenGLTexture.h.

Definition at line 76 of file vtkOpenGLTexture.h.


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