proj home

Files   Classes   Functions   Hierarchy  

triangledisplay< TR > Class Template Reference

Monolith of triangle display options. More...

#include <triangledisplay.h>

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

List of all members.

Public Member Functions

void turnon ()
 Turn all options on.
 triangledisplay (gobjContainer &_gx, TR const &_tr)
 The graphics output and triangle initialized.
void draw ()
 Write the graphics as unprocessed commands to gx.

Public Attributes

bool mesh
 Display the triangle edges.
bool midpoints
 Display the mid points.
bool bisectpoints
 Display the bisect points.
bool centroid
 Display the triangles centroid.
bool orthocenter
 Display the orthocenter.
bool circumcenter
 Display the circumcenter.
bool incenter
 Display the incenter.
bool fermatpoint
 Display the Fermat point.
bool napoleanpoint
 Display the Napolean point.
bool gergonnepoint
 Display the Gergonne point.

Protected Attributes

gobjContainergx
 Unprocessed graphics.
TR const & tr
 The triangle.


Detailed Description

template<typename TR>
class triangledisplay< TR >

Monolith of triangle display options.

The properties are displayed in a way to show how and what they are. For example the centroid will show the point and lines from the vertexes generating the point.

Set the boolean variables and when the class is drawn the graphics are written as unprocessed commands to gx.

Definition at line 22 of file triangledisplay.h.


Constructor & Destructor Documentation

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

The graphics output and triangle initialized.

Definition at line 57 of file triangledisplay.h.

00060     : gx(_gx), tr(_tr), mesh(1), midpoints(0), bisectpoints(0), centroid(0),
00061       orthocenter(0), circumcenter(0), incenter(0), 
00062       fermatpoint(0), napoleanpoint(0), gergonnepoint(0) {}


Member Function Documentation

template<typename TR>
void triangledisplay< TR >::draw (  )  [virtual]

Write the graphics as unprocessed commands to gx.

Implements gobj.

Reimplemented in triangledisplaypoints< TR >.

Referenced by triangletest::test01(), and triangletest::test03().

template<typename TR>
void triangledisplay< TR >::turnon (  ) 

Turn all options on.

Referenced by triangletest::test01(), and triangletest::test03().


Member Data Documentation

template<typename TR>
bool triangledisplay< TR >::bisectpoints

Display the bisect points.

Definition at line 36 of file triangledisplay.h.

Referenced by triangledisplay< TR >::draw(), and triangledisplay< TR >::turnon().

template<typename TR>
bool triangledisplay< TR >::centroid

Display the triangles centroid.

Definition at line 38 of file triangledisplay.h.

Referenced by triangledisplay< TR >::draw(), triangletest::test01(), triangletest::test03(), and triangledisplay< TR >::turnon().

template<typename TR>
bool triangledisplay< TR >::circumcenter

Display the circumcenter.

Definition at line 42 of file triangledisplay.h.

Referenced by triangledisplay< TR >::draw(), triangletest::test01(), triangletest::test03(), and triangledisplay< TR >::turnon().

template<typename TR>
bool triangledisplay< TR >::fermatpoint

Display the Fermat point.

Definition at line 46 of file triangledisplay.h.

Referenced by triangledisplay< TR >::draw(), triangletest::test01(), triangletest::test03(), and triangledisplay< TR >::turnon().

template<typename TR>
bool triangledisplay< TR >::gergonnepoint

Display the Gergonne point.

Definition at line 50 of file triangledisplay.h.

Referenced by triangledisplay< TR >::draw(), triangletest::test01(), triangletest::test03(), and triangledisplay< TR >::turnon().

template<typename TR>
gobjContainer& triangledisplay< TR >::gx [protected]

Unprocessed graphics.

Definition at line 26 of file triangledisplay.h.

Referenced by triangledisplay< TR >::draw().

template<typename TR>
bool triangledisplay< TR >::incenter

template<typename TR>
bool triangledisplay< TR >::mesh

template<typename TR>
bool triangledisplay< TR >::midpoints

template<typename TR>
bool triangledisplay< TR >::napoleanpoint

Display the Napolean point.

Definition at line 48 of file triangledisplay.h.

Referenced by triangledisplay< TR >::draw(), triangletest::test01(), triangletest::test03(), and triangledisplay< TR >::turnon().

template<typename TR>
bool triangledisplay< TR >::orthocenter

Display the orthocenter.

Definition at line 40 of file triangledisplay.h.

Referenced by triangledisplay< TR >::draw(), triangletest::test01(), triangletest::test03(), and triangledisplay< TR >::turnon().

template<typename TR>
TR const& triangledisplay< TR >::tr [protected]

The triangle.

Definition at line 28 of file triangledisplay.h.

Referenced by triangledisplay< TR >::draw().


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