|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.data.independent.AbstractSampleData
de.unikassel.android.sdcframework.data.independent.OrientationSampleData
public final class OrientationSampleData
The orientation sensor device specific sample data, which are heading (angle between the magnetic north direction and the y-axis, 0=North, 90=East, 180=South, 270=West ), pitch ( rotation around x-axis,-180 to 180, with positive values when the z-axis moves toward the y-axis) and roll ( rotation around y-axis, -90 to 90, with positive values when the x-axis moves toward the z-axis ).
OrientationDevice
,
OrientationDeviceScanner
Field Summary | |
---|---|
private float |
heading
The ambient angle between the magnetic north direction and the y-axis |
private float |
pitch
The rotation around the x-axis |
private float |
roll
The rotation around the y-axis |
Constructor Summary | |
---|---|
OrientationSampleData()
Constructor |
|
OrientationSampleData(OrientationSampleData sampleData)
Constructor |
Method Summary | |
---|---|
SampleData |
doClone()
Method to clone sample data |
boolean |
equals(Object o)
|
float |
getHeading()
Getter for the angle between the magnetic north direction and the y-axis |
float |
getPitch()
Getter for the rotation around the x-axis |
float |
getRoll()
Getter for the rotation around the y-axis |
void |
setHeading(float heading)
Setter for the angle between the magnetic north direction and the y-axis |
void |
setPitch(float pitch)
Setter for the rotation around the x-axis |
void |
setRoll(float roll)
Setter for the rotation around the y-axis |
Methods inherited from class de.unikassel.android.sdcframework.data.independent.AbstractSampleData |
---|
clone, getRelatedData, toXML, updateRelatedData |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private float heading
private float pitch
private float roll
Constructor Detail |
---|
public OrientationSampleData()
public OrientationSampleData(OrientationSampleData sampleData)
sampleData
- the sample data to copy construct fromMethod Detail |
---|
public final SampleData doClone()
SampleData
public final boolean equals(Object o)
equals
in class Object
public final float getHeading()
public final void setHeading(float heading)
heading
- the angle between the magnetic north direction and the y-axis to setpublic final float getPitch()
public final void setPitch(float pitch)
pitch
- the rotation around the x-axis to setpublic final float getRoll()
public final void setRoll(float roll)
roll
- the rotation around the y-axis to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |