|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.jme.cursorsystem.MultiTouchElement
synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
synergynetframework.jme.cursorsystem.elements.twod.OrthoSnap
public class OrthoSnap
The Class OrthoSnap.
Nested Class Summary | |
---|---|
static interface |
OrthoSnap.SnapListener
The listener interface for receiving snap events. |
Field Summary |
---|
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement |
---|
AXIS_Z, DIRECTION_UP |
Constructor Summary | |
---|---|
OrthoSnap(com.jme.scene.Spatial pickingAndTargetSpatial)
Instantiates a new ortho snap. |
|
OrthoSnap(com.jme.scene.Spatial pickingSpatial,
com.jme.scene.Spatial targetSpatial)
Instantiates a new ortho snap. |
Method Summary | |
---|---|
void |
addSnapListener(OrthoSnap.SnapListener l)
Adds the snap listener. |
void |
allowSnapToOccupiedLocation(boolean allowSnapToOccupiedLocation)
Allow snap to occupied location. |
void |
cursorChanged(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor changed. |
void |
cursorClicked(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor clicked. |
void |
cursorPressed(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor pressed. |
void |
cursorReleased(ScreenCursor c,
MultiTouchCursorEvent event)
Cursor released. |
float |
getTolerance()
Gets the tolerance. |
boolean |
isAllowSnapToOccupiedLocation()
Checks if is allow snap to occupied location. |
void |
removeSnapListener(OrthoSnap.SnapListener l)
Removes the snap listener. |
void |
setFixLocations(java.util.List<FixLocationStatus> fixLocations)
Sets the fix locations. |
void |
setTolerance(float tolerance)
Sets the tolerance. |
Methods inherited from class synergynetframework.jme.cursorsystem.TwoDMultiTouchElement |
---|
getCursorScreenPositionAtPick, getPickDataForCursorID, getPickResultFromCursorIndex, getSpatial2DWorldPositionAtPick, registerScreenCursor |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrthoSnap(com.jme.scene.Spatial pickingAndTargetSpatial)
pickingAndTargetSpatial
- the picking and target spatialpublic OrthoSnap(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial)
pickingSpatial
- the picking spatialtargetSpatial
- the target spatialMethod Detail |
---|
public void addSnapListener(OrthoSnap.SnapListener l)
l
- the lpublic void allowSnapToOccupiedLocation(boolean allowSnapToOccupiedLocation)
allowSnapToOccupiedLocation
- the allow snap to occupied locationpublic void cursorChanged(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorChanged
in class MultiTouchElement
c
- the cevent
- the eventpublic void cursorClicked(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorClicked
in class MultiTouchElement
c
- the cevent
- the eventpublic void cursorPressed(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorPressed
in class MultiTouchElement
c
- the cevent
- the eventpublic void cursorReleased(ScreenCursor c, MultiTouchCursorEvent event)
MultiTouchElement
cursorReleased
in class MultiTouchElement
c
- the cevent
- the eventpublic float getTolerance()
public boolean isAllowSnapToOccupiedLocation()
public void removeSnapListener(OrthoSnap.SnapListener l)
l
- the lpublic void setFixLocations(java.util.List<FixLocationStatus> fixLocations)
fixLocations
- the new fix locationspublic void setTolerance(float tolerance)
tolerance
- the new tolerance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |