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
MotionEvent s 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, speed
fired, flushed, id, isAltDown, isAltGraph, isControlDown, isMetaDown, isShiftDown, modifiers, modifiersText, timestamp
public 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 MotionEvent
public boolean equals(Object obj)
equals
in class MotionEvent
public DOF6Event get()
Copyable
Typical implementation should simple look like: return new Object(this)
.
get
in interface Copyable
get
in class MotionEvent
public DOF6Event flush()
BogusEvent
this.get()
but sets the BogusEvent.flushed()
flag to true. Only agents
may call this.flush
in class MotionEvent
BogusEvent.flushed()
public DOF6Event fire()
BogusEvent
this.get()
but sets the BogusEvent.fired()
flag to true. Only agents
may call this.fire
in class MotionEvent
BogusEvent.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)
MotionEvent
sens
. Only meaningful if the event
MotionEvent.isAbsolute()
.modulate
in class MotionEvent
public boolean isNull()
BogusEvent
MotionEvent
s may be null.isNull
in class BogusEvent
public DOF3Event dof3Event()
return dof3Event(true)
dof3Event(boolean)
Processing Library proscene by Jean Pierre Charalambos. (c) 2014-2017 National University of Colombia