synergynetframework.jme.cursorsystem.elements.twod
Class SingleTouchRotateTranslate

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
          extended by synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
              extended by synergynetframework.jme.cursorsystem.elements.twod.SingleTouchRotateTranslate

public class SingleTouchRotateTranslate
extends OrthoControlPointRotateTranslateScale

Assumes Single Cursor only.


Nested Class Summary
 
Nested classes/interfaces inherited from class synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
 
Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
SingleTouchRotateTranslate(com.jme.scene.TriMesh pickingAndTargetSpatial)
          Instantiates a new single touch rotate translate.
SingleTouchRotateTranslate(com.jme.scene.TriMesh pickingSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new single touch rotate translate.
 
Method Summary
 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.
 boolean isCloseToVertex(com.jme.math.Vector3f point)
          Checks if is close to vertex.
 
Methods inherited from class synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
addRotateTranslateScaleListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, getScaleMax, getScaleMin, removeRotateTranslateScaleListener, setRotateLimits, setScaleLimits
 
Methods inherited from class synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
getCursorScreenPositionAtPick, getPickDataForCursorID, getPickResultFromCursorIndex, getSpatial2DWorldPositionAtPick, registerScreenCursor
 
Methods inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
addWorldCursorRecord, 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

SingleTouchRotateTranslate

public SingleTouchRotateTranslate(com.jme.scene.TriMesh pickingAndTargetSpatial)
Instantiates a new single touch rotate translate.

Parameters:
pickingAndTargetSpatial - the picking and target spatial

SingleTouchRotateTranslate

public SingleTouchRotateTranslate(com.jme.scene.TriMesh pickingSpatial,
                                  com.jme.scene.Spatial targetSpatial)
Instantiates a new single touch rotate translate.

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

cursorChanged

public void cursorChanged(ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from class: MultiTouchElement
Cursor changed.

Overrides:
cursorChanged in class OrthoControlPointRotateTranslateScale
Parameters:
c - the c
event - the event

cursorClicked

public void cursorClicked(ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from class: MultiTouchElement
Cursor clicked.

Overrides:
cursorClicked in class OrthoControlPointRotateTranslateScale
Parameters:
c - the c
event - the event

cursorPressed

public void cursorPressed(ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from class: MultiTouchElement
Cursor pressed.

Overrides:
cursorPressed in class OrthoControlPointRotateTranslateScale
Parameters:
c - the c
event - the event

cursorReleased

public void cursorReleased(ScreenCursor c,
                           MultiTouchCursorEvent event)
Description copied from class: MultiTouchElement
Cursor released.

Overrides:
cursorReleased in class OrthoControlPointRotateTranslateScale
Parameters:
c - the c
event - the event

isCloseToVertex

public boolean isCloseToVertex(com.jme.math.Vector3f point)
Checks if is close to vertex.

Parameters:
point - the point
Returns:
true, if is close to vertex