proj home

Files   Classes   Functions   Hierarchy  

tessD2disp02< TESS, PT, INDX > Class Template Reference

Display a 2D tessellation. More...

#include <tessD2disp02.h>

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

List of all members.

Public Member Functions

 tessD2disp02 (TESS &tess_)
 Constructor.
tessD2draw02points< TESS, PT > * displaypoints (uint &index)
 In deferrred mode display the tessellations points.
tessD2draw02mesh< TESS, PT,
INDX > * 
displaymesh (uint &index)
 In Immediate mode display the triangle mesh in a uniform color.
tessD2draw02simplexindex< TESS,
PT, INDX > * 
displaysimplexindex (uint &index)
 In deferred mode print the simplexes index.
tessD2draw02multicolor< TESS,
PT, INDX > * 
displaymulticolor (uint &index)
 In deferred mode display the triangles in different colors.
tessD2draw02circles< TESS, PT,
INDX > * 
displaycircles (uint &index)
 In deferred mode display a circle throught each triangles vertexes.

Public Attributes

vector< gobjSwitch<> * > gswitches
 The functions create gobjSwitch's which are indexed.
TESS & tess
 The tessellation being drawn.


Detailed Description

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

Display a 2D tessellation.

Call the functions to write the graphics to either the deferred or immediate graphics containers.

The client can extend drawing the tessellation in new ways to draw the tessellation by adding a class which knows how to draw itself either to the deffered or immediate container.

Definition at line 20 of file tessD2disp02.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 146 of file tessD2disp02.h.

00147   : tess(tess_)
00148 {
00149 }


Member Function Documentation

template<typename TESS , typename PT , typename INDX >
tessD2draw02circles< TESS, PT, INDX > * tessD2disp02< TESS, PT, INDX >::displaycircles ( uint index  )  [inline]

In deferred mode display a circle throught each triangles vertexes.

Definition at line 129 of file tessD2disp02.h.

References graphicsImmediateDeferred::graphicsDeferred, tessD2disp02< TESS, PT, INDX >::gswitches, gobjSwitch< BOOL >::isdrawn, gobjContainer::push(), tessD2disp02< TESS, PT, INDX >::tess, and gobjSwitch< BOOL >::x.

Referenced by simplexD2tessapp01::test02(), and delaunaysimpleD2test::test02().

00130 {
00131   gobjSwitch<> * s = new gobjSwitch<>(0,true,false);
00132 
00133   tessD2draw02circles<TESS,PT,INDX>* p = 
00134     new tessD2draw02circles<TESS,PT,INDX>
00135       (tess,s->isdrawn);
00136   s->x = p;
00137   graphicsDeferred.push(s);
00138 
00139   index = gswitches.size();
00140   gswitches.push_back(s);
00141 
00142   return p;
00143 }

template<typename TESS , typename PT , typename INDX >
tessD2draw02mesh< TESS, PT, INDX > * tessD2disp02< TESS, PT, INDX >::displaymesh ( uint index  )  [inline]

In Immediate mode display the triangle mesh in a uniform color.

Definition at line 57 of file tessD2disp02.h.

References graphicsImmediateDeferred::graphicsImmediate, tessD2disp02< TESS, PT, INDX >::gswitches, gobjContainer::push(), and tessD2disp02< TESS, PT, INDX >::tess.

Referenced by simplexD2tessapp01::test02(), and delaunaysimpleD2test::test02().

00058 {
00059   tessD2draw02mesh<TESS,PT,INDX>* p = 
00060     new tessD2draw02mesh<TESS,PT,INDX>(tess);
00061 
00062   gobjSwitch<> * s = new gobjSwitch<>(p,true);
00063   graphicsImmediate.push(s);
00064 
00065   index = gswitches.size();
00066   gswitches.push_back(s);
00067 
00068   return p;
00069 }

template<typename TESS , typename PT , typename INDX >
tessD2draw02multicolor< TESS, PT, INDX > * tessD2disp02< TESS, PT, INDX >::displaymulticolor ( uint index  )  [inline]

In deferred mode display the triangles in different colors.

Definition at line 110 of file tessD2disp02.h.

References graphicsImmediateDeferred::graphicsDeferred, tessD2disp02< TESS, PT, INDX >::gswitches, gobjSwitch< BOOL >::isdrawn, gobjContainer::push(), tessD2disp02< TESS, PT, INDX >::tess, and gobjSwitch< BOOL >::x.

Referenced by simplexD2tessapp01::test02(), and delaunaysimpleD2test::test02().

00111 {
00112   gobjSwitch<> * s = new gobjSwitch<>(0,true,false);
00113 
00114   tessD2draw02multicolor<TESS,PT,INDX>* p = 
00115     new tessD2draw02multicolor<TESS,PT,INDX>
00116       (tess,s->isdrawn);
00117   s->x = p;
00118   graphicsDeferred.push(s);
00119 
00120   index = gswitches.size();
00121   gswitches.push_back(s);
00122 
00123   return p;
00124 }

template<typename TESS , typename PT , typename INDX >
tessD2draw02points< TESS, PT > * tessD2disp02< TESS, PT, INDX >::displaypoints ( uint index  )  [inline]

In deferrred mode display the tessellations points.

Definition at line 73 of file tessD2disp02.h.

References graphicsImmediateDeferred::graphicsDeferred, tessD2disp02< TESS, PT, INDX >::gswitches, gobjSwitch< BOOL >::isdrawn, gobjContainer::push(), tessD2disp02< TESS, PT, INDX >::tess, and gobjSwitch< BOOL >::x.

Referenced by simplexD2tessapp01::test02(), and delaunaysimpleD2test::test02().

00074 {
00075   gobjSwitch<> * s = new gobjSwitch<>(0,true,false);
00076 
00077   tessD2draw02points<TESS,PT>* p = 
00078     new tessD2draw02points<TESS,PT>(tess,s->isdrawn);
00079   s->x = p;
00080   graphicsDeferred.push(s);
00081 
00082   index = gswitches.size();
00083   gswitches.push_back(s);
00084 
00085   return p;
00086 }

template<typename TESS , typename PT , typename INDX >
tessD2draw02simplexindex< TESS, PT, INDX > * tessD2disp02< TESS, PT, INDX >::displaysimplexindex ( uint index  )  [inline]

In deferred mode print the simplexes index.

Definition at line 91 of file tessD2disp02.h.

References graphicsImmediateDeferred::graphicsDeferred, tessD2disp02< TESS, PT, INDX >::gswitches, gobjSwitch< BOOL >::isdrawn, gobjContainer::push(), tessD2disp02< TESS, PT, INDX >::tess, and gobjSwitch< BOOL >::x.

Referenced by simplexD2tessapp01::test02(), and delaunaysimpleD2test::test02().

00092 {
00093   gobjSwitch<> * s = new gobjSwitch<>(0,true,false);
00094 
00095   tessD2draw02simplexindex<TESS,PT,INDX>* p = 
00096     new tessD2draw02simplexindex<TESS,PT,INDX>
00097       (tess,s->isdrawn);
00098   s->x = p;
00099   graphicsDeferred.push(s);
00100 
00101   index = gswitches.size();
00102   gswitches.push_back(s);
00103 
00104   return p;
00105 }


Member Data Documentation

template<typename TESS, typename PT, typename INDX>
vector<gobjSwitch<>*> tessD2disp02< TESS, PT, INDX >::gswitches

template<typename TESS, typename PT, typename INDX>
TESS& tessD2disp02< TESS, PT, INDX >::tess


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