sg_event Class Reference

#include <event.hpp>

Inheritance diagram for sg_event:

Inheritance graph
[legend]
Collaboration diagram for sg_event:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 45 of file event.hpp.


Public Types

enum  event_code {
  NULL_EVENT = 0, SIM_QUIT, VIEW_ROT_X_POS, VIEW_ROT_X_NEG,
  VIEW_ROT_Y_POS, VIEW_ROT_Y_NEG, VIEW_ROT_Z_POS, VIEW_ROT_Z_NEG,
  VIEW_TOGGLE_ROT_MODE, VIEW_ZOOM_IN, VIEW_ZOOM_OUT, VIEW_RESET,
  TIME_INC_SCALE, TIME_DEC_SCALE, TIME_RESET_SCALE, TIME_PAUSE,
  RENDER_TOGGLE_LABELS, RENDER_TOGGLE_COORD_SYSTEMS, NUM_EVENT_CODES
}

Public Member Functions

event_codeget_code ()
 sg_event (event_code code, short a[2])
 sg_event (event_code code, int n)
 sg_event (event_code code, void *param)
 sg_event ()

Private Attributes

union {
   short   a [2]
   int   n
   void *   param
}; 
event_code code

Member Enumeration Documentation

enum event_code

Enumerator:
NULL_EVENT 
SIM_QUIT 
VIEW_ROT_X_POS 
VIEW_ROT_X_NEG 
VIEW_ROT_Y_POS 
VIEW_ROT_Y_NEG 
VIEW_ROT_Z_POS 
VIEW_ROT_Z_NEG 
VIEW_TOGGLE_ROT_MODE 
VIEW_ZOOM_IN 
VIEW_ZOOM_OUT 
VIEW_RESET 
TIME_INC_SCALE 
TIME_DEC_SCALE 
TIME_RESET_SCALE 
TIME_PAUSE 
RENDER_TOGGLE_LABELS 
RENDER_TOGGLE_COORD_SYSTEMS 
NUM_EVENT_CODES 

Definition at line 49 of file event.hpp.


Constructor & Destructor Documentation

sg_event (  ) 

Definition at line 42 of file event.cpp.

sg_event ( event_code  code,
void *  param 
)

Definition at line 47 of file event.cpp.

sg_event ( event_code  code,
int  n 
)

Definition at line 52 of file event.cpp.

sg_event ( event_code  code,
short  a[2] 
)

Definition at line 57 of file event.cpp.


Member Function Documentation

sg_event::event_code & get_code (  ) 

Definition at line 64 of file event.cpp.

References sg_event::code.

Referenced by simulation::handle_event(), freeview::handle_event(), and event_map::handle_event().


Member Data Documentation

union { ... } [private]

short a[2]

Definition at line 83 of file event.hpp.

event_code code [private]

Definition at line 77 of file event.hpp.

Referenced by sg_event::get_code().

int n

Definition at line 82 of file event.hpp.

void* param

Definition at line 81 of file event.hpp.


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

Generated on Sat Mar 1 13:50:07 2008 for Periapsis Project by  doxygen 1.5.5