org.jscience.medicine.volumetric
Class LocalToWindow

java.lang.Object
  extended by org.jscience.medicine.volumetric.LocalToWindow

public class LocalToWindow
extends java.lang.Object

DOCUMENT ME!


Constructor Summary
LocalToWindow()
          Creates a LocalToWindow object with no associated node or canvas.
LocalToWindow(javax.media.j3d.Node node, javax.media.j3d.Canvas3D canvas)
          Called with the Node which specifies the local coordinates for the points to be transformed and the Canvas3D where the points are displayed
 
Method Summary
 void transformPt(javax.vecmath.Point3d localPt, java.awt.Point windowPt)
          Transform the point from local coords to window coords
 void transformPt(javax.vecmath.Point3d localPt, javax.vecmath.Point2d windowPt)
          Transform the point from local coords to window coords
 void update()
          Either create LocalToWindow() just before transforming points or call this method to ensure that the transforms are up to date.
 void update(javax.media.j3d.Node node, javax.media.j3d.Canvas3D canvas)
          Set the node and canvas and call update()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalToWindow

public LocalToWindow()
Creates a LocalToWindow object with no associated node or canvas. The node and canvas must be set before transforming points


LocalToWindow

public LocalToWindow(javax.media.j3d.Node node,
                     javax.media.j3d.Canvas3D canvas)
Called with the Node which specifies the local coordinates for the points to be transformed and the Canvas3D where the points are displayed

Method Detail

update

public void update()
Either create LocalToWindow() just before transforming points or call this method to ensure that the transforms are up to date. Note: if you are transforming several points, you only need to call this method once.


update

public void update(javax.media.j3d.Node node,
                   javax.media.j3d.Canvas3D canvas)
Set the node and canvas and call update()

Parameters:
node - DOCUMENT ME!
canvas - DOCUMENT ME!

transformPt

public void transformPt(javax.vecmath.Point3d localPt,
                        javax.vecmath.Point2d windowPt)
Transform the point from local coords to window coords

Parameters:
localPt - DOCUMENT ME!
windowPt - DOCUMENT ME!

transformPt

public void transformPt(javax.vecmath.Point3d localPt,
                        java.awt.Point windowPt)
Transform the point from local coords to window coords

Parameters:
localPt - DOCUMENT ME!
windowPt - DOCUMENT ME!