Files Classes Functions Hierarchy
#include <triangledisplay.h>
Public Member Functions | |
| triangledisplayorthocenter (gobjContainer &_gx, TR const &_tr) | |
| The graphics output and triangle initialized. | |
| void | draw () |
| Write the graphics as gobj objects. | |
Definition at line 204 of file triangledisplay.h.
| triangledisplayorthocenter< TR >::triangledisplayorthocenter | ( | gobjContainer & | _gx, | |
| TR const & | _tr | |||
| ) | [inline] |
| void triangledisplayorthocenter< TR >::draw | ( | ) | [inline, virtual] |
Write the graphics as gobj objects.
Implements gobj.
Definition at line 573 of file triangledisplay.h.
References gobjContainer::push(), and gobjQuadric::radius.
00574 { 00575 typename TR::PTtype vc; 00576 tr.orthocenter(vc); 00577 00578 gx.push( new gobjglColor3ub(184,134,11) ); 00579 typename TR::PTtype v0; 00580 tr.orthocenteri(v0,0); 00581 typename TR::PTtype v1; 00582 tr.orthocenteri(v1,1); 00583 typename TR::PTtype v2; 00584 tr.orthocenteri(v2,2); 00585 00586 gobjQuadric * gd = new gobjQuadric(); 00587 gd->radius=.02; 00588 gx.push( gd ); 00589 00590 gx.push( new gobjMySphereDraw(v0,gd) ); 00591 gx.push( new gobjMySphereDraw(v1,gd) ); 00592 gx.push( new gobjMySphereDraw(v2,gd) ); 00593 00594 gx.push( new gobjglColor3ub(255,215,0) ); 00595 gx.push( new gobjglBegin(GL_LINES) ); 00596 gx.push( new gobjglVertex3f(tr.pi[0]) ); 00597 gx.push( new gobjglVertex3f(v0) ); 00598 gx.push( new gobjglVertex3f(tr.pi[1]) ); 00599 gx.push( new gobjglVertex3f(v1) ); 00600 gx.push( new gobjglVertex3f(tr.pi[2]) ); 00601 gx.push( new gobjglVertex3f(v2) ); 00602 gx.push( new gobjglEnd() ); 00603 00604 //gx.push_back( new gobjglColor3ub(124,184,14) ); 00605 gx.push( new gobjMySphereDraw(vc,gd) ); 00606 }
1.5.8