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

Storage for FBO's. More...

#include <vtkRenderbuffer.h>

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

List of all members.

Public Types

typedef vtkObject Superclass
typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkRenderbufferNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual int IsA (const char *type)
vtkRenderbufferNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual unsigned int GetHandle ()
void SetContext (vtkRenderWindow *win)
vtkRenderWindowGetContext ()
int CreateColorAttachment (unsigned int width, unsigned int height)
int CreateDepthAttachment (unsigned int width, unsigned int height)
int Create (unsigned int format, unsigned int width, unsigned int height)
virtual unsigned int GetHandle ()
void SetContext (vtkRenderWindow *win)
vtkRenderWindowGetContext ()
int CreateColorAttachment (unsigned int width, unsigned int height)
int CreateDepthAttachment (unsigned int width, unsigned int height)
int Create (unsigned int format, unsigned int width, unsigned int height)

Static Public Member Functions

static vtkRenderbufferNew ()
static int IsTypeOf (const char *type)
static vtkRenderbufferSafeDownCast (vtkObjectBase *o)
static bool IsSupported (vtkRenderWindow *renWin)
static vtkRenderbufferNew ()
static int IsTypeOf (const char *type)
static vtkRenderbufferSafeDownCast (vtkObjectBase *o)
static bool IsSupported (vtkRenderWindow *renWin)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkRenderbuffer ()
 ~vtkRenderbuffer ()
bool LoadRequiredExtensions (vtkRenderWindow *renWin)
void Alloc ()
void Free ()
virtual vtkObjectBaseNewInstanceInternal () const
 vtkRenderbuffer ()
 ~vtkRenderbuffer ()
bool LoadRequiredExtensions (vtkRenderWindow *renWin)
void Alloc ()
void Free ()

Protected Attributes

int DepthBufferFloat

Detailed Description

Storage for FBO's.

Lightweight API to OpenGL Framebuffer Object EXT renderbuffers.

Definition at line 31 of file vtkRenderbuffer.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 35 of file vtkRenderbuffer.h.

Reimplemented from vtkObject.

Definition at line 34 of file vtkRenderbuffer.h.


Constructor & Destructor Documentation


Member Function Documentation

static vtkRenderbuffer* vtkRenderbuffer::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

static int vtkRenderbuffer::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 vtkObject.

virtual int vtkRenderbuffer::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 vtkObject.

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

Reimplemented from vtkObject.

void vtkRenderbuffer::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 vtkObject.

static bool vtkRenderbuffer::IsSupported ( vtkRenderWindow renWin) [static]

Returns if the context supports the required extensions. Extension will be loaded when the conetxt is set.

virtual unsigned int vtkRenderbuffer::GetHandle ( ) [virtual]

Get the name of the buffer for use opengl code.

Setting the context has the side affect of initializing OpenGL required extensions and allocates an OpenGL name(handle) that is released when the object is destroyed. NOTE: the reference count to the passed in object is not incremented. Contex must be set prior to other use.

Setting the context has the side affect of initializing OpenGL required extensions and allocates an OpenGL name(handle) that is released when the object is destroyed. NOTE: the reference count to the passed in object is not incremented. Contex must be set prior to other use.

int vtkRenderbuffer::CreateColorAttachment ( unsigned int  width,
unsigned int  height 
)

Sets up an RGBAF renderbufffer for use as a color attachment. Use mode to control READ or DRAW operation.

int vtkRenderbuffer::CreateDepthAttachment ( unsigned int  width,
unsigned int  height 
)

Sets up an DEPTH renderbufffer for use as a color attachment. Use mode to control READ or DRAW operation.

int vtkRenderbuffer::Create ( unsigned int  format,
unsigned int  width,
unsigned int  height 
)

Sets up an renderbufffer. Use mode to control READ or DRAW operation and format to control the internal format. (see OpenGL doc for more info)

void vtkRenderbuffer::Alloc ( ) [protected]
void vtkRenderbuffer::Free ( ) [protected]
static vtkRenderbuffer* vtkRenderbuffer::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

static int vtkRenderbuffer::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 vtkObject.

virtual int vtkRenderbuffer::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 vtkObject.

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

Reimplemented from vtkObject.

void vtkRenderbuffer::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 vtkObject.

static bool vtkRenderbuffer::IsSupported ( vtkRenderWindow renWin) [static]

Returns if the context supports the required extensions. Extension will be loaded when the conetxt is set.

virtual unsigned int vtkRenderbuffer::GetHandle ( ) [virtual]

Get the name of the buffer for use opengl code.

Setting the context has the side affect of initializing OpenGL required extensions and allocates an OpenGL name(handle) that is released when the object is destroyed. NOTE: the reference count to the passed in object is not incremented. Contex must be set prior to other use.

Setting the context has the side affect of initializing OpenGL required extensions and allocates an OpenGL name(handle) that is released when the object is destroyed. NOTE: the reference count to the passed in object is not incremented. Contex must be set prior to other use.

int vtkRenderbuffer::CreateColorAttachment ( unsigned int  width,
unsigned int  height 
)

Sets up an RGBAF renderbufffer for use as a color attachment. Use mode to control READ or DRAW operation.

int vtkRenderbuffer::CreateDepthAttachment ( unsigned int  width,
unsigned int  height 
)

Sets up an DEPTH renderbufffer for use as a color attachment. Use mode to control READ or DRAW operation.

int vtkRenderbuffer::Create ( unsigned int  format,
unsigned int  width,
unsigned int  height 
)

Sets up an renderbufffer. Use mode to control READ or DRAW operation and format to control the internal format. (see OpenGL doc for more info)

void vtkRenderbuffer::Alloc ( ) [protected]
void vtkRenderbuffer::Free ( ) [protected]

Member Data Documentation

Definition at line 91 of file vtkRenderbuffer.h.


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