public class InteractiveTF1D extends HistogramDrawing implements usf.saav.common.mvc.ControllerComponent, usf.saav.common.mvc.ViewComponent, TransferFunction1D
usf.saav.common.mvc.ControllerComponent.Default, usf.saav.common.mvc.ControllerComponent.Subcontroller
usf.saav.common.mvc.ViewComponent.Default, usf.saav.common.mvc.ViewComponent.Subview
TransferFunction1D.Default
Constructor and Description |
---|
InteractiveTF1D()
Instantiates a new interactive TF 1 D.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(usf.saav.common.mvc.swing.TGraphics g) |
void |
drawLegend(usf.saav.common.mvc.swing.TGraphics g) |
usf.saav.common.types.Float4 |
get(int idx) |
float |
getOffset() |
float |
getScale() |
boolean |
keyPressed(char key) |
boolean |
mouseDoubleClick(int mouseX,
int mouseY) |
boolean |
mouseDragged(int mouseX,
int mouseY) |
boolean |
mouseMoved(int mouseX,
int mouseY) |
boolean |
mousePressed(int mouseX,
int mouseY) |
boolean |
mouseReleased() |
boolean |
mouseWheel(int mouseX,
int mouseY,
float count) |
int |
size() |
void |
update() |
setData, setData, setData, setData, setLinearScale, setLogScale
getHeight, getPosition, getU0, getV0, getWidth, inRange, setPosition, setPosition
disable, enable, isEnabled, setEnabled, setup
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public int size()
size
in interface TransferFunction1D
public usf.saav.common.types.Float4 get(int idx)
get
in interface TransferFunction1D
public float getOffset()
getOffset
in interface TransferFunction1D
public float getScale()
getScale
in interface TransferFunction1D
public 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
draw
in class HistogramDrawing
public void drawLegend(usf.saav.common.mvc.swing.TGraphics g)
drawLegend
in interface usf.saav.common.mvc.ViewComponent
drawLegend
in class usf.saav.common.mvc.ViewComponent.Default
public boolean mouseDragged(int mouseX, int mouseY)
mouseDragged
in interface usf.saav.common.mvc.ControllerComponent
public boolean mousePressed(int mouseX, int mouseY)
mousePressed
in interface usf.saav.common.mvc.ControllerComponent
public boolean mouseDoubleClick(int mouseX, int mouseY)
mouseDoubleClick
in interface usf.saav.common.mvc.ControllerComponent
public boolean mouseReleased()
mouseReleased
in interface usf.saav.common.mvc.ControllerComponent
public boolean keyPressed(char key)
keyPressed
in interface usf.saav.common.mvc.ControllerComponent
public boolean mouseMoved(int mouseX, int mouseY)
mouseMoved
in interface usf.saav.common.mvc.ControllerComponent
public boolean mouseWheel(int mouseX, int mouseY, float count)
mouseWheel
in interface usf.saav.common.mvc.ControllerComponent