Observer Class Reference

#include <ObserverInterface.h>

Inheritance diagram for Observer:

BaseComponent

List of all members.


Detailed Description

A graphical UI for observing information.

Public Member Functions

 Observer (int argc, char *argv[])
 Constructor: Create the GUI window.
 ~Observer ()
 Standard destructor.

Protected Member Functions

int Update ()
 Update call only updates internal data, this is NOT connected to the rendering mechanism.
void Render ()
void RenderUpdateIcon ()
 Draws the top left icon that shows performance.

Private Attributes

float(* CycleTimeQueue )[MAX_QUEUE_SIZE]
 Avg. cycle time.
unsigned int(* CycleTimeStamp )[2]
 Message recieved time (second, millisecond).
int * CycleTimeIndex
 The index for the circular queue for each component.
float * CycleTimeMaxValue
 Max value, for graphic scaling purposes.
float * CycleTimeMinValue
 Min value for same purpose.
int * CycleTimeCounter
float(* InputTimeQueue )[MAX_QUEUE_SIZE]
 Avg. input time.
unsigned int(* InputTimeStamp )[2]
 Message recieved time (second, millisecond).
int * InputTimeIndex
 The index for above series of information.
float InputTimeMaxValue
float InputTimeMinValue
int(* CycleCountQueue )[MAX_QUEUE_SIZE]
 Calls per second.
unsigned int(* CycleCountStamp )[2]
 Message recieved time (second, millisecond).
int CycleCountIndex
 The index for above series of information.
int MainWindow
int DepCount
char ** DepName

Static Private Attributes

static const int MAX_QUEUE_SIZE = 32
 Keyboard Handler.

Constructor & Destructor Documentation

Observer::Observer ( int  argc,
char *  argv[] 
)

Constructor: Create the GUI window.

Constructor default constructor: creates the window.

Make sure the glui component is embedded into the GL window.

Observer::~Observer (  ) 

Standard destructor.


Member Function Documentation

int Observer::Update (  )  [protected, virtual]

Update call only updates internal data, this is NOT connected to the rendering mechanism.

Implements BaseComponent.

void Observer::Render (  )  [protected]

Display function that sets up the window. Gets called by the glutDisplayFunc function in constructor.

void Observer::RenderUpdateIcon (  )  [protected]

Draws the top left icon that shows performance.


Member Data Documentation

const int Observer::MAX_QUEUE_SIZE = 32 [static, private]

Keyboard Handler.

Default queue size for performance messages

Avg. cycle time.

unsigned int(* Observer::CycleTimeStamp)[2] [private]

Message recieved time (second, millisecond).

int* Observer::CycleTimeIndex [private]

The index for the circular queue for each component.

float* Observer::CycleTimeMaxValue [private]

Max value, for graphic scaling purposes.

float* Observer::CycleTimeMinValue [private]

Min value for same purpose.

Avg. input time.

unsigned int(* Observer::InputTimeStamp)[2] [private]

Message recieved time (second, millisecond).

int* Observer::InputTimeIndex [private]

The index for above series of information.

float Observer::InputTimeMaxValue [private]

float Observer::InputTimeMinValue [private]

Calls per second.

unsigned int(* Observer::CycleCountStamp)[2] [private]

Message recieved time (second, millisecond).

The index for above series of information.

int Observer::MainWindow [private]

int Observer::DepCount [private]

char** Observer::DepName [private]


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

Generated on Sun Feb 21 00:00:10 2010 for Penn State Robotics Club: Mini Grand Challenge 2010 by  doxygen 1.5.5