Files Classes Functions Hierarchy
#include <tessD1disp01.h>
Public Member Functions | |
| tessD1draw01simplexindexes (TESS &tess_) | |
| Constructor. | |
| void | draw () |
| Draw to the global graphics stream. | |
Public Attributes | |
| gobjglColor3ub | col |
| Change the text color. | |
Definition at line 127 of file tessD1disp01.h.
| tessD1draw01simplexindexes< TESS, PT >::tessD1draw01simplexindexes | ( | TESS & | tess_ | ) | [inline] |
| void tessD1draw01simplexindexes< TESS, PT >::draw | ( | ) | [inline, virtual] |
Draw to the global graphics stream.
Reimplemented from gobjContainer.
Definition at line 281 of file tessD1disp01.h.
References tessD1draw01simplexindexes< TESS, PT >::col, gobjContainer::gobjContainer(), gobjpush, and gobjContainer::push().
00282 { 00283 gobjContainer & y = * new gobjContainer(true); 00284 00285 vector< PT > v2; 00286 v2.resize(tess.vi.size()); 00287 for (uint i=1; i<tess.vi.size(); ++i) 00288 { 00289 v2[i] = (tess.pts[ tess.vi[i].pi[0] ] + tess.pts[ tess.vi[i].pi[1] ])*0.5; 00290 } 00291 00292 y.push( new gobjglPushAttrib(GL_CURRENT_BIT) ); 00293 y.push( new gobjglPushAttrib(GL_LIGHTING_BIT) ); 00294 00295 y.push( new gobjglDisable(GL_LIGHTING) ); 00296 00297 y.push( new gobjglColor3ub(col) ); 00298 00299 00300 pointsdisplay2D< PT > dp(y,v2); 00301 00302 y.push( new gobjglPopAttrib() ); 00303 y.push( new gobjglPopAttrib() ); 00304 00305 gobjpush(&y); 00306 }
| gobjglColor3ub tessD1draw01simplexindexes< TESS, PT >::col |
Change the text color.
Definition at line 133 of file tessD1disp01.h.
Referenced by tessD1draw01simplexindexes< TESS, PT >::draw().
1.5.8