sensorfw
PoseData Class Reference

Datatype for device pose interpretation. More...

#include <posedata.h>

Inheritance diagram for PoseData:
TimedData

List of all members.

Public Types

enum  Orientation {
  Undefined = 0, LeftUp, RightUp, BottomUp,
  BottomDown, FaceDown, FaceUp
}
 Possible device postures. More...

Public Member Functions

 PoseData ()
 Constructor.
 PoseData (Orientation orientation)
 Constructor.
 PoseData (const quint64 &timestamp, Orientation orientation)
 Constructor.

Public Attributes

PoseData::Orientation orientation_
 Device Orientation.

Detailed Description

Datatype for device pose interpretation.

Definition at line 34 of file posedata.h.


Member Enumeration Documentation

Possible device postures.

Note:
The interpretation algorithm for orientation currently relies on the integer values of the enumeration. Thus changing the names for the orientation states is completely ok (for sensord, client apps may disagree). Possible new values must be appended to the list and the order of values must not be changed!

Device side naming:


                          Top


                      ----------
                     /  NOKIA  /|
                    /-------- / |
                   //       //  /
                  //       //  /
          Left   //  Face //  /    Right
                //       //  /
               //       //  /
              /---------/  /
             /    O    /  /
            /         /  /
            ----------  /
            |_________!/


              Bottom

       

Device orientation.

Enumerator:
Undefined 

Orientation is unknown.

LeftUp 

Device left side is up.

RightUp 

Device right side is up.

BottomUp 

Device bottom is up.

BottomDown 

Device bottom is down.

FaceDown 

Device face is down.

FaceUp 

Device face is up.

Definition at line 73 of file posedata.h.


Constructor & Destructor Documentation

PoseData::PoseData ( ) [inline]

Constructor.

Definition at line 89 of file posedata.h.

PoseData::PoseData ( Orientation  orientation) [inline]

Constructor.

Parameters:
orientationInitial value for orientation.

Definition at line 95 of file posedata.h.

PoseData::PoseData ( const quint64 &  timestamp,
Orientation  orientation 
) [inline]

Constructor.

Parameters:
timestampInitial value for timestamp.
orientationInitial value for orientation.

Definition at line 102 of file posedata.h.


Member Data Documentation


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