|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wiigee.filter.Filter
org.wiigee.filter.MotionDetectFilter
public class MotionDetectFilter
This filter uses time to determine if the wiimote actually is in motion or not. This filter only works together with the IdleStateFilter.
| Constructor Summary | |
|---|---|
MotionDetectFilter(Device device)
Detects wheather the wiimote receives acceleration or not and raises an event, if the device starts or stops. |
|
| Method Summary | |
|---|---|
double[] |
filter(double[] vector)
The actual called method to filter anything. |
double[] |
filterAlgorithm(double[] vector)
A filter receives a triple of acceleration values within the variable 'vector'. |
int |
getMotionChangeTime()
|
void |
reset()
|
void |
setMotionChangeTime(int time)
Defines the time the wiimote has to be in idle state before a new motion change event appears. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MotionDetectFilter(Device device)
wiimote - The Wiimote object which is controlled by the filter.| Method Detail |
|---|
public void reset()
reset in class Filterpublic double[] filter(double[] vector)
Filter
filter in class Filtervector - The acceleration vector, encoding: 0/x, 1/y, 2/z
public double[] filterAlgorithm(double[] vector)
Filter
filterAlgorithm in class Filterpublic void setMotionChangeTime(int time)
time - Time in mspublic int getMotionChangeTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||