public class DOF6Event extends MotionEvent
ALT, ALT_GRAPH, CTRL, META, NO_ID, NO_MODIFIER_MASK, SHIFT| Constructor and Description |
|---|
DOF6Event(DOF6Event prevEvent,
float x,
float y,
float z,
float rx,
float ry,
float rz)
Construct a relative event from the given previous event, dof's and modifiers.
|
DOF6Event(DOF6Event prevEvent,
float x,
float y,
float z,
float rx,
float ry,
float rz,
int modifiers,
int id)
Construct a relative event from the given previous event, dof's and modifiers.
|
DOF6Event(float dx,
float dy,
float dz,
float drx,
float dry,
float drz)
Construct an absolute event from the given dof's and modifiers.
|
DOF6Event(float dx,
float dy,
float dz,
float drx,
float dry,
float drz,
int modifiers,
int id)
Construct an absolute event from the given dof's and modifiers.
|
DOF6Event(MotionEvent prevEvent,
float x,
float y,
float z,
float rx,
float ry,
float rz)
Same as
this(prevEvent instanceof DOF6Event ? (DOF6Event) prevEvent : null, x, y, z, rx, ry, rz). |
DOF6Event(MotionEvent prevEvent,
float x,
float y,
float z,
float rx,
float ry,
float rz,
int modifiers,
int id)
Same as
this(prevEvent instanceof DOF6Event ? (DOF6Event) prevEvent : null, x, y, z, rx, ry, rz, modifiers, id). |
| Modifier and Type | Method and Description |
|---|---|
DOF3Event |
dof3Event()
Convenience function that simply returns
return dof3Event(true) |
DOF3Event |
dof3Event(boolean fromTranslation)
Reduces the event to a
DOF3Event (lossy reduction). |
float |
drx() |
float |
dry() |
float |
drz() |
float |
dx() |
float |
dy() |
float |
dz() |
boolean |
equals(Object obj) |
DOF6Event |
fire()
Same as
this.get() but sets the BogusEvent.fired() flag to true. |
DOF6Event |
flush()
Same as
this.get() but sets the BogusEvent.flushed() flag to true. |
DOF6Event |
get()
Returns a deep copy of the object.
|
int |
hashCode() |
boolean |
isNull()
Only
MotionEvents may be null. |
void |
modulate(float[] sens)
Modulate the event dofs according to
sens. |
float |
pitch()
Alias for
ry(), only meaningful if the event MotionEvent.isRelative() |
float |
prevRX() |
float |
prevRY() |
float |
prevRZ() |
float |
prevX() |
float |
prevY() |
float |
prevZ() |
float |
roll()
Alias for
rx(), only meaningful if the event MotionEvent.isRelative() |
float |
rx() |
float |
ry() |
float |
rz() |
float |
x() |
float |
y() |
float |
yaw()
alias for
rz(), only meaningful if the event MotionEvent.isRelative() |
float |
z() |
delay, distance, dof1Event, dof1Event, dof2Event, dof2Event, dof3Event, dof3Event, dof6Event, isAbsolute, isRelative, shortcut, speedfired, flushed, id, isAltDown, isAltGraph, isControlDown, isMetaDown, isShiftDown, modifiers, modifiersText, timestamppublic DOF6Event(float dx,
float dy,
float dz,
float drx,
float dry,
float drz,
int modifiers,
int id)
dx - dy - dz - drx - dry - drz - modifiers - id - public DOF6Event(MotionEvent prevEvent, float x, float y, float z, float rx, float ry, float rz, int modifiers, int id)
this(prevEvent instanceof DOF6Event ? (DOF6Event) prevEvent : null, x, y, z, rx, ry, rz, modifiers, id).public DOF6Event(DOF6Event prevEvent, float x, float y, float z, float rx, float ry, float rz, int modifiers, int id)
If the BogusEvent.id() of the prevEvent is different then BogusEvent.id(), sets
the MotionEvent.distance(), MotionEvent.delay() and MotionEvent.speed() all to zero.
prevEvent - x - y - z - rx - ry - rz - modifiers - id - public DOF6Event(float dx,
float dy,
float dz,
float drx,
float dry,
float drz)
dx - dy - dz - drx - dry - drz - public DOF6Event(MotionEvent prevEvent, float x, float y, float z, float rx, float ry, float rz)
this(prevEvent instanceof DOF6Event ? (DOF6Event) prevEvent : null, x, y, z, rx, ry, rz).public DOF6Event(DOF6Event prevEvent, float x, float y, float z, float rx, float ry, float rz)
If the BogusEvent.id() of the prevEvent is different then BogusEvent.id(), sets
the MotionEvent.distance(), MotionEvent.delay() and MotionEvent.speed() all to zero.
prevEvent - x - y - z - rx - ry - rz - public int hashCode()
hashCode in class MotionEventpublic boolean equals(Object obj)
equals in class MotionEventpublic DOF6Event get()
Copyable
Typical implementation should simple look like: return new Object(this).
get in interface Copyableget in class MotionEventpublic DOF6Event flush()
BogusEventthis.get() but sets the BogusEvent.flushed() flag to true. Only agents
may call this.flush in class MotionEventBogusEvent.flushed()public DOF6Event fire()
BogusEventthis.get() but sets the BogusEvent.fired() flag to true. Only agents
may call this.fire in class MotionEventBogusEvent.flushed()public float x()
MotionEvent.isRelative()public float dx()
public float prevX()
MotionEvent.isRelative()public float y()
MotionEvent.isRelative()public float dy()
public float prevY()
MotionEvent.isRelative()public float z()
MotionEvent.isRelative()public float dz()
public float prevZ()
MotionEvent.isRelative()public float roll()
rx(), only meaningful if the event MotionEvent.isRelative()public float rx()
MotionEvent.isRelative()public float pitch()
ry(), only meaningful if the event MotionEvent.isRelative()public float ry()
MotionEvent.isRelative()public float yaw()
rz(), only meaningful if the event MotionEvent.isRelative()public float rz()
MotionEvent.isRelative()public float drx()
public float dry()
public float drz()
public float prevRX()
MotionEvent.isRelative()public float prevRY()
MotionEvent.isRelative()public float prevRZ()
MotionEvent.isRelative()public void modulate(float[] sens)
MotionEventsens. Only meaningful if the event
MotionEvent.isAbsolute().modulate in class MotionEventpublic boolean isNull()
BogusEventMotionEvents may be null.isNull in class BogusEventpublic DOF3Event dof3Event()
return dof3Event(true)dof3Event(boolean)Processing Library proscene by Jean Pierre Charalambos. (c) 2014-2017 National University of Colombia