Files Classes Functions Hierarchy
#include <triangledisplay.h>
Public Member Functions | |
| triangledisplaymidpoints (gobjContainer &_gx, TR const &_tr) | |
| The graphics output and triangle initialized. | |
| void | draw () |
| Write the graphics as gobj objects. | |
Definition at line 132 of file triangledisplay.h.
| triangledisplaymidpoints< TR >::triangledisplaymidpoints | ( | gobjContainer & | _gx, | |
| TR const & | _tr | |||
| ) | [inline] |
| void triangledisplaymidpoints< TR >::draw | ( | ) | [inline, virtual] |
Write the graphics as gobj objects.
Implements gobj.
Definition at line 502 of file triangledisplay.h.
References gobjContainer::push(), and gobjQuadric::radius.
00503 { 00504 gobjQuadric * gd = new gobjQuadric(); 00505 gd->radius=.02; 00506 gx.push( gd ); 00507 00508 typename TR::PTtype m0; 00509 tr.midpoint(m0,0); 00510 typename TR::PTtype m1; 00511 tr.midpoint(m1,1); 00512 typename TR::PTtype m2; 00513 tr.midpoint(m2,2); 00514 00515 gx.push( new gobjglColor3ub(255,0,255) ); 00516 gx.push( new gobjMySphereDraw(m0,gd) ); 00517 gx.push( new gobjMySphereDraw(m1,gd) ); 00518 gx.push( new gobjMySphereDraw(m2,gd) ); 00519 }
1.5.8