proj home

Files   Classes   Functions   Hierarchy  

triangledisplaymesh< TR > Class Template Reference

Display the triangle's edges. More...

#include <triangledisplay.h>

Inheritance diagram for triangledisplaymesh< TR >:
Collaboration diagram for triangledisplaymesh< TR >:

List of all members.

Public Member Functions

 triangledisplaymesh (gobjContainer &_gx, TR const &_tr)
 The graphics output and triangle initialized.
void draw ()
 Write the graphics as gobj objects.


Detailed Description

template<typename TR>
class triangledisplaymesh< TR >

Display the triangle's edges.

Definition at line 109 of file triangledisplay.h.


Constructor & Destructor Documentation

template<typename TR >
triangledisplaymesh< TR >::triangledisplaymesh ( gobjContainer _gx,
TR const &  _tr 
) [inline]

The graphics output and triangle initialized.

Definition at line 119 of file triangledisplay.h.

00122     : gx(_gx), tr(_tr) {}


Member Function Documentation

template<typename TR >
void triangledisplaymesh< TR >::draw (  )  [inline, virtual]

Write the graphics as gobj objects.

Implements gobj.

Definition at line 485 of file triangledisplay.h.

References gobjContainer::push().

00486 {
00487   gx.push( new gobjglColor3ub(0,0,255) );
00488 
00489   gx.push( new gobjglBegin(GL_LINES) );
00490 
00491   gx.push( new gobjglVertex3f(tr.pi[0]) );
00492   gx.push( new gobjglVertex3f(tr.pi[1]) );
00493   gx.push( new gobjglVertex3f(tr.pi[0]) );
00494   gx.push( new gobjglVertex3f(tr.pi[2]) );
00495   gx.push( new gobjglVertex3f(tr.pi[1]) );
00496   gx.push( new gobjglVertex3f(tr.pi[2]) );
00497 
00498   gx.push( new gobjglEnd() );
00499 }


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

Generated on Fri Mar 4 00:50:21 2011 for Chelton Evans Source by  doxygen 1.5.8