|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwiiusej.wiiuseapievents.WiimoteEvent
wiiusej.wiiuseapievents.MotionSensingEvent
public class MotionSensingEvent
Class which represents a motion sensing event.
Field Summary | |
---|---|
private RawAcceleration |
acceleration
|
private int |
accelerationThreshold
|
private float |
alphaSmoothing
|
private GForce |
gforce
|
private boolean |
isSmoothingActive
|
private Orientation |
orientation
|
private float |
orientationThreshold
|
Constructor Summary | |
---|---|
MotionSensingEvent(int id,
float orientationThreshold,
int accelerationThreshold,
boolean smoothingState,
float alphaSmooth,
float r,
float p,
float ya,
float x,
float y,
float z,
short xx,
short yy,
short zz)
Constructor for a Motion Sensing Event. |
Method Summary | |
---|---|
int |
getAccelerationThreshold()
Get acceleration threshold. |
float |
getAlphaSmoothing()
Get alpha smoothing. |
GForce |
getGforce()
Get the gravity force. |
Orientation |
getOrientation()
|
float |
getOrientationThreshold()
Get orientation threshold. |
RawAcceleration |
getRawAcceleration()
Get the raw acceleration. |
boolean |
isSmoothingActive()
Tell if the option SMOOTHING is activated. |
private void |
setOrientationAndGforce(float r,
float p,
float ya,
float x,
float y,
float z,
short xx,
short yy,
short zz)
Set orientation, gravity force and raw acceleration. |
java.lang.String |
toString()
|
Methods inherited from class wiiusej.wiiuseapievents.WiimoteEvent |
---|
getWiimoteId, setWiimoteId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Orientation orientation
private GForce gforce
private RawAcceleration acceleration
private float orientationThreshold
private int accelerationThreshold
private float alphaSmoothing
private boolean isSmoothingActive
Constructor Detail |
---|
public MotionSensingEvent(int id, float orientationThreshold, int accelerationThreshold, boolean smoothingState, float alphaSmooth, float r, float p, float ya, float x, float y, float z, short xx, short yy, short zz)
id
- id of the wiimote concerned.orientationThreshold
- value of the minimum angle between two events with the
accelerometeraccelerationThreshold
- value of the value variation between two events with the
accelerometersmoothingState
- true if smoothing flag is activatedalphaSmooth
- value of the alpha smoothing parameterr
- rollp
- pitchya
- yawx
- gravity force on x axisy
- gravity force on y axisz
- gravity force on z axisxx
- raw acceleration on x axisyy
- raw acceleration on y axiszz
- raw acceleration on z axisMethod Detail |
---|
private void setOrientationAndGforce(float r, float p, float ya, float x, float y, float z, short xx, short yy, short zz)
r
- rollp
- pitchya
- yawx
- gravity force on x axisy
- gravity force on y axisz
- gravity force on z axisxx
- raw acceleration on x axisyy
- raw acceleration on y axiszz
- raw acceleration on z axispublic Orientation getOrientation()
public GForce getGforce()
public RawAcceleration getRawAcceleration()
public float getOrientationThreshold()
public int getAccelerationThreshold()
public float getAlphaSmoothing()
public boolean isSmoothingActive()
public java.lang.String toString()
toString
in class WiimoteEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |