proj home

Files   Classes   Functions   Hierarchy  

d2simplexOutline Class Reference

Draw the triangle's edges as lines. More...

#include <d2simplexintersection.h>

Inheritance diagram for d2simplexOutline:
Collaboration diagram for d2simplexOutline:

List of all members.

Public Member Functions

 d2simplexOutline (d2simplex &_s)
void draw ()
 Draw the object.


Detailed Description

Draw the triangle's edges as lines.

Definition at line 9 of file d2simplexintersection.h.


Constructor & Destructor Documentation

d2simplexOutline::d2simplexOutline ( d2simplex _s  ) 

Definition at line 47 of file d2simplexintersection.cpp.

00048   : s(_s)
00049 {
00050 }


Member Function Documentation

void d2simplexOutline::draw (  )  [virtual]

Draw the object.

Implements gobj.

Definition at line 52 of file d2simplexintersection.cpp.

References d2simplex::v, point2< T >::x, and point2< T >::y.

Referenced by d2simplexintersection::draw().

00053 {
00054   glBegin(GL_LINES);
00055 
00056   glVertex3f(s.v[0].x,s.v[0].y,0.0);
00057   glVertex3f(s.v[1].x,s.v[1].y,0.0);
00058   glVertex3f(s.v[1].x,s.v[1].y,0.0);
00059   glVertex3f(s.v[2].x,s.v[2].y,0.0);
00060   glVertex3f(s.v[0].x,s.v[0].y,0.0);
00061   glVertex3f(s.v[2].x,s.v[2].y,0.0);
00062 
00063   glEnd();
00064 }


The documentation for this class was generated from the following files:

Generated on Fri Mar 4 00:49:53 2011 for Chelton Evans Source by  doxygen 1.5.8