com.yobotics.simulationconstructionset.util.perturbance
Class ApplyPerturbanceViaMouseListener

java.lang.Object
  extended by com.yobotics.simulationconstructionset.util.perturbance.ApplyPerturbanceViaMouseListener
All Implemented Interfaces:
RobotControlElement, RobotController, SelectedListener

public class ApplyPerturbanceViaMouseListener
extends java.lang.Object
implements RobotController, SelectedListener


Constructor Summary
ApplyPerturbanceViaMouseListener(Robot launchedBallsRobot, YoFramePoint ballTarget, YoFrameVector ballTargetVelocity, DirectedPerturbance directedPerturbance, int numberOfBallsAvailable)
           
 
Method Summary
 void doControl()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 YoVariableRegistry getYoVariableRegistry()
           
 void handleClick(javax.vecmath.Point3d intersectionPosition, javax.vecmath.Point3d cameraPosition)
           
 void initialize()
           
 void selected(Graphics3DNode graphics3dNode, ModifierKeyInterface modifierKeyHolder, javax.vecmath.Point3d location, javax.vecmath.Point3d cameraLocation, javax.vecmath.Quat4d cameraRotation)
          This function is called when a point on the screen is selected while holding the modifier key defined with getModifierKey()
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplyPerturbanceViaMouseListener

public ApplyPerturbanceViaMouseListener(Robot launchedBallsRobot,
                                        YoFramePoint ballTarget,
                                        YoFrameVector ballTargetVelocity,
                                        DirectedPerturbance directedPerturbance,
                                        int numberOfBallsAvailable)
Method Detail

doControl

public void doControl()
Specified by:
doControl in interface RobotController

handleClick

public void handleClick(javax.vecmath.Point3d intersectionPosition,
                        javax.vecmath.Point3d cameraPosition)

selected

public void selected(Graphics3DNode graphics3dNode,
                     ModifierKeyInterface modifierKeyHolder,
                     javax.vecmath.Point3d location,
                     javax.vecmath.Point3d cameraLocation,
                     javax.vecmath.Quat4d cameraRotation)
Description copied from interface: SelectedListener
This function is called when a point on the screen is selected while holding the modifier key defined with getModifierKey()

Specified by:
selected in interface SelectedListener
Parameters:
graphics3dNode - The node that was selected, null if none selected
location - location of the selected point
cameraLocation - camera position
cameraRotation - camera view direction

getYoVariableRegistry

public YoVariableRegistry getYoVariableRegistry()
Specified by:
getYoVariableRegistry in interface RobotControlElement

getName

public java.lang.String getName()
Specified by:
getName in interface RobotControlElement

initialize

public void initialize()
Specified by:
initialize in interface RobotControlElement

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface RobotControlElement