|
virtual int | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class. More...
|
|
vtkFrameBufferObject2 * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses. More...
|
|
void | Bind (unsigned int mode) |
| Bind FBO to FRAMEBUFFER, DRAW_FRAMEBUFFER or READ_FRAMEBUFFER The current binding is not saved, nor restored. More...
|
|
void | UnBind (unsigned int mode) |
| Bind saved FBO (see SaveCurrentBindings) for DRAW or READ (see glBindFramebuffer) If no bindings were saved bind to default FBO. More...
|
|
void | SaveCurrentBindings () |
| Store the current framebuffer bindings. More...
|
|
void | AddColorAttachment (unsigned int mode, unsigned int attId, vtkTextureObject *tex) |
| Directly assign/remove a texture to color attachments. More...
|
|
void | AddTexColorAttachment (unsigned int mode, unsigned int attId, unsigned int handle) |
|
void | RemoveTexColorAttachments (unsigned int mode, unsigned int num) |
|
void | RemoveTexColorAttachment (unsigned int mode, unsigned int attId) |
|
void | AddColorAttachment (unsigned int mode, unsigned int attId, vtkRenderbuffer *tex) |
| Directly assign/remove a renderbuffer to color attachments. More...
|
|
void | AddRenColorAttachment (unsigned int mode, unsigned int attId, unsigned int handle) |
|
void | RemoveRenColorAttachments (unsigned int mode, unsigned int num) |
|
void | RemoveRenColorAttachment (unsigned int mode, unsigned int attId) |
|
int | CheckFrameBufferStatus (unsigned int mode) |
| Validate the current FBO configuration (attachments, formats, etc) prints detected errors to vtkErrorMacro. More...
|
|
vtkPixelBufferObject * | DownloadColor1 (int extent[4], int vtkType, int channel) |
| Download data from the read color attachment of the currently bound FBO into the retruned PBO. More...
|
|
vtkPixelBufferObject * | DownloadColor3 (int extent[4], int vtkType) |
|
vtkPixelBufferObject * | DownloadColor4 (int extent[4], int vtkType) |
|
vtkPixelBufferObject * | DownloadDepth (int extent[4], int vtkType) |
| Download data from the depth attachment of the currently bound FBO. More...
|
|
vtkPixelBufferObject * | Download (int extent[4], int vtkType, int nComps, int oglType, int oglFormat) |
| Download data from the read buffer of the current FBO. More...
|
|
|
void | SetContext (vtkRenderWindow *context) |
| Get/Set the context. More...
|
|
vtkRenderWindow * | GetContext () |
| Get/Set the context. More...
|
|
|
void | SaveCurrentBuffers () |
| Store the current draw and read buffers. More...
|
|
void | RestorePreviousBuffers (unsigned int mode) |
| Store the current draw and read buffers. More...
|
|
|
void | AddDepthAttachment (unsigned int mode, vtkTextureObject *tex) |
| Directly assign/remove a texture/renderbuffer to depth attachments. More...
|
|
void | AddTexDepthAttachment (unsigned int mode, unsigned int handle) |
| Directly assign/remove a texture/renderbuffer to depth attachments. More...
|
|
void | RemoveTexDepthAttachment (unsigned int mode) |
| Directly assign/remove a texture/renderbuffer to depth attachments. More...
|
|
|
void | AddDepthAttachment (unsigned int mode, vtkRenderbuffer *tex) |
| Directly assign/remove a renderbuffer to depth attachments. More...
|
|
void | AddRenDepthAttachment (unsigned int mode, unsigned int handle) |
| Directly assign/remove a renderbuffer to depth attachments. More...
|
|
void | RemoveRenDepthAttachment (unsigned int mode) |
| Directly assign/remove a renderbuffer to depth attachments. More...
|
|
|
void | ActivateDrawBuffer (unsigned int id) |
| Select a single specific draw or read buffer (zero based) More...
|
|
void | ActivateReadBuffer (unsigned int id) |
| Select a single specific draw or read buffer (zero based) More...
|
|
void | DeactivateReadBuffer () |
| Select a single specific draw or read buffer (zero based) More...
|
|
|
void | ActivateDrawBuffers (unsigned int n) |
| Select n consecutive write attachments. More...
|
|
void | ActivateDrawBuffers (unsigned int *ids, int n) |
| Select n consecutive write attachments. More...
|
|
void | DeactivateDrawBuffers () |
| Select n consecutive write attachments. More...
|
|
| vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
|
virtual void | DebugOn () |
| Turn debugging output on. More...
|
|
virtual void | DebugOff () |
| Turn debugging output off. More...
|
|
bool | GetDebug () |
| Get the value of the debug flag. More...
|
|
void | SetDebug (bool debugFlag) |
| Set the value of the debug flag. More...
|
|
virtual void | Modified () |
| Update the modification time for this object. More...
|
|
virtual vtkMTimeType | GetMTime () |
| Return this object's modified time. More...
|
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
int | HasObserver (unsigned long event) |
|
int | HasObserver (const char *event) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
vtkCommand * | GetCommand (unsigned long tag) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
void | RemoveObserver (vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
void | RemoveObservers (const char *event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
int | HasObserver (unsigned long event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
int | HasObserver (const char *event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
|
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
|
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| Allow user to set the AbortFlagOn() with the return value of the callback method. More...
|
|
int | InvokeEvent (unsigned long event, void *callData) |
| This method invokes an event and return whether the event was aborted or not. More...
|
|
int | InvokeEvent (const char *event, void *callData) |
| This method invokes an event and return whether the event was aborted or not. More...
|
|
const char * | GetClassName () const |
| Return the class name as a string. More...
|
|
virtual void | Delete () |
| Delete a VTK object. More...
|
|
virtual void | FastDelete () |
| Delete a reference to this object. More...
|
|
void | InitializeObjectBase () |
|
void | Print (ostream &os) |
| Print an object to an ostream. More...
|
|
virtual void | Register (vtkObjectBase *o) |
| Increase the reference count (mark as used by another object). More...
|
|
virtual void | UnRegister (vtkObjectBase *o) |
| Decrease the reference count (release by another object). More...
|
|
int | GetReferenceCount () |
| Return the current reference count of this object. More...
|
|
void | SetReferenceCount (int) |
| Sets the reference count. More...
|
|
void | PrintRevisions (ostream &) |
| Legacy. More...
|
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| Methods invoked by print to print information about the object including superclasses. More...
|
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| Methods invoked by print to print information about the object including superclasses. More...
|
|
|
static vtkFrameBufferObject2 * | New () |
|
static int | IsTypeOf (const char *type) |
|
static vtkFrameBufferObject2 * | SafeDownCast (vtkObjectBase *o) |
|
static bool | IsSupported (vtkRenderWindow *renWin) |
| Returns if the context supports the required extensions. More...
|
|
static void | InitializeViewport (int width, int height) |
| Set up ortho viewport with scissor, lighting, blend, and depth disabled. More...
|
|
static bool | GetFrameBufferStatus (unsigned int mode, const char *&desc) |
| Validate the current FBO configuration (attachments, formats, etc) return false if the FBO is incomplete. More...
|
|
static int | Blit (int srcExt[4], int destExt[4], unsigned int bits, unsigned int mapping) |
| Copy from the currently bound READ FBO to the currently bound DRAW FBO. More...
|
|
static void | Download (int extent[4], int vtkType, int nComps, int oglType, int oglFormat, vtkPixelBufferObject *pbo) |
|
static vtkObject * | New () |
| Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
|
|
static void | BreakOnError () |
| This method is called when vtkErrorMacro executes. More...
|
|
static void | SetGlobalWarningDisplay (int val) |
| This is a global flag that controls whether any debug, warning or error messages are displayed. More...
|
|
static void | GlobalWarningDisplayOn () |
| This is a global flag that controls whether any debug, warning or error messages are displayed. More...
|
|
static void | GlobalWarningDisplayOff () |
| This is a global flag that controls whether any debug, warning or error messages are displayed. More...
|
|
static int | GetGlobalWarningDisplay () |
| This is a global flag that controls whether any debug, warning or error messages are displayed. More...
|
|
static vtkTypeBool | IsTypeOf (const char *name) |
| Return 1 if this class type is the same type of (or a subclass of) the named class. More...
|
|
static vtkObjectBase * | New () |
| Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
|
|
Interface to OpenGL framebuffer object.
A light and efficient interface to an OpenGL Frame Buffer Object. Use is very simillalry to directly calling OpenGL, but as vtkObject it may safely stored, shared, or passed around. It supports FBO Blit and transfer to Pixel Buffer Object.
Typical use case:
fbo->
Bind(vtkgl::FRAMEBUFFER_EXT);
...
fbo->UnBind(vtkgl::FRAMEBUFFER_EXT);
- See also
- vtkRenderbuffer, vtkPixelBufferObject
Definition at line 86 of file vtkFrameBufferObject2.h.