apps.threedmanipulation.gestures
Class MonitorCameraRotateTranslateZoom

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

public class MonitorCameraRotateTranslateZoom
extends ThreeDMultiTouchElement

The Class MonitorCameraRotateTranslateZoom.


Field Summary
static java.lang.String MODE_CAMERAMANIPULABLE
          The mode cameramanipulable.
static java.lang.String MODE_REMOTECONTROL
          The mode remotecontrol.
static java.lang.String MODE_VIEWROTATABLE
          The mode viewrotatable.
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
MonitorCameraRotateTranslateZoom(com.jme.scene.Spatial pickingAndTargetSpatial)
          Instantiates a new monitor camera rotate translate zoom.
MonitorCameraRotateTranslateZoom(com.jme.scene.Spatial pickSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new monitor camera rotate translate zoom.
MonitorCameraRotateTranslateZoom(com.jme.scene.Spatial pickSpatial, com.jme.scene.Spatial targetSpatial, OjbectManipulation telescopeManipulateOjbect, java.util.List<com.jme.scene.Spatial> manipulatableOjbects)
          Instantiates a new monitor camera rotate translate zoom.
 
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.
 float getScaleMax()
          Gets the scale max.
 float getScaleMin()
          Gets the scale min.
 void setMode(java.lang.String mode)
          Sets the mode.
 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
 

Field Detail

MODE_CAMERAMANIPULABLE

public static java.lang.String MODE_CAMERAMANIPULABLE
The mode cameramanipulable.


MODE_REMOTECONTROL

public static java.lang.String MODE_REMOTECONTROL
The mode remotecontrol.


MODE_VIEWROTATABLE

public static java.lang.String MODE_VIEWROTATABLE
The mode viewrotatable.

Constructor Detail

MonitorCameraRotateTranslateZoom

public MonitorCameraRotateTranslateZoom(com.jme.scene.Spatial pickingAndTargetSpatial)
Instantiates a new monitor camera rotate translate zoom.

Parameters:
pickingAndTargetSpatial - the picking and target spatial

MonitorCameraRotateTranslateZoom

public MonitorCameraRotateTranslateZoom(com.jme.scene.Spatial pickSpatial,
                                        com.jme.scene.Spatial targetSpatial)
Instantiates a new monitor camera rotate translate zoom.

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

MonitorCameraRotateTranslateZoom

public MonitorCameraRotateTranslateZoom(com.jme.scene.Spatial pickSpatial,
                                        com.jme.scene.Spatial targetSpatial,
                                        OjbectManipulation telescopeManipulateOjbect,
                                        java.util.List<com.jme.scene.Spatial> manipulatableOjbects)
Instantiates a new monitor camera rotate translate zoom.

Parameters:
pickSpatial - the pick spatial
targetSpatial - the target spatial
telescopeManipulateOjbect - the telescope manipulate ojbect
manipulatableOjbects - the manipulatable ojbects
Method Detail

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

setMode

public void setMode(java.lang.String mode)
Sets the mode.

Parameters:
mode - the new mode

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