|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--VolumeJ.VJRenderView
VJRenderView class implements a shell for rendering one or more views of a volume with a given renderer and volume. 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.
Field Summary | |
protected java.lang.String |
description
|
protected VJMatrix |
m
State variables. |
protected java.lang.String |
message
|
protected VJMatrix |
mLight
State variables. |
protected VJRenderer |
renderer
The renderer |
protected float |
rotx
State variables. |
protected float |
roty
State variables. |
protected float |
rotz
State variables. |
protected boolean |
running
|
protected float |
scale
State variables. |
Fields inherited from class java.lang.Thread |
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals |
Constructor Summary | |
VJRenderView(VJRenderer renderer,
double scale,
double rotx,
double roty,
double rotz,
java.lang.String message)
Instantiates a new rendering shell. |
|
VJRenderView(VJRenderer renderer,
java.lang.String message)
Instantiates a new rendering shell. |
Method Summary | |
protected static void |
center(VJMatrix m,
Volume v)
Center m around 0,0,0 by translating to the center of the volume. |
protected void |
computeTransformationMatrix()
Fully calculate the transformation matrix for a view. |
void |
kill()
Stops the shell. |
protected long |
memoryInUse()
Compute memory usage for rendering. |
protected ij.process.ImageProcessor |
renderToImageProcessor()
Render in a separate thread and make an image processor out of the resulting image. |
protected java.lang.Object |
renderToPixelArray()
Render in a separate thread and return the pixels with the rendering. |
protected void |
report(long elapsedTime)
|
void |
run()
Overload to make functional. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected VJRenderer renderer
protected float rotx
protected float roty
protected float rotz
protected float scale
protected VJMatrix m
protected VJMatrix mLight
protected java.lang.String message
protected java.lang.String description
protected boolean running
Constructor Detail |
public VJRenderView(VJRenderer renderer, java.lang.String message)
renderer
- a VJRendererscale
- the amount by which to scale the volumemessage
- a useful message to identify the characteristics of this rendering.public VJRenderView(VJRenderer renderer, double scale, double rotx, double roty, double rotz, java.lang.String message)
renderer
- a VJRendererscale
- the amount by which to scale the volumerotx,
- 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 |
protected void computeTransformationMatrix()
public void run()
run
in class java.lang.Thread
protected ij.process.ImageProcessor renderToImageProcessor()
protected java.lang.Object renderToPixelArray()
public void kill()
protected static void center(VJMatrix m, Volume v)
m
- an transformation matrix converting object to viewspace coordinates.v
- the volume to be centered.protected void report(long elapsedTime)
protected long memoryInUse()
public java.lang.String toString()
toString
in class java.lang.Thread
|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |