public void selected(
     edu.cmu.cs.stage3.alice.core.Transformable pickedTransformable,
     edu.cmu.cs.stage3.alice.scenegraph.renderer.PickInfo pickInfo,
     Point p) {
   camera = (edu.cmu.cs.stage3.alice.core.Camera) pickInfo.getSource().getBonus();
   pressPoint.setLocation(p);
 }
Beispiel #2
0
 public void mousePressed(
     java.awt.event.MouseEvent ev,
     edu.cmu.cs.stage3.alice.core.Transformable pickedTransformable,
     edu.cmu.cs.stage3.alice.scenegraph.renderer.PickInfo pickInfo) {
   camera = (edu.cmu.cs.stage3.alice.core.Camera) pickInfo.getSource().getBonus();
   pressPoint.setLocation(ev.getPoint());
 }
 public void selected(
     edu.cmu.cs.stage3.alice.core.Transformable pickedTransformable,
     edu.cmu.cs.stage3.alice.scenegraph.renderer.PickInfo pickInfo,
     Point p) {
   this.pickedTransformable = pickedTransformable;
   if (pickedTransformable != null) {
     camera = (edu.cmu.cs.stage3.alice.core.Camera) pickInfo.getSource().getBonus();
     world =
         (edu.cmu.cs.stage3.alice.core.World) camera.getSceneGraphCamera().getRoot().getBonus();
     oldTransformation = pickedTransformable.getLocalTransformation();
     helper.vehicle.set(world);
     identity.vehicle.set(world);
   }
 }