|
|||||||||
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.VectorField2DRenderer
public class VectorField2DRenderer
The Class VectorField2DRenderer.
Field Summary | |
---|---|
protected VisualizationProcessing |
applet
The applet. |
protected java.awt.Color |
arrowColor
The arrow color. |
protected ParamColor |
arrowColorParam
The arrow color param. |
protected float |
arrowHeadHeight
The arrow head height. |
protected ParamFloat |
arrowHeadHeightParam
The arrow head height param. |
protected float |
arrowHeadWidth
The arrow head width. |
protected ParamFloat |
arrowHeadWidthParam
The arrow head width param. |
protected float |
arrowWidth
The arrow width. |
protected ParamFloat |
arrowWidthParam
The arrow width param. |
protected float |
brightness
The brightness. |
protected int |
cols
The cols. |
protected float |
contrast
The contrast. |
protected ImageDataFloat |
image
The image. |
protected float[][] |
magImage
The magnitude image. |
protected float |
maxMagnitude
The max magnitude. |
protected int |
rows
The cols. |
protected int |
sampleRate
The sample rate. |
protected ParamInteger |
sampleRateParam
The sample rate param. |
protected float |
transparency
The transparency. |
protected ParamFloat |
transparencyParam
The transparency param. |
protected Vector2f[][] |
vectorField
The vector field. |
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 | |
---|---|
VectorField2DRenderer(ImageDataFloat img,
VisualizationProcessing applet)
Instantiates a new vector field2 d renderer. |
Method Summary | |
---|---|
protected void |
clearCache()
Clear cache. |
void |
createVisualizationParameters(ParamCollection visualizationParameters)
Creates the visualization parameters. |
void |
draw()
Draw. |
protected void |
draw(int x,
int y,
Vector3f v)
Draw. |
Vector2f[][] |
getVectorField()
Gets the vector field. |
void |
setArrowColor(java.awt.Color arrowColor)
Sets the arrow color. |
void |
setArrowHeadHeight(float arrowHeadHeight)
Sets the arrow head height. |
void |
setArrowHeadWidth(float arrowHeadWidth)
Sets the arrow head width. |
void |
setBrightness(float brightness)
Sets the brightness. |
void |
setContrast(float contrast)
Sets the contrast. |
void |
setSampleRate(int sampleRate)
Sets the sample rate. |
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 ImageDataFloat image
protected Vector2f[][] vectorField
protected float[][] magImage
protected float contrast
protected float brightness
protected float transparency
protected int sampleRate
protected float arrowHeadWidth
protected float arrowHeadHeight
protected float arrowWidth
protected ParamFloat arrowWidthParam
protected boolean visible
protected int rows
protected int cols
protected java.awt.Color arrowColor
protected ParamColor arrowColorParam
protected VisualizationProcessing applet
protected float maxMagnitude
protected ParamInteger sampleRateParam
protected ParamBoolean visibleParam
protected ParamFloat transparencyParam
protected ParamFloat arrowHeadWidthParam
protected ParamFloat arrowHeadHeightParam
Constructor Detail |
---|
public VectorField2DRenderer(ImageDataFloat img, VisualizationProcessing applet)
img
- the imgapplet
- the appletMethod Detail |
---|
public void setArrowHeadWidth(float arrowHeadWidth)
arrowHeadWidth
- the new arrow head widthpublic void setArrowHeadHeight(float arrowHeadHeight)
arrowHeadHeight
- the new arrow head heightpublic void setArrowColor(java.awt.Color arrowColor)
arrowColor
- the new arrow colorprotected void clearCache()
public void setTransparency(float transparency)
transparency
- the new transparencypublic void setVisible(boolean visible)
visible
- the new visiblepublic void setSampleRate(int sampleRate)
sampleRate
- the new sample ratepublic Vector2f[][] getVectorField()
public void setup()
setup
in class RendererProcessing
edu.jhu.cs.cisst.vent.renderers.RendererProcessing#setup()
public void draw()
draw
in class RendererProcessing
edu.jhu.cs.cisst.vent.renderers.RendererProcessing#draw()
protected void draw(int x, int y, Vector3f v)
x
- the xy
- the yv
- the vpublic void setContrast(float contrast)
contrast
- the new contrastpublic void setBrightness(float brightness)
brightness
- the new brightnesspublic 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 |