|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.cs.cisst.vent.renderer.processing.RendererProcessing edu.jhu.cs.cisst.vent.renderer.processing.RendererProcessing2D edu.jhu.cs.cisst.vent.renderer.processing.ImageRenderer
public class ImageRenderer
The Class ImageRenderer.
Field Summary | |
---|---|
protected VisualizationProcessing |
applet
The applet. |
protected float |
brightness
The brightness. |
protected ParamFloat |
brightnessParam
The brightness param. |
protected int |
cols
The cols. |
protected float |
contrast
The contrast. |
protected ParamFloat |
contrastParam
The contrast param. |
protected ImageData |
image
The image. |
protected PImage |
images
The images. |
protected int |
rows
The cols. |
protected float |
transparency
The transparency. |
protected ParamFloat |
transparencyParam
The transparency param. |
protected boolean |
visible
The visible. |
protected ParamBoolean |
visibleParam
The visible param. |
Fields inherited from class edu.jhu.cs.cisst.vent.renderer.processing.RendererProcessing2D |
---|
bounds |
Constructor Summary | |
---|---|
ImageRenderer(ImageData img,
VisualizationProcessing applet)
Instantiates a new image renderer. |
Method Summary | |
---|---|
protected void |
clearCache()
Clear cache. |
void |
createVisualizationParameters(ParamCollection visualizationParameters)
Creates the visualization parameters. |
void |
draw()
Draw. |
PImage |
getImage()
Gets the image. |
void |
setBrightness(float brightness)
Sets the brightness. |
void |
setContrast(float contrast)
Sets the contrast. |
void |
setTransparency(float transparency)
Sets the transparency. |
void |
setup()
Setup. |
void |
setVisible(boolean visible)
Sets the visible. |
void |
update(ParamModel model,
ParamInputView view)
Indicate that an update has occurred to a particular parameter in a particular view pane. |
void |
updateVisualizationParameters()
Update all visualization parameters. |
Methods inherited from class edu.jhu.cs.cisst.vent.renderer.processing.RendererProcessing2D |
---|
contains, getHeight, getPositionX, getPositionY, getWidth, setBounds |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ImageData image
protected PImage images
protected float contrast
protected float brightness
protected float transparency
protected boolean visible
protected int rows
protected int cols
protected VisualizationProcessing applet
protected ParamFloat contrastParam
protected ParamFloat brightnessParam
protected ParamBoolean visibleParam
protected ParamFloat transparencyParam
Constructor Detail |
---|
public ImageRenderer(ImageData img, VisualizationProcessing applet)
img
- the imgapplet
- the appletMethod Detail |
---|
public void setTransparency(float transparency)
transparency
- the new transparencypublic void setVisible(boolean visible)
visible
- the new visibleprotected void clearCache()
public PImage getImage()
public void setup()
RendererProcessing
setup
in class RendererProcessing
RendererProcessing.setup()
public void draw()
RendererProcessing
draw
in class RendererProcessing
RendererProcessing.draw()
public void setContrast(float contrast)
contrast
- the new contrastpublic void setBrightness(float brightness)
brightness
- the new brightnesspublic void createVisualizationParameters(ParamCollection visualizationParameters)
VisualizationParameters
visualizationParameters
- the visualization parametersVisualizationParameters.createVisualizationParameters(edu.jhu.ece.iacl.jist.pipeline.parameter.ParamCollection)
public void update(ParamModel model, ParamInputView view)
ParamViewObserver
model
- parameter that was updatedview
- input viewParamViewObserver.update(edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel,
edu.jhu.ece.iacl.jist.pipeline.view.input.ParamInputView)
public void updateVisualizationParameters()
VisualizationParameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |