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

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.VolumeSliceRenderer
All Implemented Interfaces:
VisualizationParameters, ParamViewObserver
Direct Known Subclasses:
VolumeIsoContourRenderer

public class VolumeSliceRenderer
extends RendererProcessing2D

The Class VolumeSliceRenderer renders volume by slice.


Field Summary
protected  VisualizationProcessing applet
          The applet.
protected  float brightness
          The brightness.
protected  ParamFloat brightnessParam
          The brightness param.
protected  int cols
          The slices.
protected  int component
          The component.
protected  ParamInteger componentParam
          The slice param.
protected  int components
          The slices.
protected  float contrast
          The contrast.
protected  ParamFloat contrastParam
          The contrast param.
protected  ImageData image
          The image.
protected  PImage[] images
          The images.
protected  double max
           
protected  double min
           
protected  int rows
          The slices.
protected  boolean showSliceNumber
          The show slice number.
protected  ParamBoolean showSliceNumberParam
          The show slice number param.
protected  int slice
          The slice.
protected  ParamInteger sliceParam
          The slice param.
protected  int slices
          The slices.
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
VolumeSliceRenderer(ImageData img, VisualizationProcessing applet)
          Instantiates a new volume slice renderer.
 
Method Summary
protected  void clearCache()
          Clear cache.
 void createVisualizationParameters(ParamCollection visualizationParameters)
          Creates the visualization parameters.
 void draw()
          Draw.
 PImage getImage(int index)
          Gets the image.
 ParamInteger getSliceParameter()
           
 void setBrightness(float brightness)
          Sets the brightness.
 void setComponent(int component)
          Sets the component.
 void setContrast(float contrast)
          Sets the contrast.
 void setImages(PImage[] images)
          Sets the images.
 void setSlice(int slice)
          Sets the slice.
 void setTransparency(float transparency)
          Sets the transparency.
 void setup()
          Setup.
 void setVisible(boolean visible)
          Sets the visible.
 void update(ParamModel model, ParamInputView view)
          Update.
 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.


showSliceNumber

protected boolean showSliceNumber
The show slice number.


showSliceNumberParam

protected ParamBoolean showSliceNumberParam
The show slice number param.


min

protected double min

max

protected double max

visible

protected boolean visible
The visible.


slice

protected int slice
The slice.


component

protected int component
The component.


rows

protected int rows
The slices.


cols

protected int cols
The slices.


slices

protected int slices
The slices.


components

protected int components
The slices.


applet

protected VisualizationProcessing applet
The applet.


sliceParam

protected ParamInteger sliceParam
The slice param.


componentParam

protected ParamInteger componentParam
The slice param.


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

VolumeSliceRenderer

public VolumeSliceRenderer(ImageData img,
                           VisualizationProcessing applet)
Instantiates a new volume slice 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

getSliceParameter

public ParamInteger getSliceParameter()

setComponent

public void setComponent(int component)
Sets the component.

Parameters:
component - the new component

clearCache

protected void clearCache()
Clear cache.


getImage

public PImage getImage(int index)
Gets the image.

Parameters:
index - the index
Returns:
the image

setup

public void setup()
Setup.

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

draw

public void draw()
Draw.

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

setImages

public void setImages(PImage[] images)
Sets the images.

Parameters:
images - the new images

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

setSlice

public void setSlice(int slice)
Sets the slice.

Parameters:
slice - the new slice

createVisualizationParameters

public void createVisualizationParameters(ParamCollection 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)
Update.

Parameters:
model - the model
view - the 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.