00001 //## begin module%3739DFC701FA.cm preserve=no 00002 // %X% %Q% %Z% %W% 00003 //## end module%3739DFC701FA.cm 00004 00005 //## begin module%3739DFC701FA.cp preserve=no 00006 //## end module%3739DFC701FA.cp 00007 00008 //## Module: GL_Segment%3739DFC701FA; Pseudo Package body 00009 //## Source file: C:\project\mpk\code\OpenGL\GL_Segment.cpp 00010 00011 //## begin module%3739DFC701FA.additionalIncludes preserve=no 00012 //## end module%3739DFC701FA.additionalIncludes 00013 00014 //## begin module%3739DFC701FA.includes preserve=yes 00015 #include "glos.h" 00016 #include <gl\gl.h> 00017 //## end module%3739DFC701FA.includes 00018 00019 // GL_Segment 00020 #include "OpenGL\GL_Segment.h" 00021 //## begin module%3739DFC701FA.additionalDeclarations preserve=yes 00022 //## end module%3739DFC701FA.additionalDeclarations 00023 00024 00025 // Class GL_Segment 00026 00027 GL_Segment::GL_Segment (const GL_Segment& right) 00028 //## begin GL_Segment::GL_Segment%926539293.hasinit preserve=no 00029 //## end GL_Segment::GL_Segment%926539293.hasinit 00030 //## begin GL_Segment::GL_Segment%926539293.initialization preserve=yes 00031 : Segment( right ) 00032 //## end GL_Segment::GL_Segment%926539293.initialization 00033 { 00034 //## begin GL_Segment::GL_Segment%926539293.body preserve=yes 00035 //## end GL_Segment::GL_Segment%926539293.body 00036 } 00037 00038 GL_Segment::GL_Segment (FrameManager* frameManager) 00039 //## begin GL_Segment::GL_Segment%926539294.hasinit preserve=no 00040 //## end GL_Segment::GL_Segment%926539294.hasinit 00041 //## begin GL_Segment::GL_Segment%926539294.initialization preserve=yes 00042 :Segment( frameManager ) 00043 //## end GL_Segment::GL_Segment%926539294.initialization 00044 { 00045 //## begin GL_Segment::GL_Segment%926539294.body preserve=yes 00046 //## end GL_Segment::GL_Segment%926539294.body 00047 } 00048 00049 00050 GL_Segment::~GL_Segment() 00051 { 00052 //## begin GL_Segment::~GL_Segment%.body preserve=yes 00053 //## end GL_Segment::~GL_Segment%.body 00054 } 00055 00056 00057 00058 //## Other Operations (implementation) 00059 Entity* GL_Segment::Clone () const 00060 { 00061 //## begin GL_Segment::Clone%926539295.body preserve=yes 00062 return new GL_Segment( *this ) ; 00063 //## end GL_Segment::Clone%926539295.body 00064 } 00065 00066 bool GL_Segment::DrawExplicit () const 00067 { 00068 //## begin GL_Segment::DrawExplicit%950474933.body preserve=yes 00069 glBegin( GL_LINES ) ; 00070 glVertex3d( startPos[ 0 ], startPos[ 1 ], startPos[ 2 ] ) ; 00071 glVertex3d( endPos[ 0 ], endPos[ 1 ], endPos[ 2 ] ) ; 00072 glEnd() ; 00073 return true ; 00074 //## end GL_Segment::DrawExplicit%950474933.body 00075 } 00076 00077 // Additional Declarations 00078 //## begin GL_Segment%3739DFC701FA.declarations preserve=yes 00079 //## end GL_Segment%3739DFC701FA.declarations 00080 00081 //## begin module%3739DFC701FA.epilog preserve=yes 00082 //## end module%3739DFC701FA.epilog 00083 00084 00085 // Detached code regions: 00086 // WARNING: this code will be lost if code is regenerated. 00087 #if 0 00088 //## begin GL_Segment::GLDraw%926539286.body preserve=no 00089 glBegin( GL_LINES ) ; 00090 glVertex3d( startPos[ 0 ], startPos[ 1 ], startPos[ 2 ] ) ; 00091 glVertex3d( endPos[ 0 ], endPos[ 1 ], endPos[ 2 ] ) ; 00092 glEnd() ; 00093 //## end GL_Segment::GLDraw%926539286.body 00094 00095 #endif