org.jscience.medicine.volumetric
Class Renderer

java.lang.Object
  extended by org.jscience.medicine.volumetric.Renderer
Direct Known Subclasses:
Annotations, AxisRenderer, SlicePlaneRenderer

public abstract class Renderer
extends java.lang.Object

DOCUMENT ME!


Constructor Summary
Renderer(javax.media.j3d.View vw, Context ctx, Volume vol)
          Creates a new Renderer object.
 
Method Summary
abstract  void attach(javax.media.j3d.Group dynamicGroup, javax.media.j3d.Group staticGroup)
          Attach the branchgroups for this renderer to the display
abstract  double calcRenderSize(ScreenSizeCalculator screenSize, javax.media.j3d.Canvas3D canvas)
          Returns the number of pixels drawn in the current display
 void eyePtChanged()
          Called when the view position relative to the renderer changes
 void transformChanged(int type, javax.media.j3d.Transform3D trans)
          Called when the tranform for the volume has changed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Renderer

public Renderer(javax.media.j3d.View vw,
                Context ctx,
                Volume vol)
Creates a new Renderer object.

Parameters:
vw - DOCUMENT ME!
ctx - DOCUMENT ME!
vol - DOCUMENT ME!
Method Detail

attach

public abstract void attach(javax.media.j3d.Group dynamicGroup,
                            javax.media.j3d.Group staticGroup)
Attach the branchgroups for this renderer to the display


calcRenderSize

public abstract double calcRenderSize(ScreenSizeCalculator screenSize,
                                      javax.media.j3d.Canvas3D canvas)
Returns the number of pixels drawn in the current display


transformChanged

public void transformChanged(int type,
                             javax.media.j3d.Transform3D trans)
Called when the tranform for the volume has changed


eyePtChanged

public void eyePtChanged()
Called when the view position relative to the renderer changes