sensorfw: datatypes/touchdata.h Source File

sensorfw

touchdata.h
Go to the documentation of this file.
1
26 #ifndef TOUCHDATA_H
27 #define TOUCHDATA_H
28
29 #include "genericdata.h"
30
34 class TouchData : public TimedXyzData {
35 public:
36
41 enum FingerState {
42 FingerStateNotPresent = 0,
43 FingerStateAccurate,
44 FingerStateInaccurate
45 };
46
47 int object_;
48 FingerState state_;
53 TouchData() : TimedXyzData(), object_(0), state_(FingerStateNotPresent) {}
54
62 TouchData(TimedXyzData timedXyzData, int object, FingerState state) :
63 TimedXyzData(timedXyzData), object_(object), state_(state) {}
64 };
65
66 #endif // TOUCHDATA_H
TimedXyzData
Class for vector type measurement data (timestamp, x, y, z).
Definition: genericdata.h:53
TouchData
Datatype for device touchscreen events.
Definition: touchdata.h:34
TouchData::TouchData
TouchData(TimedXyzData timedXyzData, int object, FingerState state)
Constructor.
Definition: touchdata.h:62
TouchData::TouchData
TouchData()
Default Constructor.
Definition: touchdata.h:53
TouchData::state_
FingerState state_
Touch event finger state.
Definition: touchdata.h:48
TouchData::FingerState
FingerState
Enumeration to handle synaptic multitouch driver accuracy.
Definition: touchdata.h:41
TouchData::FingerStateNotPresent
@ FingerStateNotPresent
Finger not present.
Definition: touchdata.h:42
TouchData::FingerStateAccurate
@ FingerStateAccurate
Coordinates are accurate.
Definition: touchdata.h:43
TouchData::FingerStateInaccurate
@ FingerStateInaccurate
Coordinates are either accurate or mirrored.
Definition: touchdata.h:44
TouchData::object_
int object_
Touch event source (which finger), 1,2,...
Definition: touchdata.h:47
genericdata.h
Basic datatypes for filters.