Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

SpikeStreamApplication Class Reference

#include <SpikeStreamApplication.h>

List of all members.

Public Member Functions

bool renderInProgress ()
 SpikeStreamApplication (int argc, char **argv)
void startRender ()
void stopRender ()
 ~SpikeStreamApplication ()

Protected Member Functions

bool x11EventFilter (XEvent *)

Private Member Functions

SpikeStreamApplication operator= (const SpikeStreamApplication &)
 SpikeStreamApplication (const SpikeStreamApplication &)

Private Attributes

unsigned int keyEventTime
unsigned int renderDuration_ms
bool rendering
unsigned int startRenderKeyEventTime
timeval startRenderTime
timeval stopRenderTime


Detailed Description

Inherits from QApplication so that it can filter out XEvents during slow renders. Is the QApplication for the application.

Definition at line 38 of file SpikeStreamApplication.h.


Constructor & Destructor Documentation

SpikeStreamApplication::SpikeStreamApplication int  argc,
char **  argv
 

Constructor.

Definition at line 34 of file SpikeStreamApplication.cpp.

References renderDuration_ms, rendering, and startRenderKeyEventTime.

SpikeStreamApplication::~SpikeStreamApplication  ) 
 

Destructor.

Definition at line 42 of file SpikeStreamApplication.cpp.

SpikeStreamApplication::SpikeStreamApplication const SpikeStreamApplication  )  [private]
 

Declare copy constructor private so it cannot be used inadvertently.


Member Function Documentation

SpikeStreamApplication SpikeStreamApplication::operator= const SpikeStreamApplication  )  [private]
 

Declare assignment private so it cannot be used inadvertently.

bool SpikeStreamApplication::renderInProgress  ) 
 

Returns true if the render is currently in progress.

Definition at line 54 of file SpikeStreamApplication.cpp.

References rendering.

void SpikeStreamApplication::startRender  ) 
 

Called when the network viewer starts the render and records the time at this point and the time of the last key event.

Definition at line 61 of file SpikeStreamApplication.cpp.

References keyEventTime, rendering, startRenderKeyEventTime, and startRenderTime.

Referenced by NetworkViewer::paintGL().

void SpikeStreamApplication::stopRender  ) 
 

Records the time at which the render completes and calculates the duration of the render.

Definition at line 70 of file SpikeStreamApplication.cpp.

References renderDuration_ms, rendering, startRenderTime, and stopRenderTime.

Referenced by NetworkViewer::paintGL().

bool SpikeStreamApplication::x11EventFilter XEvent *  xEvent  )  [protected]
 

Method inherited from QApplication that is called whenever an X11 XEvent is received by the application. Returning true filters the event, returning false passes the event on to the application. This method filters events that are received whilst the NetworkViewer is rendering. Since display lists are used, have no control during the render so have to look for events that were generated during the time window of the render. This method is specific to Linux.

Definition at line 88 of file SpikeStreamApplication.cpp.

References keyEventTime, renderDuration_ms, and startRenderKeyEventTime.


Member Data Documentation

unsigned int SpikeStreamApplication::keyEventTime [private]
 

Records the time of each key press event.

Definition at line 63 of file SpikeStreamApplication.h.

Referenced by startRender(), and x11EventFilter().

unsigned int SpikeStreamApplication::renderDuration_ms [private]
 

Records the duration of each render.

Definition at line 57 of file SpikeStreamApplication.h.

Referenced by SpikeStreamApplication(), stopRender(), and x11EventFilter().

bool SpikeStreamApplication::rendering [private]
 

Records when rendering is in progress.

Definition at line 72 of file SpikeStreamApplication.h.

Referenced by renderInProgress(), SpikeStreamApplication(), startRender(), and stopRender().

unsigned int SpikeStreamApplication::startRenderKeyEventTime [private]
 

Records the time of the last key press at the start of the render.

Definition at line 60 of file SpikeStreamApplication.h.

Referenced by SpikeStreamApplication(), startRender(), and x11EventFilter().

timeval SpikeStreamApplication::startRenderTime [private]
 

Time structure to record the start of the render.

Definition at line 66 of file SpikeStreamApplication.h.

Referenced by startRender(), and stopRender().

timeval SpikeStreamApplication::stopRenderTime [private]
 

Time structure to record the end of the render.

Definition at line 69 of file SpikeStreamApplication.h.

Referenced by stopRender().


The documentation for this class was generated from the following files:
Generated on Mon Sep 3 22:29:05 2007 for SpikeStream Application by  doxygen 1.4.4