synergynetframework.jme.cursorsystem
Class ThreeDMultiTouchElement

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement
Direct Known Subclasses:
ControlPointRotateTranslateScale, FlickMover, MonitorCameraRotateTranslateZoom, MultiTouchButtonPress, MultiTouchButtonPress, MultiTouchMoveableXYPlane, MultiTouchMoveableXYPlaneWithPhysics, MultiTouchMoveZ, MultiTouchMoveZController, MultiTouchRotateXY, MultiTouchRotateXYController, MultiTouchRotateZ, MultiTouchScale, MultiTouchTransformableDrawableElement, ObjectRightClick, ObjectRotateTranslate, ObjectRotateTranslate, TerrainNavigator, TwoFingersGesture

public abstract class ThreeDMultiTouchElement
extends MultiTouchElement

The Class ThreeDMultiTouchElement.

Author:
ashatch

Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
ThreeDMultiTouchElement(com.jme.scene.Spatial pickingAndTargetSpatial)
          Instantiates a new three d multi touch element.
ThreeDMultiTouchElement(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new three d multi touch element.
 
Method Summary
 ThreeDPickResultData getPickDataForCursorID(long id)
          Gets the pick data for cursor id.
 ThreeDPickResultData getPickResultFromCursorIndex(int index)
          Gets the pick result from cursor index.
 void registerScreenCursor(ScreenCursor c, ThreeDPickResultData 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

ThreeDMultiTouchElement

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

Parameters:
pickingAndTargetSpatial - the picking and target spatial

ThreeDMultiTouchElement

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

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

getPickDataForCursorID

public ThreeDPickResultData 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 ThreeDPickResultData 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

registerScreenCursor

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

Parameters:
c - the c
nodeloc - the nodeloc