00001 // Filename: collisionTraverser.I 00002 // Created by: drose (16Mar02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 #ifdef DO_COLLISION_RECORDING 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Function: CollisionTraverser::has_recorder 00024 // Access: Public 00025 // Description: Returns true if the CollisionTraverser has a 00026 // CollisionRecorder object currently assigned, false 00027 // otherwise. 00028 //////////////////////////////////////////////////////////////////// 00029 INLINE bool CollisionTraverser:: 00030 has_recorder() const { 00031 return _recorder != (CollisionRecorder *)NULL; 00032 } 00033 00034 //////////////////////////////////////////////////////////////////// 00035 // Function: CollisionTraverser::get_recorder 00036 // Access: Public 00037 // Description: Returns the CollisionRecorder currently assigned, or 00038 // NULL if no recorder is assigned. 00039 //////////////////////////////////////////////////////////////////// 00040 INLINE CollisionRecorder *CollisionTraverser:: 00041 get_recorder() const { 00042 return _recorder; 00043 } 00044 00045 //////////////////////////////////////////////////////////////////// 00046 // Function: CollisionTraverser::clear_recorder 00047 // Access: Public 00048 // Description: Removes the CollisionRecorder from the traverser and 00049 // restores normal low-overhead operation. 00050 //////////////////////////////////////////////////////////////////// 00051 INLINE void CollisionTraverser:: 00052 clear_recorder() { 00053 set_recorder((CollisionRecorder *)NULL); 00054 } 00055 00056 #endif // DO_COLLISION_RECORDING