collisiondetectors/CD_Bool.cpp

Go to the documentation of this file.
00001 //## begin module%36FB13B6005A.cm preserve=no
00002 //        %X% %Q% %Z% %W%
00003 //## end module%36FB13B6005A.cm
00004 
00005 //## begin module%36FB13B6005A.cp preserve=no
00006 //## end module%36FB13B6005A.cp
00007 
00008 //## Module: CD_Bool%36FB13B6005A; Pseudo Package body
00009 //## Source file: C:\project\mpk\code\CollisionDetectors\CD_Bool.cpp
00010 
00011 //## begin module%36FB13B6005A.additionalIncludes preserve=no
00012 //## end module%36FB13B6005A.additionalIncludes
00013 
00014 //## begin module%36FB13B6005A.includes preserve=yes
00015 #include <assert.h>
00016 //## end module%36FB13B6005A.includes
00017 
00018 // CD_Bool
00019 #include "CollisionDetectors\CD_Bool.h"
00020 // Universe
00021 #include "Universe\Universe.h"
00022 //## begin module%36FB13B6005A.additionalDeclarations preserve=yes
00023 //## end module%36FB13B6005A.additionalDeclarations
00024 
00025 
00026 // Class CD_Bool 
00027 
00028 CD_Bool::CD_Bool (const Universe& universe)
00029   //## begin CD_Bool::CD_Bool%922561220.hasinit preserve=no
00030   //## end CD_Bool::CD_Bool%922561220.hasinit
00031   //## begin CD_Bool::CD_Bool%922561220.initialization preserve=yes
00032   :  
00033         CollisionDetectorBase( universe ),
00034         CD_InterfaceToCollisionQueries( universe ),
00035         m_NumberOfTimesCalled( 0 )
00036   //## end CD_Bool::CD_Bool%922561220.initialization
00037 {
00038   //## begin CD_Bool::CD_Bool%922561220.body preserve=yes
00039   //## end CD_Bool::CD_Bool%922561220.body
00040 }
00041 
00042 CD_Bool::CD_Bool (const CD_Bool& right)
00043   //## begin CD_Bool::CD_Bool%928344300.hasinit preserve=no
00044   //## end CD_Bool::CD_Bool%928344300.hasinit
00045   //## begin CD_Bool::CD_Bool%928344300.initialization preserve=yes
00046   :
00047         CollisionDetectorBase( right ),
00048         CD_InterfaceToCollisionQueries( right )
00049   //## end CD_Bool::CD_Bool%928344300.initialization
00050 {
00051   //## begin CD_Bool::CD_Bool%928344300.body preserve=yes
00052   //## end CD_Bool::CD_Bool%928344300.body
00053 }
00054 
00055 
00056 CD_Bool::~CD_Bool()
00057 {
00058   //## begin CD_Bool::~CD_Bool%.body preserve=yes
00059   //## end CD_Bool::~CD_Bool%.body
00060 }
00061 
00062 
00063 // Additional Declarations
00064   //## begin CD_Bool%36FB13B6005A.declarations preserve=yes
00065 //=============================================================================
00066 // GetNumberofTimesCalled
00067 //
00068 // comment: returns profiline statistics on the number of calls made to the
00069 //                      collisiondetector
00070 //=============================================================================
00071 int CD_Bool::GetNumberOfTimesCalledPoint() const
00072 {
00073         return this->m_NumberOfTimesCalled;
00074 }
00075 
00076 //=============================================================================
00077 // IncrementCallCount
00078 //
00079 // comment: increments the number of times the collision detector has been called
00080 //=============================================================================
00081 void CD_Bool::IncrementCallCount()
00082 {
00083         this->m_NumberOfTimesCalled++;
00084 }
00085 
00086 //=============================================================================
00087 // IncrementCallCount
00088 //
00089 // comment: increments the number of times the collision detector has been called
00090 //=============================================================================
00091 void CD_Bool::ResetStats()
00092 {
00093         this->m_NumberOfTimesCalled = 0;
00094 }
00095   //## end CD_Bool%36FB13B6005A.declarations
00096 
00097 //## begin module%36FB13B6005A.epilog preserve=yes
00098 //## end module%36FB13B6005A.epilog

Generated on Sat Apr 1 21:30:35 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO