public class ImagePanelGroup extends Group
After constructing an image panel group, but before its image panels are drawn, one should set clips or percentiles. Otherwise, as each image panel is drawn for the first time, it will compute clip min and max values using default percentiles. Because all image panels in this group display the same array, much of this computation is redundant.
Constructor and Description |
---|
ImagePanelGroup(float[][][] f)
Constructs an image panel group for all three axes.
|
ImagePanelGroup(Sampling s1,
Sampling s2,
Sampling s3,
float[][][] f)
Constructs an image panel group for all three axes.
|
ImagePanelGroup(Sampling s1,
Sampling s2,
Sampling s3,
float[][][] f,
Axis[] axes)
Constructs image panel group for specified axes.
|
ImagePanelGroup(Sampling s1,
Sampling s2,
Sampling s3,
Float3 f)
Constructs an image panel group for all three axes.
|
ImagePanelGroup(Sampling s1,
Sampling s2,
Sampling s3,
Float3 f,
Axis[] axes)
Constructs image panel group for specified axes.
|
Modifier and Type | Method and Description |
---|---|
void |
addColorMapListener(ColorMapListener cml)
Adds the specified color map listener.
|
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 group.
|
ImagePanel |
getImagePanel(Axis axis)
Gets an image panel in this group with the specified axis.
|
java.util.Iterator<ImagePanel> |
getImagePanels()
Gets an iterator for the image panels in this group.
|
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 group.
|
void |
setColorModel(java.awt.image.IndexColorModel colorModel)
Sets the index color model for this group.
|
void |
setPercentiles(double percMin,
double percMax)
Sets the percentiles used to compute clips for this group.
|
void |
setSlices(int k1,
int k2,
int k3)
Sets indices of image slices displayed in this group.
|
addChild, computeBoundingSphere, countChildren, cull, draw, getAttributeBits, getChildren, pick, removeChild
countParents, cullApply, cullBegin, cullEnd, dirtyBoundingSphere, dirtyDraw, drawApply, drawBegin, drawEnd, getBoundingSphere, getParents, getStates, getWorld, isSelected, pickApply, pickBegin, pickEnd, selectedChanged, setSelected, setStates
public ImagePanelGroup(float[][][] f)
f
- 3D array of floats.public ImagePanelGroup(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 ImagePanelGroup(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 ImagePanelGroup(Sampling s1, Sampling s2, Sampling s3, float[][][] f, Axis[] axes)
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.axes
- array of axes, one for each image panel.public ImagePanelGroup(Sampling s1, Sampling s2, Sampling s3, Float3 f, Axis[] axes)
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.axes
- array of axes, one for each image panel.public ImagePanel getImagePanel(Axis axis)
axis
- the axis.public java.util.Iterator<ImagePanel> getImagePanels()
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.public void setSlices(int k1, int k2, int k3)
k1
- index in 1st dimension (Z axis).k2
- index in 2nd dimension (Y axis).k3
- index in 3rd dimension (X axis).