basic/geometry/MPK_Box.cpp

Go to the documentation of this file.
00001 //## begin module%387272ED006D.cm preserve=no
00002 //        %X% %Q% %Z% %W%
00003 //## end module%387272ED006D.cm
00004 
00005 //## begin module%387272ED006D.cp preserve=no
00006 //## end module%387272ED006D.cp
00007 
00008 //## Module: MPK_Box%387272ED006D; Pseudo Package body
00009 //## Source file: E:\mpk\code\geometry\MPK_Box.cpp
00010 
00011 //## begin module%387272ED006D.additionalIncludes preserve=no
00012 //## end module%387272ED006D.additionalIncludes
00013 
00014 //## begin module%387272ED006D.includes preserve=yes
00015 #include <assert.h>
00016 //## end module%387272ED006D.includes
00017 
00018 // MPK_Box
00019 #include "geometry\MPK_Box.h"
00020 //## begin module%387272ED006D.additionalDeclarations preserve=yes
00021 //## end module%387272ED006D.additionalDeclarations
00022 
00023 
00024 // Class MPK_Box 
00025 
00026 
00027 
00028 
00029 MPK_Box::MPK_Box (const MPK_Box& right)
00030   //## begin MPK_Box::MPK_Box%947632889.hasinit preserve=no
00031       : 
00032                 length( right.length ), 
00033                 width(  right.width ), 
00034                 height( right.height )
00035   //## end MPK_Box::MPK_Box%947632889.hasinit
00036   //## begin MPK_Box::MPK_Box%947632889.initialization preserve=yes
00037   ,
00038         ObjectBase( right ) 
00039   //## end MPK_Box::MPK_Box%947632889.initialization
00040 {
00041   //## begin MPK_Box::MPK_Box%947632889.body preserve=yes
00042   //## end MPK_Box::MPK_Box%947632889.body
00043 }
00044 
00045 MPK_Box::MPK_Box (FrameManager* frameManager)
00046   //## begin MPK_Box::MPK_Box%947632890.hasinit preserve=no
00047       : length(0), width(0), height(0)
00048   //## end MPK_Box::MPK_Box%947632890.hasinit
00049   //## begin MPK_Box::MPK_Box%947632890.initialization preserve=yes
00050   ,
00051   ObjectBase( frameManager )
00052   //## end MPK_Box::MPK_Box%947632890.initialization
00053 {
00054   //## begin MPK_Box::MPK_Box%947632890.body preserve=yes
00055   //## end MPK_Box::MPK_Box%947632890.body
00056 }
00057 
00058 
00059 MPK_Box::~MPK_Box()
00060 {
00061   //## begin MPK_Box::~MPK_Box%.body preserve=yes
00062   //## end MPK_Box::~MPK_Box%.body
00063 }
00064 
00065 
00066 
00067 //## Other Operations (implementation)
00068 void MPK_Box::SetWidth (const double value)
00069 {
00070   //## begin MPK_Box::SetWidth%947024873.body preserve=yes
00071         this->width = value ;
00072   //## end MPK_Box::SetWidth%947024873.body
00073 }
00074 
00075 void MPK_Box::SetLength (const double value)
00076 {
00077   //## begin MPK_Box::SetLength%947024874.body preserve=yes
00078         this->length = value ;
00079   //## end MPK_Box::SetLength%947024874.body
00080 }
00081 
00082 void MPK_Box::SetHeight (const double value)
00083 {
00084   //## begin MPK_Box::SetHeight%947024875.body preserve=yes
00085         this->height = value ;
00086   //## end MPK_Box::SetHeight%947024875.body
00087 }
00088 
00089 double MPK_Box::Width () const
00090 {
00091         return width ;
00092 }
00093 double MPK_Box::Length () const
00094 {
00095         return length ;
00096 }
00097 double MPK_Box::Height () const
00098 {
00099         return height ;
00100 }
00101 
00102 bool MPK_Box::IsInterfering (const Entity* entity) const
00103 {
00104   //## begin MPK_Box::IsInterfering%947024880.body preserve=yes
00105         //IMPROVE: add the assert back in
00106 //      assert( false ) ;
00107         return false ;
00108   //## end MPK_Box::IsInterfering%947024880.body
00109 }
00110 
00111 bool MPK_Box::CanCheckInterference (const Entity* entity) const
00112 {
00113   //## begin MPK_Box::CanCheckInterference%947024881.body preserve=yes
00114         //IMPROVE: add the assert back in
00115 //      assert( false ) ;
00116         return false ;
00117   //## end MPK_Box::CanCheckInterference%947024881.body
00118 }
00119 
00120 void MPK_Box::Serialize (ostream& os) const
00121 {
00122   //## begin MPK_Box::Serialize%947024882.body preserve=yes
00123         assert( false ) ;
00124   //## end MPK_Box::Serialize%947024882.body
00125 }
00126 
00127 void MPK_Box::Deserialize (IfstreamWithComments& is)
00128 {
00129   //## begin MPK_Box::Deserialize%947024883.body preserve=yes
00130         assert( false ) ;
00131   //## end MPK_Box::Deserialize%947024883.body
00132 }
00133 
00134 // Additional Declarations
00135   //## begin MPK_Box%387272ED006D.declarations preserve=yes
00136   //## end MPK_Box%387272ED006D.declarations
00137 
00138 //## begin module%387272ED006D.epilog preserve=yes
00139 //## end module%387272ED006D.epilog

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