proj home

Files   Classes   Functions   Hierarchy  

tetrahedrontriangledisplay< TET, TD > Class Template Reference

Display test. More...

#include <tetrahedrondisplay.h>

Inheritance diagram for tetrahedrontriangledisplay< TET, TD >:
Collaboration diagram for tetrahedrontriangledisplay< TET, TD >:

List of all members.

Public Types

typedef triangle3D< typename
TET::PTtype, typename
TET::PDtype > 
triType

Public Member Functions

 tetrahedrontriangledisplay (gobjContainer &_gx, TET const &_tr)
 The graphics output and tetrahedron.
 ~tetrahedrontriangledisplay ()
 Memory cleanup.
void draw ()
 Write the graphics as gobj objects.

Public Attributes

TD * tdi [4]
 The client can configure the triangle displays.
triType ti [4]
 Each display has an associated triangle.


Detailed Description

template<typename TET, typename TD>
class tetrahedrontriangledisplay< TET, TD >

Display test.

Definition at line 131 of file tetrahedrondisplay.h.


Member Typedef Documentation

template<typename TET, typename TD>
typedef triangle3D< typename TET::PTtype, typename TET::PDtype > tetrahedrontriangledisplay< TET, TD >::triType

Definition at line 143 of file tetrahedrondisplay.h.


Constructor & Destructor Documentation

template<typename TET, typename TD>
tetrahedrontriangledisplay< TET, TD >::tetrahedrontriangledisplay ( gobjContainer _gx,
TET const &  _tr 
) [inline]

The graphics output and tetrahedron.

Definition at line 157 of file tetrahedrondisplay.h.

References tetrahedrontriangledisplay< TET, TD >::tdi, and tetrahedrontriangledisplay< TET, TD >::ti.

00160     : gx(_gx), tr(_tr) 
00161   {
00162     for (uint i=0; i<4; ++i)
00163     {
00164       tr.trianglei(ti[i],i);
00165       tdi[i] = new TD(gx,ti[i]);
00166     }
00167   }

template<typename TET, typename TD>
tetrahedrontriangledisplay< TET, TD >::~tetrahedrontriangledisplay (  )  [inline]

Memory cleanup.

Definition at line 170 of file tetrahedrondisplay.h.

References tetrahedrontriangledisplay< TET, TD >::tdi.

00171   {
00172     for (uint i=0; i<4; ++i)
00173       delete tdi[i];
00174   }


Member Function Documentation

template<typename TET , typename TD >
void tetrahedrontriangledisplay< TET, TD >::draw (  )  [inline, virtual]

Write the graphics as gobj objects.

Implements gobj.

Definition at line 403 of file tetrahedrondisplay.h.

References tetrahedrontriangledisplay< TET, TD >::tdi.

Referenced by tetrahedrondisplay< TET >::draw().

00404 {
00405   for (uint i=0; i<4; ++i)
00406   {
00407     assert(tdi[i]!=0);
00408     tdi[i]->draw();
00409   }
00410 }


Member Data Documentation

template<typename TET, typename TD>
TD* tetrahedrontriangledisplay< TET, TD >::tdi[4]

template<typename TET, typename TD>
triType tetrahedrontriangledisplay< TET, TD >::ti[4]

Each display has an associated triangle.

Definition at line 148 of file tetrahedrondisplay.h.

Referenced by tetrahedrontriangledisplay< TET, TD >::tetrahedrontriangledisplay().


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

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