basic/geometry/MPK_Cylinder.cpp

Go to the documentation of this file.
00001 //## begin module%3856BC5F0301.cm preserve=no
00002 //        %X% %Q% %Z% %W%
00003 //## end module%3856BC5F0301.cm
00004 
00005 //## begin module%3856BC5F0301.cp preserve=no
00006 //## end module%3856BC5F0301.cp
00007 
00008 //## Module: MPK_Cylinder%3856BC5F0301; Pseudo Package body
00009 //## Source file: C:\project\mpk\code\geometry\MPK_Cylinder.cpp
00010 
00011 //## begin module%3856BC5F0301.additionalIncludes preserve=no
00012 //## end module%3856BC5F0301.additionalIncludes
00013 
00014 //## begin module%3856BC5F0301.includes preserve=yes
00015 #include <assert.h>
00016 //## end module%3856BC5F0301.includes
00017 
00018 // MPK_Cylinder
00019 #include "geometry\MPK_Cylinder.h"
00020 //## begin module%3856BC5F0301.additionalDeclarations preserve=yes
00021 //## end module%3856BC5F0301.additionalDeclarations
00022 
00023 
00024 // Class MPK_Cylinder 
00025 
00026 
00027 
00028 MPK_Cylinder::MPK_Cylinder (FrameManager* frameManager)
00029   //## begin MPK_Cylinder::MPK_Cylinder%945198450.hasinit preserve=no
00030   //## end MPK_Cylinder::MPK_Cylinder%945198450.hasinit
00031   //## begin MPK_Cylinder::MPK_Cylinder%945198450.initialization preserve=yes
00032   : ObjectBase( frameManager ),
00033   radius( -1 ),
00034   height( -1 )
00035   //## end MPK_Cylinder::MPK_Cylinder%945198450.initialization
00036 {
00037   //## begin MPK_Cylinder::MPK_Cylinder%945198450.body preserve=yes
00038   //## end MPK_Cylinder::MPK_Cylinder%945198450.body
00039 }
00040 
00041 MPK_Cylinder::MPK_Cylinder (const MPK_Cylinder& right)
00042   //## begin MPK_Cylinder::MPK_Cylinder%945198451.hasinit preserve=no
00043   //## end MPK_Cylinder::MPK_Cylinder%945198451.hasinit
00044   //## begin MPK_Cylinder::MPK_Cylinder%945198451.initialization preserve=yes
00045   :     ObjectBase( right ),
00046   radius( right.radius ),
00047   height( right.height ) 
00048   //## end MPK_Cylinder::MPK_Cylinder%945198451.initialization
00049 {
00050   //## begin MPK_Cylinder::MPK_Cylinder%945198451.body preserve=yes
00051   //## end MPK_Cylinder::MPK_Cylinder%945198451.body
00052 }
00053 
00054 
00055 MPK_Cylinder::~MPK_Cylinder()
00056 {
00057   //## begin MPK_Cylinder::~MPK_Cylinder%.body preserve=yes
00058   //## end MPK_Cylinder::~MPK_Cylinder%.body
00059 }
00060 
00061 
00062 
00063 //## Other Operations (implementation)
00064 bool MPK_Cylinder::IsInterfering (const Entity* entity) const
00065 {
00066   //## begin MPK_Cylinder::IsInterfering%945198443.body preserve=yes
00067         //assert( false ) ;
00068         return false ;
00069   //## end MPK_Cylinder::IsInterfering%945198443.body
00070 }
00071 
00072 bool MPK_Cylinder::CanCheckInterference (const Entity* entity) const
00073 {
00074   //## begin MPK_Cylinder::CanCheckInterference%945198444.body preserve=yes
00075 //      assert( false ) ;
00076         return false ;
00077   //## end MPK_Cylinder::CanCheckInterference%945198444.body
00078 }
00079 
00080 void MPK_Cylinder::Serialize (ostream& os) const
00081 {
00082   //## begin MPK_Cylinder::Serialize%945198445.body preserve=yes
00083         assert( false ) ;
00084   //## end MPK_Cylinder::Serialize%945198445.body
00085 }
00086 
00087 void MPK_Cylinder::Deserialize (IfstreamWithComments& is)
00088 {
00089   //## begin MPK_Cylinder::Deserialize%945198447.body preserve=yes
00090         assert( false ) ;
00091   //## end MPK_Cylinder::Deserialize%945198447.body
00092 }
00093 
00094 void MPK_Cylinder::SetRadius (double radius)
00095 {
00096   //## begin MPK_Cylinder::SetRadius%945198454.body preserve=yes
00097         this->radius = radius ;
00098   //## end MPK_Cylinder::SetRadius%945198454.body
00099 }
00100 
00101 void MPK_Cylinder::SetHeight (double height)
00102 {
00103   //## begin MPK_Cylinder::SetHeight%945198455.body preserve=yes
00104         this->height = height ;
00105   //## end MPK_Cylinder::SetHeight%945198455.body
00106 }
00107 
00108 double MPK_Cylinder::Height () const
00109 {
00110   //## begin MPK_Cylinder::Height%950220879.body preserve=yes
00111         return height ;
00112   //## end MPK_Cylinder::Height%950220879.body
00113 }
00114 
00115 double MPK_Cylinder::Radius () const
00116 {
00117   //## begin MPK_Cylinder::Radius%950220880.body preserve=yes
00118         return radius ;
00119   //## end MPK_Cylinder::Radius%950220880.body
00120 }
00121 
00122 // Additional Declarations
00123   //## begin MPK_Cylinder%3856BC5F0301.declarations preserve=yes
00124   //## end MPK_Cylinder%3856BC5F0301.declarations
00125 
00126 //## begin module%3856BC5F0301.epilog preserve=yes
00127 //## end module%3856BC5F0301.epilog

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