Panda3D
Public Member Functions | Static Public Member Functions

CallbackData Class Reference

This is a generic data block that is passed along to a CallbackObject when a callback is made. More...

#include "callbackData.h"

Inheritance diagram for CallbackData:
TypedObject MemoryBase DisplayRegionCullCallbackData DisplayRegionDrawCallbackData GeomDrawCallbackData NodeCullCallbackData

List of all members.

Public Member Functions

virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () const
virtual void output (ostream &out) const
virtual void upcall ()
 You should make this call during the callback if you want to continue the normal function that would have been done in the absence of a callback.

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 data block that is passed along to a CallbackObject when a callback is made.

It contains data specific to the particular callback type in question.

This is actually an abstract base class and contains no data. Specializations of this class will contain the actual data relevant to each callback type.

Definition at line 32 of file callbackData.h.


Member Function Documentation

static void CallbackData::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 TypedObject.

Reimplemented in DisplayRegionCullCallbackData, DisplayRegionDrawCallbackData, GeomDrawCallbackData, and NodeCullCallbackData.

Definition at line 45 of file callbackData.h.

References TypedObject::init_type().

Referenced by NodeCullCallbackData::init_type(), GeomDrawCallbackData::init_type(), DisplayRegionDrawCallbackData::init_type(), and DisplayRegionCullCallbackData::init_type().

void CallbackData::upcall ( ) [virtual]

You should make this call during the callback if you want to continue the normal function that would have been done in the absence of a callback.

Reimplemented in DisplayRegionCullCallbackData, DisplayRegionDrawCallbackData, GeomDrawCallbackData, and NodeCullCallbackData.

Definition at line 38 of file callbackData.cxx.


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