proj home

Files   Classes   Functions   Hierarchy  

tessD2draw02mesh< TESS, PT, INDX > Class Template Reference

Draw the triangle edges in one color. More...

#include <tessD2draw02.h>

Inheritance diagram for tessD2draw02mesh< TESS, PT, INDX >:
Collaboration diagram for tessD2draw02mesh< TESS, PT, INDX >:

List of all members.

Public Member Functions

 tessD2draw02mesh (TESS &tess_)
 Blue mesh.
void draw ()
 Draw to the global graphics stream.

Public Attributes

gobjglColor3f col
 Change the mesh color.


Detailed Description

template<typename TESS, typename PT, typename INDX>
class tessD2draw02mesh< TESS, PT, INDX >

Draw the triangle edges in one color.

Definition at line 38 of file tessD2draw02.h.


Constructor & Destructor Documentation

template<typename TESS, typename PT, typename INDX>
tessD2draw02mesh< TESS, PT, INDX >::tessD2draw02mesh ( TESS &  tess_  )  [inline]

Blue mesh.

Definition at line 47 of file tessD2draw02.h.

00048     : tess(tess_), col(0.0,0.0,1.0) {}


Member Function Documentation

template<typename TESS , typename PT , typename INDX >
void tessD2draw02mesh< TESS, PT, INDX >::draw (  )  [inline, virtual]

Draw to the global graphics stream.

Implements gobj.

Definition at line 299 of file tessD2draw02.h.

References tessD2draw02mesh< TESS, PT, INDX >::col, and gobjglColor3f::draw().

00300 {
00301   glPushAttrib(GL_CURRENT_BIT);
00302   glPushAttrib(GL_LIGHTING_BIT);
00303 
00304   glDisable(GL_LIGHTING);
00305 
00306   col.draw();
00307 
00308   glBegin(GL_LINES);
00309 
00310   INDX const imax = tess.vi.size();
00311   for (INDX i=1; i<imax; ++i)
00312     drawtriangle(tess.vi[i],tess.pts);
00313 
00314   glEnd();
00315 
00316   glPopAttrib();
00317   glPopAttrib();
00318 }


Member Data Documentation

template<typename TESS, typename PT, typename INDX>
gobjglColor3f tessD2draw02mesh< TESS, PT, INDX >::col

Change the mesh color.

Definition at line 44 of file tessD2draw02.h.

Referenced by tessD2draw02mesh< TESS, PT, INDX >::draw().


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

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