Panda3D
Public Member Functions | Static Public Member Functions
CallbackObject Class Reference

This is a generic object that can be assigned to a callback at various points in the rendering process. More...

#include "callbackObject.h"

Inheritance diagram for CallbackObject:
TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase CPointerCallbackObject

List of all members.

Public Member Functions

virtual void do_callback (CallbackData *cbdata)
 This method called when the callback is triggered; it replaces* the original function.
virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () const
virtual void output (ostream &out) const

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
 This function is declared non-inline to work around a compiler bug in g++ 2.96.

Detailed Description

This is a generic object that can be assigned to a callback at various points in the rendering process.

This is actually a base class for a handful of specialized callback object types. You can also subclass it yourself to make your own callback handler.

Definition at line 32 of file callbackObject.h.


Member Function Documentation

void CallbackObject::do_callback ( CallbackData cbdata) [virtual]

This method called when the callback is triggered; it replaces* the original function.

To continue performing the original function, you must call cbdata->upcall() during the callback.

Reimplemented in CPointerCallbackObject.

Definition at line 39 of file callbackObject.cxx.

Referenced by CallbackNode::cull_callback().

static void CallbackObject::init_type ( ) [inline, static]

This function is declared non-inline to work around a compiler bug in g++ 2.96.

Making it inline seems to cause problems in the optimizer.

Reimplemented from TypedReferenceCount.

Reimplemented in CPointerCallbackObject.

Definition at line 48 of file callbackObject.h.

References TypedReferenceCount::init_type().

Referenced by CPointerCallbackObject::init_type().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations