public class VolumeRenderer
extends usf.saav.common.mvc.ControllerComponent.Default
implements usf.saav.common.mvc.ViewComponent, usf.saav.common.mvc.ControllerComponent
| Constructor and Description |
|---|
VolumeRenderer(usf.saav.common.mvc.swing.TGraphics papplet,
usf.saav.common.jocl.joclController jocl,
int res)
Instantiates a new volume renderer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(usf.saav.common.mvc.swing.TGraphics g) |
void |
drawLegend(usf.saav.common.mvc.swing.TGraphics g) |
boolean |
keyPressed(char key) |
void |
setTransferFunction(TransferFunction1D tf)
Sets the transfer function.
|
void |
setVolume(ScalarField3D sf)
Sets the volume.
|
void |
update() |
mouseDoubleClick, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelgetHeight, getPosition, getU0, getV0, getWidth, inRange, setPosition, setPositiondisable, enable, isEnabled, setEnabled, setupequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmouseDoubleClick, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelpublic VolumeRenderer(usf.saav.common.mvc.swing.TGraphics papplet,
usf.saav.common.jocl.joclController jocl,
int res)
papplet - the pappletjocl - the joclres - the respublic void setTransferFunction(TransferFunction1D tf)
tf - the new transfer functionpublic void setVolume(ScalarField3D sf)
sf - the new volumepublic void update()
update in interface usf.saav.common.mvc.BasicComponentupdate in class usf.saav.common.mvc.BasicComponent.Defaultpublic void draw(usf.saav.common.mvc.swing.TGraphics g)
draw in interface usf.saav.common.mvc.ViewComponentpublic void drawLegend(usf.saav.common.mvc.swing.TGraphics g)
drawLegend in interface usf.saav.common.mvc.ViewComponentpublic boolean keyPressed(char key)
keyPressed in interface usf.saav.common.mvc.ControllerComponentkeyPressed in class usf.saav.common.mvc.ControllerComponent.Default