j3d.org Code

org.j3d.device.output.elumens
Interface MouseCoordinateConverter

All Known Implementing Classes:
ElumensCanvas3D

public interface MouseCoordinateConverter

An interface for servicing coordinate conversion. The Spiclops library provides a method to unwarp mouse coordinates. This interface handles that data sleping. After registering interest the class can call warpMouseCoordinate when its update method is called.

Version:
$Revision: 1.1 $
Author:
Alan Hudson

Method Summary
 void registerInterest(MouseCoordinateSource msc)
          Register interest in having a coordinate converted
 void warpMouseCoordinate(double[] coords)
          Convert a set of coordinates.
 

Method Detail

registerInterest

public void registerInterest(MouseCoordinateSource msc)
Register interest in having a coordinate converted

Parameters:
msc - The source of the event.

warpMouseCoordinate

public void warpMouseCoordinate(double[] coords)
Convert a set of coordinates. Only call when the MouseCoordinateSource.update method is called.

Parameters:
coords - The coordinates to convert.

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org