edu.jhu.cs.cisst.vent.renderer.processing
Class ImageRenderer

java.lang.Object
  extended by edu.jhu.cs.cisst.vent.renderer.processing.RendererProcessing
      extended by edu.jhu.cs.cisst.vent.renderer.processing.RendererProcessing2D
          extended by edu.jhu.cs.cisst.vent.renderer.processing.ImageRenderer
All Implemented Interfaces:
VisualizationParameters, ParamViewObserver

public class ImageRenderer
extends RendererProcessing2D

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

image

protected ImageData image
The image.


images

protected PImage images
The images.


contrast

protected float contrast
The contrast.


brightness

protected float brightness
The brightness.


transparency

protected float transparency
The transparency.


visible

protected boolean visible
The visible.


rows

protected int rows
The cols.


cols

protected int cols
The cols.


applet

protected VisualizationProcessing applet
The applet.


contrastParam

protected ParamFloat contrastParam
The contrast param.


brightnessParam

protected ParamFloat brightnessParam
The brightness param.


visibleParam

protected ParamBoolean visibleParam
The visible param.


transparencyParam

protected ParamFloat transparencyParam
The transparency param.

Constructor Detail

ImageRenderer

public ImageRenderer(ImageData img,
                     VisualizationProcessing applet)
Instantiates a new image renderer.

Parameters:
img - the img
applet - the applet
Method Detail

setTransparency

public void setTransparency(float transparency)
Sets the transparency.

Parameters:
transparency - the new transparency

setVisible

public void setVisible(boolean visible)
Sets the visible.

Parameters:
visible - the new visible

clearCache

protected void clearCache()
Clear cache.


getImage

public PImage getImage()
Gets the image.

Returns:
the image

setup

public void setup()
Description copied from class: RendererProcessing
Setup.

Specified by:
setup in class RendererProcessing
See Also:
RendererProcessing.setup()

draw

public void draw()
Description copied from class: RendererProcessing
Draw.

Specified by:
draw in class RendererProcessing
See Also:
RendererProcessing.draw()

setContrast

public void setContrast(float contrast)
Sets the contrast.

Parameters:
contrast - the new contrast

setBrightness

public void setBrightness(float brightness)
Sets the brightness.

Parameters:
brightness - the new brightness

createVisualizationParameters

public void createVisualizationParameters(ParamCollection visualizationParameters)
Description copied from interface: VisualizationParameters
Creates the visualization parameters.

Parameters:
visualizationParameters - the visualization parameters
See Also:
VisualizationParameters.createVisualizationParameters(edu.jhu.ece.iacl.jist.pipeline.parameter.ParamCollection)

update

public void update(ParamModel model,
                   ParamInputView view)
Description copied from interface: ParamViewObserver
Indicate that an update has occurred to a particular parameter in a particular view pane.

Parameters:
model - parameter that was updated
view - input view
See Also:
ParamViewObserver.update(edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel, edu.jhu.ece.iacl.jist.pipeline.view.input.ParamInputView)

updateVisualizationParameters

public void updateVisualizationParameters()
Description copied from interface: VisualizationParameters
Update all visualization parameters.