Class VJRenderViewSingle

All Implemented Interfaces:

public class VJRenderViewSingle
extends VJRenderView

VJRenderView class implements a shell for viewing the one or more rendering of a volume with a given renderer. It keeps the state of the current rendering view. It also serves as an interface to VJUserInterface and ImageJ. It manages the transformation matrix and provides entrypoints for it. This class can be subclassed to generate single, stereo or cine rendering views. These subclasses of VJRenderView have to implement the method run(), which does nothin g in the base class. Copyright (c) 2001-2003, Michael Abramoff. All rights reserved.

Fields inherited from class VolumeJ.VJRenderView
description, m, message, mLight, renderer, rotx, roty, rotz, running, scale
Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
Constructor Summary
VJRenderViewSingle(VJRenderer renderer, double scale, double rotx, double roty, double rotz, java.lang.String message)
          Instantiates a new rendering shell.
Method Summary
 void run()
          The top level rendering thread handler.
Methods inherited from class VolumeJ.VJRenderView
center, computeTransformationMatrix, kill, memoryInUse, renderToImageProcessor, renderToPixelArray, report, toString
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public VJRenderViewSingle(VJRenderer renderer,
                          double scale,
                          double rotx,
                          double roty,
                          double rotz,
                          java.lang.String message)
Instantiates a new rendering shell. The renderer is set. The transformation matrix is created to the correct rotation and scaling, and saved in the renderer. A default viewport is created (just width and height and offsets parameter) The volume is centered at the center of the viewport.
renderer - a VJRenderer
scale - the amount by which to scale the volume
rotx, - roty, rotz the amount by which to rotate the volume in that order.
message - a useful message to identify the characteristics of this rendering.
Method Detail


public void run()
The top level rendering thread handler. This method manages the VJRenderer instance.
run in class VJRenderView