synergynetframework.jme.cursorsystem
Class TwoDMultiTouchElement

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
Direct Known Subclasses:
ControlBarMover, ControlPanelMoveRotateScale, ControlPanelMoveRotateScale, CursorEventDispatcher, OjbectManipulation, OjbectManipulation, OrthoControlPointRotateTranslateScale, OrthoCursorEventDispatcher, OrthoMove, OrthoSnap, TelescopeFrameMoveZoom

public abstract class TwoDMultiTouchElement
extends MultiTouchElement

The Class TwoDMultiTouchElement.


Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
TwoDMultiTouchElement(com.jme.scene.Spatial pickingAndTargetSpatial)
          Instantiates a new two d multi touch element.
TwoDMultiTouchElement(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new two d multi touch element.
 
Method Summary
 com.jme.math.Vector2f getCursorScreenPositionAtPick(int cursorIndex)
          Gets the cursor screen position at pick.
 OrthogonalPickResultData getPickDataForCursorID(long id)
          Gets the pick data for cursor id.
 OrthogonalPickResultData getPickResultFromCursorIndex(int index)
          Gets the pick result from cursor index.
 com.jme.math.Vector2f getSpatial2DWorldPositionAtPick(int cursorIndex)
          Gets the spatial2 d world position at pick.
 void registerScreenCursor(ScreenCursor c, OrthogonalPickResultData nodeloc)
          Register screen cursor.
 
Methods inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
addWorldCursorRecord, cursorChanged, cursorClicked, cursorPressed, cursorReleased, getCurrentScreenAngleDifferenceFromOrigin, getCurrentScreenCursorsAngle, getCurrentTargetSpatialRotationFromCursorChange, getName, getNumRegisteredCursors, getOriginScreenCursorsAngle, getPickingSpatial, getScaleAtOrigin, getScreenCursorByID, getScreenCursorByIndex, getScreenCursorOriginForCursorID, getTargetSpatial, getTranslationAtOrigin, getWorldLocations, isActive, isPickMeOnly, registerScreenCursor, setActive, setName, setPickMeOnly, unregisterScreenCursor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoDMultiTouchElement

public TwoDMultiTouchElement(com.jme.scene.Spatial pickingAndTargetSpatial)
Instantiates a new two d multi touch element.

Parameters:
pickingAndTargetSpatial - the picking and target spatial

TwoDMultiTouchElement

public TwoDMultiTouchElement(com.jme.scene.Spatial pickingSpatial,
                             com.jme.scene.Spatial targetSpatial)
Instantiates a new two d multi touch element.

Parameters:
pickingSpatial - the picking spatial
targetSpatial - the target spatial
Method Detail

getCursorScreenPositionAtPick

public com.jme.math.Vector2f getCursorScreenPositionAtPick(int cursorIndex)
Gets the cursor screen position at pick.

Parameters:
cursorIndex - the cursor index
Returns:
the cursor screen position at pick

getPickDataForCursorID

public OrthogonalPickResultData getPickDataForCursorID(long id)
Description copied from class: MultiTouchElement
Gets the pick data for cursor id.

Overrides:
getPickDataForCursorID in class MultiTouchElement
Parameters:
id - the id
Returns:
the pick data for cursor id

getPickResultFromCursorIndex

public OrthogonalPickResultData getPickResultFromCursorIndex(int index)
Description copied from class: MultiTouchElement
Gets the pick result from cursor index.

Overrides:
getPickResultFromCursorIndex in class MultiTouchElement
Parameters:
index - the index
Returns:
the pick result from cursor index

getSpatial2DWorldPositionAtPick

public com.jme.math.Vector2f getSpatial2DWorldPositionAtPick(int cursorIndex)
Gets the spatial2 d world position at pick.

Parameters:
cursorIndex - the cursor index
Returns:
the spatial2 d world position at pick

registerScreenCursor

public void registerScreenCursor(ScreenCursor c,
                                 OrthogonalPickResultData nodeloc)
Register screen cursor.

Parameters:
c - the c
nodeloc - the nodeloc