proj home

Files   Classes   Functions   Hierarchy  

writepointsobj Class Reference

#include <d3tessdraw.h>

Inheritance diagram for writepointsobj:
Collaboration diagram for writepointsobj:

List of all members.

Public Member Functions

 writepointsobj (d3tess const &tess_)
void draw ()
 Draw the object.
 writepointsobj (d4tess const &_tess)
void draw () const

Public Attributes

gobjglColor3ub col


Detailed Description

Definition at line 75 of file d3tessdraw.h.


Constructor & Destructor Documentation

writepointsobj::writepointsobj ( d3tess const &  tess_  )  [inline]

Definition at line 82 of file d3tessdraw.h.

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

writepointsobj::writepointsobj ( d4tess const &  _tess  )  [inline]

Definition at line 56 of file d4tessdraw.h.

00057     : tess(_tess), col(255,255,0) {}


Member Function Documentation

void writepointsobj::draw (  )  const

Definition at line 74 of file d4tessdraw.cpp.

References col, gobj::global, and d3tess::pt.

00075 {
00076   gobjContainer & x = * gobjContainer::global;
00077 
00078   x.push_back( new gobjglPushAttrib(GL_CURRENT_BIT) );
00079   x.push_back( new gobjglPushAttrib(GL_LIGHTING_BIT) );
00080 
00081   x.push_back( new gobjglDisable(GL_LIGHTING) );
00082 
00083   x.push_back( new gobjglColor3ub(col) );
00084     
00085   displaypoints<pt4> dp(x,tess.pt);
00086 
00087   x.push_back( new gobjglPopAttrib() );
00088   x.push_back( new gobjglPopAttrib() );
00089 }

void writepointsobj::draw (  )  [virtual]

Draw the object.

Implements gobj.

Definition at line 46 of file d3tessdraw.cpp.

References col, gobj::global, d3tess::pt, and gobjContainer::push().

00047 {
00048   gobjContainer & x = * gobjContainer::global;
00049 
00050   x.push( new gobjglPushAttrib(GL_CURRENT_BIT) );
00051   x.push( new gobjglPushAttrib(GL_LIGHTING_BIT) );
00052 
00053   x.push( new gobjglDisable(GL_LIGHTING) );
00054 
00055   x.push( new gobjglColor3ub(col) );
00056     
00057   //displaypoints<pt3> dp(x,tess.pt);
00058   pointsdisplay2D<pt3> dp(x,tess.pt);
00059 
00060   x.push( new gobjglPopAttrib() );
00061   x.push( new gobjglPopAttrib() );
00062 }


Member Data Documentation

Definition at line 80 of file d3tessdraw.h.

Referenced by draw().


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

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