proj home

Files   Classes   Functions   Hierarchy  

tessD2disp02.h

Go to the documentation of this file.
00001 #ifndef TESSD2DISP02_H
00002 #define TESSD2DISP02_H
00003 
00004 #include <gobj.h>
00005 #include <graphicsImmediateDeferred.h>
00006 #include <graphmisc.h>
00007 #include <tessD2draw02.h>
00008 
00019 template< typename TESS, typename PT, typename INDX > 
00020 class tessD2disp02 : public graphicsImmediateDeferred
00021 {
00022 public:
00023 
00025   vector<gobjSwitch<>*> gswitches;
00026 
00028   TESS & tess;
00029 
00031   tessD2disp02(TESS & tess_);
00032 
00034   tessD2draw02points<TESS,PT>* displaypoints(uint & index);
00037   tessD2draw02mesh<TESS,PT,INDX>* displaymesh(uint & index);
00039   tessD2draw02simplexindex<TESS,PT,INDX>* displaysimplexindex
00040     (uint & index);
00043   tessD2draw02multicolor<TESS,PT,INDX>* displaymulticolor
00044     (uint & index);
00047   tessD2draw02circles<TESS,PT,INDX>* displaycircles
00048     (uint & index);
00049 };
00050 
00051 
00052 //---------------------------------------------------------
00053 // Implementation
00054 
00055 template< typename TESS, typename PT, typename INDX > 
00056 tessD2draw02mesh<TESS,PT,INDX>* 
00057   tessD2disp02<TESS,PT,INDX>::displaymesh(uint & index)
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 }
00070 
00071 template< typename TESS, typename PT, typename INDX > 
00072 tessD2draw02points<TESS,PT>* tessD2disp02<TESS,PT,INDX>::
00073   displaypoints(uint & index)
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 }
00087 
00088 template< typename TESS, typename PT, typename INDX > 
00089 tessD2draw02simplexindex<TESS,PT,INDX>* 
00090   tessD2disp02<TESS,PT,INDX>::
00091   displaysimplexindex(uint & index)
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 }
00106 
00107 template< typename TESS, typename PT, typename INDX > 
00108 tessD2draw02multicolor<TESS,PT,INDX>* 
00109   tessD2disp02<TESS,PT,INDX>::
00110   displaymulticolor(uint & index)
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 }
00125 
00126 template< typename TESS, typename PT, typename INDX > 
00127 tessD2draw02circles<TESS,PT,INDX>* 
00128   tessD2disp02<TESS,PT,INDX>::
00129   displaycircles(uint & index)
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 }
00144 
00145 template< typename TESS, typename PT, typename INDX > 
00146 tessD2disp02<TESS,PT,INDX>::tessD2disp02(TESS & tess_)
00147   : tess(tess_)
00148 {
00149 }
00150 
00151 
00152 
00153 #endif
00154 
00155 

Generated on Fri Mar 4 00:49:26 2011 for Chelton Evans Source by  doxygen 1.5.8