com.yobotics.simulationconstructionset.util.perturbance
Class ApplyPerturbanceViaMouseListener
java.lang.Object
com.yobotics.simulationconstructionset.util.perturbance.ApplyPerturbanceViaMouseListener
- All Implemented Interfaces:
- RobotControlElement, RobotController, SelectedListener
public class ApplyPerturbanceViaMouseListener
- extends java.lang.Object
- implements RobotController, SelectedListener
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplyPerturbanceViaMouseListener
public ApplyPerturbanceViaMouseListener(Robot launchedBallsRobot,
YoFramePoint ballTarget,
YoFrameVector ballTargetVelocity,
DirectedPerturbance directedPerturbance,
int numberOfBallsAvailable)
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 selectedlocation
- location of the selected pointcameraLocation
- camera positioncameraRotation
- 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