proj home

Files   Classes   Functions   Hierarchy  

tessD2draw02points< TESS, PT > Class Template Reference

Number the points in the tessellation. More...

#include <tessD2draw02.h>

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

List of all members.

Public Member Functions

 tessD2draw02points (TESS &tess_, bool &isdrawn_)
void draw ()
 Draw to the global graphics stream.

Public Attributes

gobjglColor3ub col
 Change the text color.
boolisdrawn
 Toggle the display.


Detailed Description

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

Number the points in the tessellation.

Count from 1 onwards.

Definition at line 16 of file tessD2draw02.h.


Constructor & Destructor Documentation

template<typename TESS, typename PT>
tessD2draw02points< TESS, PT >::tessD2draw02points ( TESS &  tess_,
bool isdrawn_ 
) [inline]

Definition at line 27 of file tessD2draw02.h.

00028     : tess(tess_), col(255,255,0), isdrawn(isdrawn_) {}


Member Function Documentation

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

Draw to the global graphics stream.

Reimplemented from gobjContainer.

Definition at line 321 of file tessD2draw02.h.

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

00322 {
00323   gobjContainer & y = * new gobjContainer(true);
00324 
00325   y.push( new gobjglPushAttrib(GL_CURRENT_BIT) );
00326   y.push( new gobjglPushAttrib(GL_LIGHTING_BIT) );
00327 
00328   y.push( new gobjglDisable(GL_LIGHTING) );
00329 
00330   y.push( new gobjglColor3ub(col) );
00331     
00332   pointsdisplay2D< PT > dp(y,tess.pts);
00333 
00334   y.push( new gobjglPopAttrib() );
00335   y.push( new gobjglPopAttrib() );
00336 
00337   gobjSwitch<bool&> * s = 
00338     new gobjSwitch<bool&>(&y,isdrawn);
00339 
00340   gobjpush(s);
00341 }


Member Data Documentation

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

Change the text color.

Definition at line 22 of file tessD2draw02.h.

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

template<typename TESS, typename PT>
bool& tessD2draw02points< TESS, PT >::isdrawn

Toggle the display.

Definition at line 25 of file tessD2draw02.h.

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