proj home

Files   Classes   Functions   Hierarchy  

halfspaceD3display< HS > Class Template Reference

#include <halfspaceD3display.h>

Inheritance diagram for halfspaceD3display< HS >:
Collaboration diagram for halfspaceD3display< HS >:

List of all members.

Public Member Functions

 halfspaceD3display (HS &halfspace_)
void draw ()
 Draw just the half space geometry.

Public Attributes

HS halfspace


Detailed Description

template<typename HS>
class halfspaceD3display< HS >

Definition at line 9 of file halfspaceD3display.h.


Constructor & Destructor Documentation

template<typename HS >
halfspaceD3display< HS >::halfspaceD3display ( HS &  halfspace_  )  [inline]

Definition at line 15 of file halfspaceD3display.h.

00016     : halfspace(halfspace_) {}


Member Function Documentation

template<typename HS >
void halfspaceD3display< HS >::draw (  )  [inline, virtual]

Draw just the half space geometry.

Implements gobj.

Definition at line 19 of file halfspaceD3display.h.

References halfspaceD3display< HS >::halfspace.

00020   {
00021     
00022     glBegin(GL_TRIANGLES);
00023     glVertex3T<GLdouble>()(halfspace.p0);
00024     glVertex3T<GLdouble>()(halfspace.p1);
00025     glVertex3T<GLdouble>()(halfspace.p2);
00026     glEnd();
00027     glPushMatrix();
00028     glTranslateT<GLdouble>()( (halfspace.p0+halfspace.p1+halfspace.p2)/3.0 );
00029     glBegin(GL_LINES);
00030     glVertex3f(0.0,0.0,0.0);
00031     glVertex3f
00032     (
00033       halfspace.normal.x,
00034       halfspace.normal.y,
00035       halfspace.normal.z
00036     );
00037     glEnd();
00038 
00039     glPopMatrix();
00040   }


Member Data Documentation

template<typename HS >
HS halfspaceD3display< HS >::halfspace

Definition at line 13 of file halfspaceD3display.h.

Referenced by halfspaceD3display< HS >::draw().


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

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