Panda3D
callbackObject.cxx
1 // Filename: callbackObject.cxx
2 // Created by: drose (13Mar09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "callbackObject.h"
16 
17 TypeHandle CallbackObject::_type_handle;
18 
19 
20 ////////////////////////////////////////////////////////////////////
21 // Function: CallbackObject::output
22 // Access: Published, Virtual
23 // Description:
24 ////////////////////////////////////////////////////////////////////
25 void CallbackObject::
26 output(ostream &out) const {
27  out << get_type();
28 }
29 
30 ////////////////////////////////////////////////////////////////////
31 // Function: CallbackObject::do_callback
32 // Access: Public, Virtual
33 // Description: This method called when the callback is triggered; it
34 // *replaces* the original function. To continue
35 // performing the original function, you must call
36 // cbdata->upcall() during the callback.
37 ////////////////////////////////////////////////////////////////////
40 }
This is a generic data block that is passed along to a CallbackObject when a callback is made...
Definition: callbackData.h:32
virtual void do_callback(CallbackData *cbdata)
This method called when the callback is triggered; it replaces* the original function.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85