proj home

Files   Classes   Functions   Hierarchy  

buttonpanel01test Class Reference

#include <buttonpanel01test.h>

Collaboration diagram for buttonpanel01test:

List of all members.

Public Member Functions

 buttonpanel01test (int argc, char **argv)
 ~buttonpanel01test ()

Static Public Member Functions

static void keyboard01 (unsigned char key, int x, int y)
 Default keyboard handler - ESC to quit.
static void display01 ()
 Displays the gobj::global with double buffering.

Public Attributes

gobjContainer xGraphics
 Global graphics stream.
zprzz
zprmousezm
buttonpanel01bp

Static Public Attributes

static string doc []
 Brief description of each test.


Detailed Description

Definition at line 10 of file buttonpanel01test.h.


Constructor & Destructor Documentation

buttonpanel01test::buttonpanel01test ( int  argc,
char **  argv 
)

Definition at line 53 of file buttonpanel01test.cpp.

References bp, display01(), gobjpush, keyboard01(), gobjContainer::set(), zpr::update(), xGraphics, zm, and zz.

00054   : xGraphics(true) 
00055 {
00056   glutInit(&argc,argv);
00057   glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
00058   glutInitWindowSize(800,600);
00059   glutCreateWindow("");
00060   glutDisplayFunc(buttonpanel01test::display01);
00061   glutKeyboardFunc(buttonpanel01test::keyboard01);
00062 
00063   OpenGLinitialisation();
00064 
00065   glEnable(GL_DEPTH_TEST);
00066   glEnable(GL_CULL_FACE);
00067   glEnable(GL_NORMALIZE);
00068 
00069   xGraphics.set();
00070 
00071   gobjpush(new myaxes(1.0));
00072 
00073   commandline cmd(argc,argv);
00074 
00075   zz = new zpr();
00076   zz->update();
00077 
00078   zm = new zprmouse(*zz);
00079   bp = new buttonpanel01(zm);
00080 
00081   gobjpush(bp);
00082 
00083   glutMainLoop();
00084 }

buttonpanel01test::~buttonpanel01test (  ) 

Definition at line 42 of file buttonpanel01test.cpp.

References bp, zm, and zz.

00043 {
00044   delete zm;
00045   zm=0;
00046   delete zz;
00047   zz=0;
00048   delete bp;
00049   bp=0;
00050 }


Member Function Documentation

void buttonpanel01test::display01 (  )  [static]

Displays the gobj::global with double buffering.

Definition at line 29 of file buttonpanel01test.cpp.

References gobjContainer::draw(), glerrordisplay(), and gobj::global.

Referenced by buttonpanel01test().

00030 { 
00031   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
00032 
00033   assert(gobj::global);
00034 
00035   gobj::global->draw();
00036 
00037   glerrordisplay();
00038   
00039   glutSwapBuffers();
00040 }

void buttonpanel01test::keyboard01 ( unsigned char  key,
int  x,
int  y 
) [static]

Default keyboard handler - ESC to quit.

Definition at line 13 of file buttonpanel01test.cpp.

Referenced by buttonpanel01test().

00018 {
00019   switch (key)
00020   {
00021     case 27: exit(0); break;
00022   }
00023 
00024   glutPostRedisplay();
00025 }


Member Data Documentation

Definition at line 29 of file buttonpanel01test.h.

Referenced by buttonpanel01test(), and ~buttonpanel01test().

string buttonpanel01test::doc [static]

Initial value:

 
{
  "",
  "- buttonpanel01test Prob: buttons and coord transforms."
}
Brief description of each test.

Definition at line 15 of file buttonpanel01test.h.

Referenced by main().

Global graphics stream.

Definition at line 18 of file buttonpanel01test.h.

Referenced by buttonpanel01test().

Definition at line 27 of file buttonpanel01test.h.

Referenced by buttonpanel01test(), and ~buttonpanel01test().

Definition at line 25 of file buttonpanel01test.h.

Referenced by buttonpanel01test(), and ~buttonpanel01test().


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

Generated on Fri Mar 4 00:49:51 2011 for Chelton Evans Source by  doxygen 1.5.8