proj home

Files   Classes   Functions   Hierarchy  

triangledisplaybisectpoints< TR > Class Template Reference

Display the triangle's bisect points. More...

#include <triangledisplay.h>

Inheritance diagram for triangledisplaybisectpoints< TR >:
Collaboration diagram for triangledisplaybisectpoints< TR >:

List of all members.

Public Member Functions

 triangledisplaybisectpoints (gobjContainer &_gx, TR const &_tr)
 The graphics output and triangle initialized.
void draw ()
 Write the graphics as gobj objects.


Detailed Description

template<typename TR>
class triangledisplaybisectpoints< TR >

Display the triangle's bisect points.

Definition at line 155 of file triangledisplay.h.


Constructor & Destructor Documentation

template<typename TR >
triangledisplaybisectpoints< TR >::triangledisplaybisectpoints ( gobjContainer _gx,
TR const &  _tr 
) [inline]

The graphics output and triangle initialized.

Definition at line 165 of file triangledisplay.h.

00168     : gx(_gx), tr(_tr) {}


Member Function Documentation

template<typename TR >
void triangledisplaybisectpoints< TR >::draw (  )  [inline, virtual]

Write the graphics as gobj objects.

Implements gobj.

Definition at line 522 of file triangledisplay.h.

References gobjContainer::push(), and gobjQuadric::radius.

00523 {
00524   gobjQuadric * gd = new gobjQuadric();
00525   gd->radius=.02;
00526   gx.push( gd );
00527 
00528   typename TR::PTtype b0;
00529   tr.bisectangle(b0,0);
00530   typename TR::PTtype b1;
00531   tr.bisectangle(b1,1);
00532   typename TR::PTtype b2;
00533   tr.bisectangle(b2,2);
00534 
00535   gx.push( new gobjglColor3ub(185,185,211) );
00536   gx.push( new gobjMySphereDraw(b0,gd) );
00537   gx.push( new gobjMySphereDraw(b1,gd) );
00538   gx.push( new gobjMySphereDraw(b2,gd) );
00539 }


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:50:21 2011 for Chelton Evans Source by  doxygen 1.5.8