apps.threedmanipulationexperiment.tools
Class TouchPad

java.lang.Object
  extended by apps.threedmanipulationexperiment.tools.TouchPad

public class TouchPad
extends java.lang.Object

The Class TouchPad.


Constructor Summary
TouchPad(java.lang.String name, ContentSystem contentSystem, com.jme.scene.Node worldNode, com.jme.scene.Node orthoNode, float monitorWidth, com.jme.scene.Spatial manipulatabledOjbect, com.jme.math.Vector2f initMonitorPosition)
          Instantiates a new touch pad.
 
Method Summary
 void cleanup()
          Cleanup.
 com.jme.scene.Spatial getTouchPad()
          Gets the touch pad.
 void resetTouchNumber()
          Reset touch number.
 void setLocation(com.jme.math.Vector2f location)
          Sets the location.
 void setRotationSpeed(int rotationSpeed)
          Sets the rotation speed.
 void updateLine()
          Update line.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TouchPad

public TouchPad(java.lang.String name,
                ContentSystem contentSystem,
                com.jme.scene.Node worldNode,
                com.jme.scene.Node orthoNode,
                float monitorWidth,
                com.jme.scene.Spatial manipulatabledOjbect,
                com.jme.math.Vector2f initMonitorPosition)
Instantiates a new touch pad.

Parameters:
name - the name
contentSystem - the content system
worldNode - the world node
orthoNode - the ortho node
monitorWidth - the monitor width
manipulatabledOjbect - the manipulatabled ojbect
initMonitorPosition - the init monitor position
Method Detail

cleanup

public void cleanup()
Cleanup.


getTouchPad

public com.jme.scene.Spatial getTouchPad()
Gets the touch pad.

Returns:
the touch pad

resetTouchNumber

public void resetTouchNumber()
Reset touch number.


setLocation

public void setLocation(com.jme.math.Vector2f location)
Sets the location.

Parameters:
location - the new location

setRotationSpeed

public void setRotationSpeed(int rotationSpeed)
Sets the rotation speed.

Parameters:
rotationSpeed - the new rotation speed

updateLine

public void updateLine()
Update line.