synergynetframework.jme.cursorsystem.elements.twod
Class OrthoControlPointRotateTranslateScale

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
          extended by synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
Direct Known Subclasses:
IndependentChildOrthoCPRTS, KeyboardWrapper, OrthoControlPointRotateTranslateScaleFix, OrthoControlPointRotateTranslateScaleWithListener, PeriodBarControl, ScheduleBarControl, ScrollBarControl, SingleTouchRotateTranslate

public class OrthoControlPointRotateTranslateScale
extends TwoDMultiTouchElement

The Class OrthoControlPointRotateTranslateScale.

Author:
dcs0ah1, pwpp25, dcs2ima

Nested Class Summary
static interface OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
          The listener interface for receiving rotateTranslateScale events.
 
Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
OrthoControlPointRotateTranslateScale(com.jme.scene.Spatial pickingAndTargetSpatial)
          Instantiates a new ortho control point rotate translate scale.
OrthoControlPointRotateTranslateScale(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new ortho control point rotate translate scale.
 
Method Summary
 void addRotateTranslateScaleListener(OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener l)
          Adds the rotate translate scale listener.
 void allowMoreThanTwoToRotateAndScale(boolean b)
          Allow more than two to rotate and scale.
 void allowSingleTouchFreeMove(boolean b)
          Allow single touch free move.
 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(OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener l)
          Removes the rotate translate scale listener.
 void setRotateLimits(float min, float max)
          Sets the rotate limits.
 void setScaleLimits(float min, float max)
          Sets the scale limits.
 
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

OrthoControlPointRotateTranslateScale

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

Parameters:
pickingAndTargetSpatial - the picking and target spatial

OrthoControlPointRotateTranslateScale

public OrthoControlPointRotateTranslateScale(com.jme.scene.Spatial pickingSpatial,
                                             com.jme.scene.Spatial targetSpatial)
Instantiates a new ortho control point rotate translate scale.

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

addRotateTranslateScaleListener

public void addRotateTranslateScaleListener(OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener l)
Adds the rotate translate scale listener.

Parameters:
l - the l

allowMoreThanTwoToRotateAndScale

public void allowMoreThanTwoToRotateAndScale(boolean b)
Allow more than two to rotate and scale.

Parameters:
b - the b

allowSingleTouchFreeMove

public void allowSingleTouchFreeMove(boolean b)
Allow single touch free move.

Parameters:
b - the b

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(OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener l)
Removes the rotate translate scale listener.

Parameters:
l - the l

setRotateLimits

public void setRotateLimits(float min,
                            float max)
Sets the rotate limits.

Parameters:
min - the min
max - the max

setScaleLimits

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

Parameters:
min - the min
max - the max