org.xith3d.input
Class ObjectRotationInputHandler

java.lang.Object
  extended by org.jagatoo.input.handlers.InputHandler<ORIHInputAction>
      extended by org.xith3d.input.ObjectRotationInputHandler

public class ObjectRotationInputHandler
extends org.jagatoo.input.handlers.InputHandler<ORIHInputAction>

Rotates a Transformable around its center.


Field Summary
 
Fields inherited from class org.jagatoo.input.handlers.InputHandler
CONTROLLERS_SUSPENDED, FIRST_USER_SUSPEND_FLAG, KEYBOARD_SUSPENDED, MOUSE_BUTTONS_SUSPENDED, MOUSE_MOVEMENT_SUSPENDED, MOUSE_WHEEL_SUSPENDED, suspendMask
 
Constructor Summary
ObjectRotationInputHandler(Transformable transNode)
           
ObjectRotationInputHandler(Transformable transNode, float mouseXSpeed, float mouseYSpeed)
           
ObjectRotationInputHandler(Transformable transNode, float mouseXSpeed, float mouseYSpeed, View view)
           
ObjectRotationInputHandler(Transformable transNode, View view)
           
 
Method Summary
static ObjectRotationInputHandler createDefault(Transformable transNode)
           
static ObjectRotationInputHandler createDefault(Transformable transNode, float mouseXSpeed, float mouseYSpeed)
           
static ObjectRotationInputHandler createDefault(Transformable transNode, float mouseXSpeed, float mouseYSpeed, View view)
           
static ObjectRotationInputHandler createDefault(Transformable transNode, View view)
           
protected  ORIHInputStatesManager createInputStatesManager(org.jagatoo.input.managers.InputBindingsManager<ORIHInputAction> bindingsManager)
           
 ORIHInputBindingsManager getBindingsManager()
          
 float getDiscreteZoomStep()
           
 float getMouseSpeedX()
           
 float getMouseSpeedY()
           
 ORIHInputStatesManager getStatesManager()
          
 Transformable getTransformTarget()
           
 View getView()
           
 void setDiscreteZoomStep(float stepSize)
          Sets the stepsize of discrete zooming.
 void setInputSystem(org.jagatoo.input.InputSystem inputSystem)
          
 void setMouseSpeedX(float speedX)
          Sets the mouse movement speed for the x-axis.
 void setMouseSpeedY(float speedY)
          Sets the mouse movement speed for the y-axis.
 boolean setSuspendMask(int suspendMask)
          
 void setTransformTarget(Transformable trans)
           
 void setView(View view)
           
 void update(long nanoSeconds, float seconds, long nanoFrame, float frameSeconds)
          
 void updateFromTransformable()
           
 void updateTransformable()
           
 
Methods inherited from class org.jagatoo.input.handlers.InputHandler
areControllersSuspended, attachToSourceWindow, getAttachedSourceWindow, getInputSystem, getSuspendMask, isKeyboardSuspended, isMouseButtonsSuspended, isMouseMovementSuspended, isMouseSmoothingEnabled, isMouseSuspended, isMouseWheelSuspended, isSuspended, setControllersSuspended, setKeyboardSuspended, setMouseButtonsSuspended, setMouseMovementSuspended, setMouseSmoothingEnabled, setMouseSuspended, setMouseWheelSuspended, setSuspended, update, updateInputStates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectRotationInputHandler

public ObjectRotationInputHandler(Transformable transNode,
                                  float mouseXSpeed,
                                  float mouseYSpeed)

ObjectRotationInputHandler

public ObjectRotationInputHandler(Transformable transNode)

ObjectRotationInputHandler

public ObjectRotationInputHandler(Transformable transNode,
                                  float mouseXSpeed,
                                  float mouseYSpeed,
                                  View view)

ObjectRotationInputHandler

public ObjectRotationInputHandler(Transformable transNode,
                                  View view)
Method Detail

getBindingsManager

public final ORIHInputBindingsManager getBindingsManager()

Overrides:
getBindingsManager in class org.jagatoo.input.handlers.InputHandler<ORIHInputAction>

getStatesManager

public final ORIHInputStatesManager getStatesManager()

Overrides:
getStatesManager in class org.jagatoo.input.handlers.InputHandler<ORIHInputAction>

setMouseSpeedX

public void setMouseSpeedX(float speedX)
Sets the mouse movement speed for the x-axis.

Parameters:
speedX - the new speed for the x-axis

getMouseSpeedX

public final float getMouseSpeedX()
Returns:
the mouse movement speed for the x-axis

setMouseSpeedY

public void setMouseSpeedY(float speedY)
Sets the mouse movement speed for the y-axis.

Parameters:
speedY - the new speed for the y-axis

getMouseSpeedY

public final float getMouseSpeedY()
Returns:
the mouse movement speed for the y-axis

setDiscreteZoomStep

public void setDiscreteZoomStep(float stepSize)
Sets the stepsize of discrete zooming.

Parameters:
stepSize -

getDiscreteZoomStep

public final float getDiscreteZoomStep()
Returns:
the stepsize of discrete zooming.

setTransformTarget

public void setTransformTarget(Transformable trans)

getTransformTarget

public Transformable getTransformTarget()

setView

public void setView(View view)

getView

public final View getView()

updateFromTransformable

public void updateFromTransformable()

updateTransformable

public void updateTransformable()

update

public void update(long nanoSeconds,
                   float seconds,
                   long nanoFrame,
                   float frameSeconds)
            throws org.jagatoo.input.InputSystemException

Specified by:
update in class org.jagatoo.input.handlers.InputHandler<ORIHInputAction>
Throws:
org.jagatoo.input.InputSystemException

setSuspendMask

public boolean setSuspendMask(int suspendMask)

Overrides:
setSuspendMask in class org.jagatoo.input.handlers.InputHandler<ORIHInputAction>

setInputSystem

public void setInputSystem(org.jagatoo.input.InputSystem inputSystem)

Overrides:
setInputSystem in class org.jagatoo.input.handlers.InputHandler<ORIHInputAction>

createInputStatesManager

protected ORIHInputStatesManager createInputStatesManager(org.jagatoo.input.managers.InputBindingsManager<ORIHInputAction> bindingsManager)
Overrides:
createInputStatesManager in class org.jagatoo.input.handlers.InputHandler<ORIHInputAction>

createDefault

public static ObjectRotationInputHandler createDefault(Transformable transNode,
                                                       float mouseXSpeed,
                                                       float mouseYSpeed)

createDefault

public static ObjectRotationInputHandler createDefault(Transformable transNode)

createDefault

public static ObjectRotationInputHandler createDefault(Transformable transNode,
                                                       float mouseXSpeed,
                                                       float mouseYSpeed,
                                                       View view)

createDefault

public static ObjectRotationInputHandler createDefault(Transformable transNode,
                                                       View view)