public class ImagePanel extends AxisAlignedPanel
Constructor and Description |
---|
ImagePanel(float[][][] f)
Constructs an image panel with default unit sampling for 3D array.
|
ImagePanel(Sampling s1,
Sampling s2,
Sampling s3,
float[][][] f)
Constructs an image panel for specified sampling and 3D array.
|
ImagePanel(Sampling s1,
Sampling s2,
Sampling s3,
Float3 f)
Constructs an image panel for specified sampling and abstract 3D array.
|
Modifier and Type | Method and Description |
---|---|
void |
addColorMapListener(ColorMapListener cml)
Adds the specified color map listener.
|
protected void |
draw(DrawContext dc)
Draws this node.
|
BoxConstraint |
getBoxConstraint()
Gets a box constraint for this panel.
|
float |
getClipMax()
Gets the maximum clip value.
|
float |
getClipMin()
Gets the minimum clip value.
|
java.awt.image.IndexColorModel |
getColorModel()
Gets the index color model for this panel.
|
float |
getPercentileMax()
Gets the maximum percentile.
|
float |
getPercentileMin()
Gets the minimum percentile.
|
void |
removeColorMapListener(ColorMapListener cml)
Removes the specified color map listener.
|
void |
setClips(double clipMin,
double clipMax)
Sets the clips for this panel.
|
void |
setColorModel(java.awt.image.IndexColorModel colorModel)
Sets the index color model for this panel.
|
void |
setPercentiles(double percMin,
double percMax)
Sets the percentiles used to compute clips for this panel.
|
void |
update()
Notifies this panel that values in the referenced 3D array have changed.
|
computeBoundingSphere, getFrame, pick, setFrame
countParents, cull, cullApply, cullBegin, cullEnd, dirtyBoundingSphere, dirtyDraw, drawApply, drawBegin, drawEnd, getAttributeBits, getBoundingSphere, getParents, getStates, getWorld, isSelected, pickApply, pickBegin, pickEnd, selectedChanged, setSelected, setStates
public ImagePanel(float[][][] f)
f
- 3D array of floats.public ImagePanel(Sampling s1, Sampling s2, Sampling s3, float[][][] f)
s1
- sampling of 1st dimension (Z axis).s2
- sampling of 2nd dimension (Y axis).s3
- sampling of 3rd dimension (X axis).f
- 3D array of floats.public ImagePanel(Sampling s1, Sampling s2, Sampling s3, Float3 f)
s1
- sampling of 1st dimension (Z axis).s2
- sampling of 2nd dimension (Y axis).s3
- sampling of 3rd dimension (X axis).f
- abstract 3D array of floats.public void update()
public BoxConstraint getBoxConstraint()
getBoxConstraint
in class AxisAlignedPanel
public void setColorModel(java.awt.image.IndexColorModel colorModel)
colorModel
- the index color model.public java.awt.image.IndexColorModel getColorModel()
public void setClips(double clipMin, double clipMax)
Calling this method disables the computation of clips from percentiles. Any clip values computed or specified previously will be forgotten.
clipMin
- the sample value corresponding to color model index 0.clipMax
- the sample value corresponding to color model index 255.public float getClipMin()
public float getClipMax()
public void setPercentiles(double percMin, double percMax)
Calling this method enables the computation of clips from percentiles. Any clip values specified or computed previously will be forgotten.
percMin
- the percentile corresponding to clipMin.percMax
- the percentile corresponding to clipMax.public float getPercentileMin()
public float getPercentileMax()
public void addColorMapListener(ColorMapListener cml)
cml
- the listener.public void removeColorMapListener(ColorMapListener cml)
cml
- the listener.protected void draw(DrawContext dc)
Node