|
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.VJRenderer | +--VolumeJ.VJRender
VJRender class. This subclass of VJRenderer implements the standard classical renderer,
and implements polymorphic object-ordered volume rendering.
It implements Phong type gradient interpolation (i.e. the gradients are interpolated at the surface), which is superior
over Gouraud shading and does'nt make much difference in speed.
Note that the of shading can be anything including Phong shading.
Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
Fields inherited from class VolumeJ.VJRenderer |
classifier, COLORINT, cutout, depth, description, doDepthCueing, doPerspective, doPixeltracing, GRAYBYTE, height, interpolator, ioffset, joffset, koffset, m, message, mi, miLight, mLight, outputType, pixelms, pixels, running, sequenceNumber, shader, tracei, tracej, traceString, v, width |
Fields inherited from class java.lang.Thread |
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals |
Constructor Summary | |
VJRender(VJInterpolator interpolator,
VJShader shader,
VJClassifier classifier)
Create a new classic renderer with specified methods. |
Method Summary | |
protected void |
blendCompose(VJAlphaColor pixel,
VJValue value,
VJGradient g,
VJAlphaColor color,
VJShade shade)
Compose the classified voxel color into pixel. |
static java.lang.String |
desc()
|
void |
run()
Objectspace rendering method. |
Methods inherited from class VolumeJ.VJRenderer |
defaultViewport, getClassifier, getInterpolator, getPixels, getShader, getTimePerPixel, getTransformation, getViewport, getViewportHeight, getViewportWidth, getVolume, kill, minmax, newViewportBuffer, onTrace, setClassifier, setCutout, setDescription, setInterpolator, setMessage, setOutputColor, setOutputGrayscale, setPixel, setPixel, setSequenceNumber, setShader, setTransformation, setTransformation, setViewport, setVolume, trace, trace, traceWrite |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VJRender(VJInterpolator interpolator, VJShader shader, VJClassifier classifier) throws java.lang.Exception
interpolator
- the interpolator that will interpolate VJValues from the voluem to be rendered.shader
- the VJShader that will be used for shading.classifier
- the VJClassifier that will be used for classifying.java.lang.Exception
- if parameters not properly defined.Method Detail |
public void run()
run
in class VJRenderer
protected void blendCompose(VJAlphaColor pixel, VJValue value, VJGradient g, VJAlphaColor color, VJShade shade)
pixel
- contains the current compositevalue
- contains the current voxel (needed by some subclasses).gradient
- the interpolated gradient for shadingcolor
- contains the alpha value and color (grayscale or RGB) of the classified value.shade
- is the effect of shading.public static java.lang.String desc()
|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |