proj home

Files   Classes   Functions   Hierarchy  

tessD1draw01simplexindexes< TESS, PT > Class Template Reference

Display the lines with direction. The solid line is the start, the broken the end. More...

#include <tessD1disp01.h>

Inheritance diagram for tessD1draw01simplexindexes< TESS, PT >:
Collaboration diagram for tessD1draw01simplexindexes< TESS, PT >:

List of all members.

Public Member Functions

 tessD1draw01simplexindexes (TESS &tess_)
 Constructor.
void draw ()
 Draw to the global graphics stream.

Public Attributes

gobjglColor3ub col
 Change the text color.


Detailed Description

template<typename TESS, typename PT>
class tessD1draw01simplexindexes< TESS, PT >

Display the lines with direction. The solid line is the start, the broken the end.

Definition at line 127 of file tessD1disp01.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 136 of file tessD1disp01.h.

00137     : tess(tess_), col(255,0,0) {}


Member Function Documentation

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

Draw to the global graphics stream.

Reimplemented from gobjContainer.

Definition at line 281 of file tessD1disp01.h.

References tessD1draw01simplexindexes< TESS, PT >::col, gobjContainer::gobjContainer(), gobjpush, and gobjContainer::push().

00282 {
00283   gobjContainer & y = * new gobjContainer(true);
00284 
00285   vector< PT > v2;
00286   v2.resize(tess.vi.size());
00287   for (uint i=1; i<tess.vi.size(); ++i)
00288   {
00289     v2[i] = (tess.pts[ tess.vi[i].pi[0] ] + tess.pts[ tess.vi[i].pi[1] ])*0.5;
00290   }
00291 
00292   y.push( new gobjglPushAttrib(GL_CURRENT_BIT) );
00293   y.push( new gobjglPushAttrib(GL_LIGHTING_BIT) );
00294 
00295   y.push( new gobjglDisable(GL_LIGHTING) );
00296 
00297   y.push( new gobjglColor3ub(col) );
00298 
00299 
00300   pointsdisplay2D< PT > dp(y,v2);
00301 
00302   y.push( new gobjglPopAttrib() );
00303   y.push( new gobjglPopAttrib() );
00304 
00305   gobjpush(&y);
00306 }


Member Data Documentation

template<typename TESS , typename PT >
gobjglColor3ub tessD1draw01simplexindexes< TESS, PT >::col

Change the text color.

Definition at line 133 of file tessD1disp01.h.

Referenced by tessD1draw01simplexindexes< TESS, PT >::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