Panda3D
|
00001 // Filename: collisionGeom.cxx 00002 // Created by: drose (01Mar06) 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 "collisionGeom.h" 00016 00017 PStatCollector CollisionGeom::_volume_pcollector("Collision Volumes:CollisionGeom"); 00018 PStatCollector CollisionGeom::_test_pcollector("Collision Tests:CollisionGeom"); 00019 TypeHandle CollisionGeom::_type_handle; 00020 00021 //////////////////////////////////////////////////////////////////// 00022 // Function: CollisionGeom::make_copy 00023 // Access: Public, Virtual 00024 // Description: 00025 //////////////////////////////////////////////////////////////////// 00026 CollisionSolid *CollisionGeom:: 00027 make_copy() { 00028 return new CollisionGeom(*this); 00029 } 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Function: CollisionGeom::get_volume_pcollector 00033 // Access: Public, Virtual 00034 // Description: Returns a PStatCollector that is used to count the 00035 // number of bounding volume tests made against a solid 00036 // of this type in a given frame. 00037 //////////////////////////////////////////////////////////////////// 00038 PStatCollector &CollisionGeom:: 00039 get_volume_pcollector() { 00040 return _volume_pcollector; 00041 } 00042 00043 //////////////////////////////////////////////////////////////////// 00044 // Function: CollisionGeom::get_test_pcollector 00045 // Access: Public, Virtual 00046 // Description: Returns a PStatCollector that is used to count the 00047 // number of intersection tests made against a solid 00048 // of this type in a given frame. 00049 //////////////////////////////////////////////////////////////////// 00050 PStatCollector &CollisionGeom:: 00051 get_test_pcollector() { 00052 return _test_pcollector; 00053 } 00054 00055 //////////////////////////////////////////////////////////////////// 00056 // Function: CollisionGeom::output 00057 // Access: Public, Virtual 00058 // Description: 00059 //////////////////////////////////////////////////////////////////// 00060 void CollisionGeom:: 00061 output(ostream &out) const { 00062 out << "cgeom"; 00063 }