synergynetframework.jme.cursorsystem.elements.threed
Class ControlPointRotateTranslateScale

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.ThreeDMultiTouchElement
          extended by synergynetframework.jme.cursorsystem.elements.threed.ControlPointRotateTranslateScale

public class ControlPointRotateTranslateScale
extends ThreeDMultiTouchElement

The Class ControlPointRotateTranslateScale.


Nested Class Summary
static interface ControlPointRotateTranslateScale.RotateTranslateScaleListener
          The listener interface for receiving rotateTranslateScale events.
 
Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
ControlPointRotateTranslateScale(com.jme.scene.Spatial pickingAndTargetSpatial)
          Instantiates a new control point rotate translate scale.
ControlPointRotateTranslateScale(com.jme.scene.Spatial pickSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new control point rotate translate scale.
 
Method Summary
 void addRotateTranslateScaleListener(ControlPointRotateTranslateScale.RotateTranslateScaleListener 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(ControlPointRotateTranslateScale.RotateTranslateScaleListener 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

ControlPointRotateTranslateScale

public ControlPointRotateTranslateScale(com.jme.scene.Spatial pickingAndTargetSpatial)
Instantiates a new control point rotate translate scale.

Parameters:
pickingAndTargetSpatial - the picking and target spatial

ControlPointRotateTranslateScale

public ControlPointRotateTranslateScale(com.jme.scene.Spatial pickSpatial,
                                        com.jme.scene.Spatial targetSpatial)
Instantiates a new control point rotate translate scale.

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

addRotateTranslateScaleListener

public void addRotateTranslateScaleListener(ControlPointRotateTranslateScale.RotateTranslateScaleListener 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(ControlPointRotateTranslateScale.RotateTranslateScaleListener 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