QSensorFilter
Since: 1.0
#include <QtSensors/QSensorFilter>
More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QSensorFilter
QtSensors
The QSensorFilter class provides an efficient callback facility for asynchronous notifications of sensor changes.
Some sensors (eg. the accelerometer) are often accessed very frequently. This may be slowed down by the use of signals and slots. The QSensorFilter interface provides a more efficient way for the sensor to notify your class that the sensor has changed.
Additionally, multiple filters can be added to a sensor. They are called in order and each filter has the option to modify the values in the reading or to suppress the reading altogether.
Note that the values in the class returned by QSensor::reading() will not be updated until after the filters have been run.
Overview
Inheritance
Public Functions Index
bool | filter (QSensorReading *reading)=0 |
Protected Functions Index
QSensorFilter () | |
~QSensorFilter () | |
virtual void | setSensor (QSensor *sensor) |
Protected Attributes
QSensor *
Public Functions
bool
This function is called when the sensor reading changes.
Returns false to drop the reading.
1.0
Protected Functions
Destructor.
1.0
virtual void
© 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Documentation sources may be obtained from www.qt-project.org.
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy