proj home

Files   Classes   Functions   Hierarchy  

tessD1draw01points< TESS, PT > Class Template Reference

Display the points. More...

#include <tessD1disp01.h>

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

List of all members.

Public Member Functions

 tessD1draw01points (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 tessD1draw01points< TESS, PT >

Display the points.

Definition at line 59 of file tessD1disp01.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 68 of file tessD1disp01.h.

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


Member Function Documentation

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

Draw to the global graphics stream.

Reimplemented from gobjContainer.

Definition at line 154 of file tessD1disp01.h.

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

00155 {
00156   gobjContainer & y = * new gobjContainer(true);
00157 
00158   y.push( new gobjglPushAttrib(GL_CURRENT_BIT) );
00159   y.push( new gobjglPushAttrib(GL_LIGHTING_BIT) );
00160 
00161   y.push( new gobjglDisable(GL_LIGHTING) );
00162 
00163   y.push( new gobjglColor3ub(col) );
00164     
00165   pointsdisplay2D< PT > dp(y,tess.pts);
00166 
00167   y.push( new gobjglPopAttrib() );
00168   y.push( new gobjglPopAttrib() );
00169 
00170   gobjpush(&y);
00171 }


Member Data Documentation

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

Change the text color.

Definition at line 65 of file tessD1disp01.h.

Referenced by tessD1draw01points< 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