Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::Util::LatencyTest Class Reference

#include "Util_LatencyTest.h"

Inheritance diagram for OVR::Util::LatencyTest:
Inheritance graph
Collaboration diagram for OVR::Util::LatencyTest:
Collaboration graph

Data Structures

class  LatencyTestHandler
 
struct  MeasurementResult
 

Public Member Functions

 LatencyTest (LatencyTestDevice *device=NULL)
 
 ~LatencyTest ()
 
bool SetDevice (LatencyTestDevice *device)
 
bool HasDevice () const
 
void ProcessInputs ()
 
bool DisplayScreenColor (Color &colorToDisplay)
 
const char * GetResultsString ()
 
bool IsMeasuringNow () const
 
void BeginTest ()
 

Private Types

enum  LatencyTestMessageType { LatencyTest_None, LatencyTest_Timer, LatencyTest_ProcessInputs }
 
enum  TesterState {
  State_WaitingForButton, State_WaitingForSettlePreCalibrationColorBlack, State_WaitingForSettlePostCalibrationColorBlack, State_WaitingForSettlePreCalibrationColorWhite,
  State_WaitingForSettlePostCalibrationColorWhite, State_WaitingToTakeMeasurement, State_WaitingForTestStarted, State_WaitingForColorDetected,
  State_WaitingForSettlePostMeasurement
}
 

Private Member Functions

LatencyTestgetThis ()
 
UInt32 getRandomComponent (UInt32 range)
 
void handleMessage (const Message &msg, LatencyTestMessageType latencyTestMessage=LatencyTest_None)
 
void reset ()
 
void setTimer (UInt32 timeMilliS)
 
void clearTimer ()
 
bool areResultsComplete ()
 
void processResults ()
 
void updateForTimeouts ()
 
void clearMeasurementResults ()
 
MeasurementResultgetActiveResult ()
 

Private Attributes

Ptr< LatencyTestDeviceDevice
 
LatencyTestHandler Handler
 
TesterState State
 
bool HaveOldTime
 
UInt32 OldTime
 
UInt32 ActiveTimerMilliS
 
Color RenderColor
 
List< MeasurementResultResults
 
StringBuffer ResultsString
 
String ReturnedResultString
 

Detailed Description

Definition at line 65 of file Util_LatencyTest.h.

Member Enumeration Documentation

Enumerator
LatencyTest_None 
LatencyTest_Timer 
LatencyTest_ProcessInputs 

Definition at line 91 of file Util_LatencyTest.h.

Enumerator
State_WaitingForButton 
State_WaitingForSettlePreCalibrationColorBlack 
State_WaitingForSettlePostCalibrationColorBlack 
State_WaitingForSettlePreCalibrationColorWhite 
State_WaitingForSettlePostCalibrationColorWhite 
State_WaitingToTakeMeasurement 
State_WaitingForTestStarted 
State_WaitingForColorDetected 
State_WaitingForSettlePostMeasurement 

Definition at line 121 of file Util_LatencyTest.h.

Constructor & Destructor Documentation

OVR::Util::LatencyTest::LatencyTest ( LatencyTestDevice device = NULL)

Definition at line 53 of file Util_LatencyTest.cpp.

OVR::Util::LatencyTest::~LatencyTest ( )

Definition at line 66 of file Util_LatencyTest.cpp.

Member Function Documentation

bool OVR::Util::LatencyTest::areResultsComplete ( )
private

Definition at line 386 of file Util_LatencyTest.cpp.

void OVR::Util::LatencyTest::BeginTest ( )

Definition at line 103 of file Util_LatencyTest.cpp.

void OVR::Util::LatencyTest::clearMeasurementResults ( )
private

Definition at line 336 of file Util_LatencyTest.cpp.

void OVR::Util::LatencyTest::clearTimer ( )
private

Definition at line 322 of file Util_LatencyTest.cpp.

bool OVR::Util::LatencyTest::DisplayScreenColor ( Color colorToDisplay)

Definition at line 362 of file Util_LatencyTest.cpp.

LatencyTest::MeasurementResult * OVR::Util::LatencyTest::getActiveResult ( )
private

Definition at line 311 of file Util_LatencyTest.cpp.

UInt32 OVR::Util::LatencyTest::getRandomComponent ( UInt32  range)
private

Definition at line 97 of file Util_LatencyTest.cpp.

const char * OVR::Util::LatencyTest::GetResultsString ( )

Definition at line 375 of file Util_LatencyTest.cpp.

LatencyTest* OVR::Util::LatencyTest::getThis ( )
inlineprivate

Definition at line 89 of file Util_LatencyTest.h.

void OVR::Util::LatencyTest::handleMessage ( const Message msg,
LatencyTestMessageType  latencyTestMessage = LatencyTest_None 
)
private

Definition at line 117 of file Util_LatencyTest.cpp.

bool OVR::Util::LatencyTest::HasDevice ( ) const
inline

Definition at line 76 of file Util_LatencyTest.h.

bool OVR::Util::LatencyTest::IsMeasuringNow ( ) const
inline

Definition at line 83 of file Util_LatencyTest.h.

void OVR::Util::LatencyTest::ProcessInputs ( )

Definition at line 356 of file Util_LatencyTest.cpp.

void OVR::Util::LatencyTest::processResults ( )
private

Definition at line 431 of file Util_LatencyTest.cpp.

void OVR::Util::LatencyTest::reset ( )
private

Definition at line 327 of file Util_LatencyTest.cpp.

bool OVR::Util::LatencyTest::SetDevice ( LatencyTestDevice device)

Definition at line 71 of file Util_LatencyTest.cpp.

void OVR::Util::LatencyTest::setTimer ( UInt32  timeMilliS)
private

Definition at line 317 of file Util_LatencyTest.cpp.

void OVR::Util::LatencyTest::updateForTimeouts ( )
private

Definition at line 534 of file Util_LatencyTest.cpp.

Field Documentation

UInt32 OVR::Util::LatencyTest::ActiveTimerMilliS
private

Definition at line 137 of file Util_LatencyTest.h.

Ptr<LatencyTestDevice> OVR::Util::LatencyTest::Device
private

Definition at line 118 of file Util_LatencyTest.h.

LatencyTestHandler OVR::Util::LatencyTest::Handler
private

Definition at line 119 of file Util_LatencyTest.h.

bool OVR::Util::LatencyTest::HaveOldTime
private

Definition at line 135 of file Util_LatencyTest.h.

UInt32 OVR::Util::LatencyTest::OldTime
private

Definition at line 136 of file Util_LatencyTest.h.

Color OVR::Util::LatencyTest::RenderColor
private

Definition at line 139 of file Util_LatencyTest.h.

List<MeasurementResult> OVR::Util::LatencyTest::Results
private

Definition at line 162 of file Util_LatencyTest.h.

StringBuffer OVR::Util::LatencyTest::ResultsString
private

Definition at line 167 of file Util_LatencyTest.h.

String OVR::Util::LatencyTest::ReturnedResultString
private

Definition at line 168 of file Util_LatencyTest.h.

TesterState OVR::Util::LatencyTest::State
private

Definition at line 133 of file Util_LatencyTest.h.


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