Panda3D

callbackObject.cxx

00001 // Filename: callbackObject.cxx
00002 // Created by:  drose (13Mar09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "callbackObject.h"
00016 
00017 TypeHandle CallbackObject::_type_handle;
00018 
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: CallbackObject::output
00022 //       Access: Published, Virtual
00023 //  Description:
00024 ////////////////////////////////////////////////////////////////////
00025 void CallbackObject::
00026 output(ostream &out) const {
00027   out << get_type();
00028 }
00029 
00030 ////////////////////////////////////////////////////////////////////
00031 //     Function: CallbackObject::do_callback
00032 //       Access: Public, Virtual
00033 //  Description: This method called when the callback is triggered; it
00034 //               *replaces* the original function.  To continue
00035 //               performing the original function, you must call
00036 //               cbdata->upcall() during the callback.
00037 ////////////////////////////////////////////////////////////////////
00038 void CallbackObject::
00039 do_callback(CallbackData *) {
00040 }
 All Classes Functions Variables Enumerations