proj home

Files   Classes   Functions   Hierarchy  

halfspaceD3displaywinding< HS > Class Template Reference

#include <halfspaceD3display.h>

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

List of all members.

Public Member Functions

 halfspaceD3displaywinding (HS &halfspace_, GLdouble factor_)
void draw ()
 Draw just the half space geometry.

Public Attributes

HS halfspace
GLdouble factor


Detailed Description

template<typename HS>
class halfspaceD3displaywinding< HS >

Definition at line 45 of file halfspaceD3display.h.


Constructor & Destructor Documentation

template<typename HS >
halfspaceD3displaywinding< HS >::halfspaceD3displaywinding ( HS &  halfspace_,
GLdouble  factor_ 
) [inline]

Definition at line 52 of file halfspaceD3display.h.

00053     : halfspace(halfspace_), factor(factor_) {}


Member Function Documentation

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

Draw just the half space geometry.

Implements gobj.

Definition at line 56 of file halfspaceD3display.h.

References halfspaceD3displaywinding< HS >::factor, and halfspaceD3displaywinding< HS >::halfspace.

00057   {
00058     glBegin(GL_TRIANGLES);
00059     glColor4T<GLdouble>()(1.0,0.0,0.0,factor);
00060     glVertex3T<GLdouble>()(halfspace.p0);
00061     glColor4T<GLdouble>()(0.0,1.0,0.0,factor);
00062     glVertex3T<GLdouble>()(halfspace.p1);
00063     glColor4T<GLdouble>()(0.0,0.0,1.0,factor);
00064     glVertex3T<GLdouble>()(halfspace.p2);
00065     glEnd();
00066     glPushMatrix();
00067     glTranslateT<GLdouble>()( (halfspace.p0+halfspace.p1+halfspace.p2)/3.0 );
00068     glBegin(GL_LINES);
00069     glColor4T<GLdouble>()(1.0,1.0,1.0,factor);
00070     glVertex4f(0.0,0.0,0.0,factor);
00071     glColor4T<GLdouble>()(0.0,0.0,0.0,factor);
00072     glVertex4f
00073     (
00074       halfspace.normal.x,
00075       halfspace.normal.y,
00076       halfspace.normal.z,
00077       factor
00078     );
00079     glEnd();
00080 
00081     glPopMatrix();
00082   }


Member Data Documentation

template<typename HS >
GLdouble halfspaceD3displaywinding< HS >::factor

Definition at line 50 of file halfspaceD3display.h.

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

template<typename HS >
HS halfspaceD3displaywinding< HS >::halfspace

Definition at line 49 of file halfspaceD3display.h.

Referenced by halfspaceD3displaywinding< 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