apps.threedmanipulation.gestures
Class ControlPanelMoveRotateScale

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
          extended by apps.threedmanipulation.gestures.ControlPanelMoveRotateScale

public class ControlPanelMoveRotateScale
extends TwoDMultiTouchElement

The Class ControlPanelMoveRotateScale.

Author:
dcs0ah1, pwpp25, dcs2ima

Nested Class Summary
static interface ControlPanelMoveRotateScale.RotateTranslateScaleListener
          The listener interface for receiving rotateTranslateScale events.
 
Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
ControlPanelMoveRotateScale(com.jme.scene.Spatial pickingAndTargetSpatial)
          Instantiates a new control panel move rotate scale.
ControlPanelMoveRotateScale(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new control panel move rotate scale.
ControlPanelMoveRotateScale(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial, com.jme.scene.CameraNode camNode, OjbectManipulation objectManipulationGesture, java.util.List<com.jme.scene.Spatial> manipulatableOjbects)
          Instantiates a new control panel move rotate scale.
 
Method Summary
 void addRotateTranslateScaleListener(ControlPanelMoveRotateScale.RotateTranslateScaleListener l)
          Adds the rotate translate scale listener.
 void addToolListener(ToolListener l)
          Adds the tool listener.
 void allowMoreThanTwoToRotateAndScale(boolean b)
          Allow more than two to rotate and scale.
 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.
 void removeRotateTranslateScaleListener(ControlPanelMoveRotateScale.RotateTranslateScaleListener l)
          Removes the rotate translate scale listener.
 void removeToolListener(ToolListener l)
          Removes the tool 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

ControlPanelMoveRotateScale

public ControlPanelMoveRotateScale(com.jme.scene.Spatial pickingAndTargetSpatial)
Instantiates a new control panel move rotate scale.

Parameters:
pickingAndTargetSpatial - the picking and target spatial

ControlPanelMoveRotateScale

public ControlPanelMoveRotateScale(com.jme.scene.Spatial pickingSpatial,
                                   com.jme.scene.Spatial targetSpatial)
Instantiates a new control panel move rotate scale.

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

ControlPanelMoveRotateScale

public ControlPanelMoveRotateScale(com.jme.scene.Spatial pickingSpatial,
                                   com.jme.scene.Spatial targetSpatial,
                                   com.jme.scene.CameraNode camNode,
                                   OjbectManipulation objectManipulationGesture,
                                   java.util.List<com.jme.scene.Spatial> manipulatableOjbects)
Instantiates a new control panel move rotate scale.

Parameters:
pickingSpatial - the picking spatial
targetSpatial - the target spatial
camNode - the cam node
objectManipulationGesture - the object manipulation gesture
manipulatableOjbects - the manipulatable ojbects
Method Detail

addRotateTranslateScaleListener

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

Parameters:
l - the l

addToolListener

public void addToolListener(ToolListener l)
Adds the tool listener.

Parameters:
l - the l

allowMoreThanTwoToRotateAndScale

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

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

removeRotateTranslateScaleListener

public void removeRotateTranslateScaleListener(ControlPanelMoveRotateScale.RotateTranslateScaleListener l)
Removes the rotate translate scale listener.

Parameters:
l - the l

removeToolListener

public void removeToolListener(ToolListener l)
Removes the tool 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