sensorfw: datatypes/posedata.h Source File

sensorfw

posedata.h
Go to the documentation of this file.
1
26#ifndef POSEDATA_H
27#define POSEDATA_H
28
29#include <datatypes/genericdata.h>
30
34 class PoseData : public TimedData {
35public:
73 enum Orientation
74 {
75 Undefined = 0,
76 LeftUp,
77 RightUp,
78 BottomUp,
79 BottomDown,
80 FaceDown,
81 FaceUp
82 };
83
84 PoseData::Orientation orientation_;
89 PoseData() : TimedData(0), orientation_(Undefined) {}
90
95 PoseData(Orientation orientation) : TimedData(0), orientation_(orientation) {}
96
102 PoseData(const quint64& timestamp, Orientation orientation) : TimedData(timestamp), orientation_(orientation) {}
103};
104
105 Q_DECLARE_METATYPE(PoseData)
106
107#endif // POSEDATA_H
Orientation
QObject facade for OrientationData.
Definition orientation.h:37
PoseData
Datatype for device pose interpretation.
Definition posedata.h:34
PoseData::PoseData
PoseData(Orientation orientation)
Constructor.
Definition posedata.h:95
PoseData::orientation_
PoseData::Orientation orientation_
Device Orientation.
Definition posedata.h:84
PoseData::PoseData
PoseData()
Constructor.
Definition posedata.h:89
PoseData::Orientation
Orientation
Possible device postures.
Definition posedata.h:74
PoseData::FaceDown
@ FaceDown
Device face is down.
Definition posedata.h:80
PoseData::RightUp
@ RightUp
Device right side is up.
Definition posedata.h:77
PoseData::FaceUp
@ FaceUp
Device face is up.
Definition posedata.h:81
PoseData::Undefined
@ Undefined
Orientation is unknown.
Definition posedata.h:75
PoseData::LeftUp
@ LeftUp
Device left side is up.
Definition posedata.h:76
PoseData::BottomUp
@ BottomUp
Device bottom is up.
Definition posedata.h:78
PoseData::BottomDown
@ BottomDown
Device bottom is down.
Definition posedata.h:79
PoseData::PoseData
PoseData(const quint64 &timestamp, Orientation orientation)
Constructor.
Definition posedata.h:102
TimedData
A base class for measurement data that contain timestamp.
Definition genericdata.h:36
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(TMatrix)
genericdata.h
Basic datatypes for filters.