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, mouseWheel
getHeight, getPosition, getU0, getV0, getWidth, inRange, setPosition, setPosition
disable, enable, isEnabled, setEnabled, setup
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mouseDoubleClick, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheel
public 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.BasicComponent
update
in class usf.saav.common.mvc.BasicComponent.Default
public void draw(usf.saav.common.mvc.swing.TGraphics g)
draw
in interface usf.saav.common.mvc.ViewComponent
public void drawLegend(usf.saav.common.mvc.swing.TGraphics g)
drawLegend
in interface usf.saav.common.mvc.ViewComponent
public boolean keyPressed(char key)
keyPressed
in interface usf.saav.common.mvc.ControllerComponent
keyPressed
in class usf.saav.common.mvc.ControllerComponent.Default