Files Classes Functions Hierarchy
#include <halfspaceD3display.h>
Public Member Functions | |
| halfspaceD3displaywinding (HS &halfspace_, GLdouble factor_) | |
| void | draw () |
| Draw just the half space geometry. | |
Public Attributes | |
| HS | halfspace |
| GLdouble | factor |
Definition at line 45 of file halfspaceD3display.h.
| halfspaceD3displaywinding< HS >::halfspaceD3displaywinding | ( | HS & | halfspace_, | |
| GLdouble | factor_ | |||
| ) | [inline] |
| 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 }
| GLdouble halfspaceD3displaywinding< HS >::factor |
Definition at line 50 of file halfspaceD3display.h.
Referenced by halfspaceD3displaywinding< HS >::draw().
| HS halfspaceD3displaywinding< HS >::halfspace |
Definition at line 49 of file halfspaceD3display.h.
Referenced by halfspaceD3displaywinding< HS >::draw().
1.5.8