basic/geometry/IGS/IGS_Segment.cpp

Go to the documentation of this file.
00001 #include "opengl/glos.h"
00002 #include <gl/gl.h>
00003 #include "IGS_Segment.h"
00004 
00005 //=============================================================================
00006 // Constructor
00007 //
00008 // Description: Constructor
00009 //=============================================================================
00010 IGS_Segment::IGS_Segment( const Vector4& p0, const Vector4& p1 )
00011 :
00012     Segment( p0, p1 )
00013 {
00014 }
00015 
00016 //=============================================================================
00017 // Render
00018 //
00019 // Description: Renders the object
00020 //=============================================================================
00021 void IGS_Segment::Render( const IGS_Controller& controller ) const
00022 {
00023     ::glBegin( GL_LINES );
00024     ::glVertex3d( p0[ 0 ], p0[ 1 ], p0[ 2 ] );
00025     ::glVertex3d( p1[ 0 ], p1[ 1 ], p1[ 2 ] );
00026     ::glEnd();
00027 }

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