|
|||||||||
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.VolumeSliceRenderer
public class VolumeSliceRenderer
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 |
---|
protected ImageData image
protected PImage[] images
protected float contrast
protected float brightness
protected float transparency
protected boolean showSliceNumber
protected ParamBoolean showSliceNumberParam
protected double min
protected double max
protected boolean visible
protected int slice
protected int component
protected int rows
protected int cols
protected int slices
protected int components
protected VisualizationProcessing applet
protected ParamInteger sliceParam
protected ParamInteger componentParam
protected ParamFloat contrastParam
protected ParamFloat brightnessParam
protected ParamBoolean visibleParam
protected ParamFloat transparencyParam
Constructor Detail |
---|
public VolumeSliceRenderer(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 visiblepublic ParamInteger getSliceParameter()
public void setComponent(int component)
component
- the new componentprotected void clearCache()
public PImage getImage(int index)
index
- the index
public void setup()
setup
in class RendererProcessing
RendererProcessing.setup()
public void draw()
draw
in class RendererProcessing
RendererProcessing.draw()
public void setImages(PImage[] images)
images
- the new imagespublic void setContrast(float contrast)
contrast
- the new contrastpublic void setBrightness(float brightness)
brightness
- the new brightnesspublic void setSlice(int slice)
slice
- the new slicepublic void createVisualizationParameters(ParamCollection visualizationParameters)
visualizationParameters
- the visualization parametersVisualizationParameters.createVisualizationParameters(edu.jhu.ece.iacl.jist.pipeline.parameter.ParamCollection)
public void update(ParamModel model, ParamInputView view)
model
- the modelview
- the 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 |