apps.threedmanipulation.gestures
Class ObjectRotateTranslate

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement
          extended by apps.threedmanipulation.gestures.ObjectRotateTranslate

public class ObjectRotateTranslate
extends ThreeDMultiTouchElement

The Class ObjectRotateTranslate.


Nested Class Summary
static interface ObjectRotateTranslate.ObjectRotateTranslateScaleListener
          The listener interface for receiving objectRotateTranslateScale events.
 
Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
ObjectRotateTranslate(com.jme.scene.Spatial pickingAndTargetSpatial)
          Instantiates a new object rotate translate.
ObjectRotateTranslate(com.jme.scene.Spatial pickSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new object rotate translate.
ObjectRotateTranslate(com.jme.scene.Spatial pickSpatial, com.jme.scene.Spatial targetSpatial, com.jme.scene.Spatial remoteObject)
          Instantiates a new object rotate translate.
 
Method Summary
 void addRotateTranslateScaleListener(ObjectRotateTranslate.ObjectRotateTranslateScaleListener l)
          Adds the rotate translate scale listener.
 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 getScaleMax()
          Gets the scale max.
 float getScaleMin()
          Gets the scale min.
 void removeRotateTranslateScaleListener(ObjectRotateTranslate.ObjectRotateTranslateScaleListener l)
          Removes the rotate translate scale listener.
 void setScaleLimits(float min, float max)
          Sets the scale limits.
 void setScaleMax(float scaleMax)
          Sets the scale max.
 void setScaleMin(float scaleMin)
          Sets the scale min.
 
Methods inherited from class synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement
getPickDataForCursorID, getPickResultFromCursorIndex, 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

ObjectRotateTranslate

public ObjectRotateTranslate(com.jme.scene.Spatial pickingAndTargetSpatial)
Instantiates a new object rotate translate.

Parameters:
pickingAndTargetSpatial - the picking and target spatial

ObjectRotateTranslate

public ObjectRotateTranslate(com.jme.scene.Spatial pickSpatial,
                             com.jme.scene.Spatial targetSpatial)
Instantiates a new object rotate translate.

Parameters:
pickSpatial - the pick spatial
targetSpatial - the target spatial

ObjectRotateTranslate

public ObjectRotateTranslate(com.jme.scene.Spatial pickSpatial,
                             com.jme.scene.Spatial targetSpatial,
                             com.jme.scene.Spatial remoteObject)
Instantiates a new object rotate translate.

Parameters:
pickSpatial - the pick spatial
targetSpatial - the target spatial
remoteObject - the remote object
Method Detail

addRotateTranslateScaleListener

public void addRotateTranslateScaleListener(ObjectRotateTranslate.ObjectRotateTranslateScaleListener l)
Adds the rotate translate scale listener.

Parameters:
l - the l

cursorChanged

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

Specified by:
cursorChanged in class MultiTouchElement
Parameters:
c - the c
event - the event

cursorClicked

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

Specified by:
cursorClicked in class MultiTouchElement
Parameters:
c - the c
event - the event

cursorPressed

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

Specified by:
cursorPressed in class MultiTouchElement
Parameters:
c - the c
event - the event

cursorReleased

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

Specified by:
cursorReleased in class MultiTouchElement
Parameters:
c - the c
event - the event

getScaleMax

public float getScaleMax()
Gets the scale max.

Returns:
the scale max

getScaleMin

public float getScaleMin()
Gets the scale min.

Returns:
the scale min

removeRotateTranslateScaleListener

public void removeRotateTranslateScaleListener(ObjectRotateTranslate.ObjectRotateTranslateScaleListener l)
Removes the rotate translate scale listener.

Parameters:
l - the l

setScaleLimits

public void setScaleLimits(float min,
                           float max)
Sets the scale limits.

Parameters:
min - the min
max - the max

setScaleMax

public void setScaleMax(float scaleMax)
Sets the scale max.

Parameters:
scaleMax - the new scale max

setScaleMin

public void setScaleMin(float scaleMin)
Sets the scale min.

Parameters:
scaleMin - the new scale min