Qt Simulator Manual 1.2.0

SensorsScriptInterface Class Reference

Exposed as sensors. More...

 #include <SensorsScriptInterface>

Public Types

enum LightLevel { Undefined, Dark, Twilight, Light, Bright, Sunny }

Properties

Public Functions

SensorsScriptInterface ( SensorsUi * ui )
virtual ~SensorsScriptInterface ()
double accelerometerX () const
double accelerometerY () const
double accelerometerZ () const
LightLevel ambientLightLevel () const
double compassAzimuth () const
double compassCalibrationLevel () const
double lux () const
double magnetometerCalibrationLevel () const
double magnetometerX () const
double magnetometerY () const
double magnetometerZ () const
bool proximitySensorClose () const
void setAccelerometerX ( double x )
void setAccelerometerY ( double y )
void setAccelerometerZ ( double z )
void setAmbientLightLevel ( const LightLevel & data )
void setCompassAzimuth ( double a )
void setCompassCalibrationLevel ( double l )
void setLux ( double lux )
void setMagnetometerCalibrationLevel ( double l )
void setMagnetometerX ( double x )
void setMagnetometerY ( double y )
void setMagnetometerZ ( double z )
void setProximitySensorClose ( bool c )
void setTimestamp ( const QDateTime & t )
void setUseCurrentTimestamp ( bool t )
QDateTime timestamp () const
bool useCurrentTimestamp () const

Detailed Description

Exposed as sensors.

Member Type Documentation

enum SensorsScriptInterface::LightLevel

Property Documentation

accelerometerX : double

Access functions:

double accelerometerX () const
void setAccelerometerX ( double x )

accelerometerY : double

Access functions:

double accelerometerY () const
void setAccelerometerY ( double y )

accelerometerZ : double

Access functions:

double accelerometerZ () const
void setAccelerometerZ ( double z )

ambientLightLevel : LightLevel

Access functions:

LightLevel ambientLightLevel () const
void setAmbientLightLevel ( const LightLevel & data )

compassAzimuth : double

Access functions:

double compassAzimuth () const
void setCompassAzimuth ( double a )

compassCalibrationLevel : double

Access functions:

double compassCalibrationLevel () const
void setCompassCalibrationLevel ( double l )

lux : double

Access functions:

double lux () const
void setLux ( double lux )

magnetometerCalibrationLevel : double

Access functions:

double magnetometerCalibrationLevel () const
void setMagnetometerCalibrationLevel ( double l )

magnetometerX : double

Access functions:

double magnetometerX () const
void setMagnetometerX ( double x )

magnetometerY : double

Access functions:

double magnetometerY () const
void setMagnetometerY ( double y )

magnetometerZ : double

Access functions:

double magnetometerZ () const
void setMagnetometerZ ( double z )

proximitySensorClose : bool

Access functions:

bool proximitySensorClose () const
void setProximitySensorClose ( bool c )

timestamp : QDateTime

Access functions:

QDateTime timestamp () const
void setTimestamp ( const QDateTime & t )

useCurrentTimestamp : bool

Access functions:

bool useCurrentTimestamp () const
void setUseCurrentTimestamp ( bool t )

Member Function Documentation

SensorsScriptInterface::SensorsScriptInterface ( SensorsUi * ui )

SensorsScriptInterface::~SensorsScriptInterface () [virtual]

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();