32 |
import org.nongnu.libvob.impl.DefaultVobMatcher; |
import org.nongnu.libvob.impl.DefaultVobMatcher; |
33 |
import org.nongnu.libvob.buoy.*; |
import org.nongnu.libvob.buoy.*; |
34 |
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
35 |
/** A BuoyViewMainNode showing a 2D plane rendered through |
/** A BuoyViewMainNode showing a 2D plane rendered through |
36 |
* a View2D. This class implements the keyboard and mouse |
* a View2D. This class implements the keyboard and mouse |
37 |
* command for moving on the spatial plane. |
* command for moving on the spatial plane. |
207 |
return false; |
return false; |
208 |
} |
} |
209 |
|
|
210 |
public boolean mouseClickHit(MouseEvent e, VobScene oldVobScene, float[] zout) { |
public boolean mouseClickHit(VobMouseEvent e, VobScene oldVobScene, float[] zout) { |
211 |
float[] pt = new float[] { e.getX(), e.getY(), 0 }; |
float[] pt = new float[] { e.getX(), e.getY(), 0 }; |
212 |
float[] sq = new float[2]; |
float[] sq = new float[2]; |
213 |
oldVobScene.coords.inverseTransformPoints3( |
oldVobScene.coords.inverseTransformPoints3( |
261 |
focus.setZoom(zoom); |
focus.setZoom(zoom); |
262 |
} |
} |
263 |
|
|
264 |
public boolean mouse(MouseEvent e, VobScene oldVobScene) { |
public boolean mouse(VobMouseEvent e, VobScene oldVobScene) { |
265 |
return controller.handleEvent(this, e, oldVobScene); |
return controller.handleEvent(this, e, oldVobScene); |
266 |
} |
} |
267 |
|
|