apps.threedmanipulation.gestures
Class OjbectManipulationforCCTV

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

public class OjbectManipulationforCCTV
extends OjbectManipulation

The Class OjbectManipulationforCCTV.

Author:
dcs0ah1, pwpp25, dcs2ima

Nested Class Summary
static interface OjbectManipulationforCCTV.RotateTranslateScaleListener
          The listener interface for receiving rotateTranslateScale events.
 
Field Summary
static java.lang.String MODE_CAMERAMANIPULATION
          The mode cameramanipulation.
static java.lang.String MODE_OBJECTMANIPULATION
          The mode objectmanipulation.
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
OjbectManipulationforCCTV(com.jme.scene.Spatial pickingAndTargetSpatial, java.util.List<com.jme.scene.Spatial> manipulatableOjbects)
          Instantiates a new ojbect manipulationfor cctv.
OjbectManipulationforCCTV(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new ojbect manipulationfor cctv.
 
Method Summary
 void addRotateTranslateScaleListener(OjbectManipulationforCCTV.RotateTranslateScaleListener l)
           
 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.
 com.jme.scene.CameraNode getCamNode()
          Gets the cam node.
 com.jme.scene.Spatial getControlledSpatial()
          Gets the controlled spatial.
 float getScreenAngle()
          Gets the screen angle.
 void removeRotateTranslateScaleListener(OjbectManipulationforCCTV.RotateTranslateScaleListener l)
           
 void setCamNode(com.jme.scene.CameraNode camNode)
          Sets the cam node.
 void setControlledSpatial(com.jme.scene.Spatial controlledSpatial)
          Sets the controlled spatial.
 void setMode(java.lang.String mode)
          Sets the mode.
 void setRotateLimits(float min, float max)
          Sets the rotate limits.
 void setScaleLimits(float min, float max)
          Sets the scale limits.
 void setScreenAngle(float screenAngle)
          Sets the screen angle.
 
Methods inherited from class apps.threedmanipulation.gestures.OjbectManipulation
addRotateTranslateScaleListener, removeRotateTranslateScaleListener
 
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
 

Field Detail

MODE_CAMERAMANIPULATION

public static java.lang.String MODE_CAMERAMANIPULATION
The mode cameramanipulation.


MODE_OBJECTMANIPULATION

public static java.lang.String MODE_OBJECTMANIPULATION
The mode objectmanipulation.

Constructor Detail

OjbectManipulationforCCTV

public OjbectManipulationforCCTV(com.jme.scene.Spatial pickingAndTargetSpatial,
                                 java.util.List<com.jme.scene.Spatial> manipulatableOjbects)
Instantiates a new ojbect manipulationfor cctv.

Parameters:
pickingAndTargetSpatial - the picking and target spatial
manipulatableOjbects - the manipulatable ojbects

OjbectManipulationforCCTV

public OjbectManipulationforCCTV(com.jme.scene.Spatial pickingSpatial,
                                 com.jme.scene.Spatial targetSpatial)
Instantiates a new ojbect manipulationfor cctv.

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

addRotateTranslateScaleListener

public void addRotateTranslateScaleListener(OjbectManipulationforCCTV.RotateTranslateScaleListener l)

allowMoreThanTwoToRotateAndScale

public void allowMoreThanTwoToRotateAndScale(boolean b)
Description copied from class: OjbectManipulation
Allow more than two to rotate and scale.

Overrides:
allowMoreThanTwoToRotateAndScale in class OjbectManipulation
Parameters:
b - the b

cursorChanged

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

Overrides:
cursorChanged in class OjbectManipulation
Parameters:
c - the c
event - the event

cursorClicked

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

Overrides:
cursorClicked in class OjbectManipulation
Parameters:
c - the c
event - the event

cursorPressed

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

Overrides:
cursorPressed in class OjbectManipulation
Parameters:
c - the c
event - the event

cursorReleased

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

Overrides:
cursorReleased in class OjbectManipulation
Parameters:
c - the c
event - the event

getCamNode

public com.jme.scene.CameraNode getCamNode()
Description copied from class: OjbectManipulation
Gets the cam node.

Overrides:
getCamNode in class OjbectManipulation
Returns:
the cam node

getControlledSpatial

public com.jme.scene.Spatial getControlledSpatial()
Description copied from class: OjbectManipulation
Gets the controlled spatial.

Overrides:
getControlledSpatial in class OjbectManipulation
Returns:
the controlled spatial

getScreenAngle

public float getScreenAngle()
Description copied from class: OjbectManipulation
Gets the screen angle.

Overrides:
getScreenAngle in class OjbectManipulation
Returns:
the screen angle

removeRotateTranslateScaleListener

public void removeRotateTranslateScaleListener(OjbectManipulationforCCTV.RotateTranslateScaleListener l)

setCamNode

public void setCamNode(com.jme.scene.CameraNode camNode)
Description copied from class: OjbectManipulation
Sets the cam node.

Overrides:
setCamNode in class OjbectManipulation
Parameters:
camNode - the new cam node

setControlledSpatial

public void setControlledSpatial(com.jme.scene.Spatial controlledSpatial)
Description copied from class: OjbectManipulation
Sets the controlled spatial.

Overrides:
setControlledSpatial in class OjbectManipulation
Parameters:
controlledSpatial - the new controlled spatial

setMode

public void setMode(java.lang.String mode)
Description copied from class: OjbectManipulation
Sets the mode.

Overrides:
setMode in class OjbectManipulation
Parameters:
mode - the new mode

setRotateLimits

public void setRotateLimits(float min,
                            float max)
Description copied from class: OjbectManipulation
Sets the rotate limits.

Overrides:
setRotateLimits in class OjbectManipulation
Parameters:
min - the min
max - the max

setScaleLimits

public void setScaleLimits(float min,
                           float max)
Description copied from class: OjbectManipulation
Sets the scale limits.

Overrides:
setScaleLimits in class OjbectManipulation
Parameters:
min - the min
max - the max

setScreenAngle

public void setScreenAngle(float screenAngle)
Description copied from class: OjbectManipulation
Sets the screen angle.

Overrides:
setScreenAngle in class OjbectManipulation
Parameters:
screenAngle - the new screen angle