Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SensorObserverControl::RTViewControl Class Reference

#include <SensorObserverControl.h>

Inheritance diagram for SensorObserverControl::RTViewControl:

Inheritance graph
[legend]
List of all members.

Detailed Description

The real time view for SensorObserverControl is split into a separate class for more straightfoward handling of refreshes.

Definition at line 33 of file SensorObserverControl.h.

Public Member Functions

 RTViewControl (SensorObserverControl *p)
 constructor, pass pointer to SensorObserverControl which contains it
virtual void processEvent (const EventBase &)
 causes control to refresh whenever an event (i.e. timer) is received
virtual void refresh ()
 called when the child has deactivated and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed
virtual void pause ()
 called when a control is being overriden by a child, or the control system is deactivating (e-stop being turned off)
virtual void deactivate ()
 called when this control is being popped from the control stack
virtual void setPeriod (unsigned int x)
 sets period

Protected Attributes

SensorObserverControlparent
 a back pointer to SensorObserverControl which contains it so updateRT can be triggered
unsigned int period
 the time to wait between automatic refreshes

Private Member Functions

 RTViewControl (const RTViewControl &)
 don't call
RTViewControloperator= (const RTViewControl &)
 don't call


Constructor & Destructor Documentation

SensorObserverControl::RTViewControl::RTViewControl SensorObserverControl p  )  [inline]
 

constructor, pass pointer to SensorObserverControl which contains it

Definition at line 36 of file SensorObserverControl.h.

SensorObserverControl::RTViewControl::RTViewControl const RTViewControl  )  [private]
 

don't call


Member Function Documentation

void SensorObserverControl::RTViewControl::deactivate  )  [virtual]
 

called when this control is being popped from the control stack

Reimplemented from ControlBase.

Definition at line 197 of file SensorObserverControl.cc.

RTViewControl& SensorObserverControl::RTViewControl::operator= const RTViewControl  )  [private]
 

don't call

void SensorObserverControl::RTViewControl::pause  )  [virtual]
 

called when a control is being overriden by a child, or the control system is deactivating (e-stop being turned off)

Reimplemented from ControlBase.

Definition at line 193 of file SensorObserverControl.cc.

virtual void SensorObserverControl::RTViewControl::processEvent const EventBase  )  [inline, virtual]
 

causes control to refresh whenever an event (i.e. timer) is received

Implements EventListener.

Definition at line 37 of file SensorObserverControl.h.

void SensorObserverControl::RTViewControl::refresh  )  [virtual]
 

called when the child has deactivated and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed

Reimplemented from ControlBase.

Definition at line 186 of file SensorObserverControl.cc.

Referenced by processEvent().

void SensorObserverControl::RTViewControl::setPeriod unsigned int  x  )  [virtual]
 

sets period

The change doesn't get picked up until next call to refresh()

Definition at line 202 of file SensorObserverControl.cc.

Referenced by SensorObserverControl::refresh().


Member Data Documentation

SensorObserverControl* SensorObserverControl::RTViewControl::parent [protected]
 

a back pointer to SensorObserverControl which contains it so updateRT can be triggered

Definition at line 43 of file SensorObserverControl.h.

Referenced by refresh().

unsigned int SensorObserverControl::RTViewControl::period [protected]
 

the time to wait between automatic refreshes

Definition at line 44 of file SensorObserverControl.h.

Referenced by refresh(), and setPeriod().


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

Tekkotsu v2.4.1
Generated Tue Aug 16 16:35:08 2005 by Doxygen 1.4.4