public class ImagePanelGroup2 extends Group
The two sets of image panels are called "1st and 2nd image panels." The 1st image panels are rendered (with polygon offset) slightly behind the 2nd image panels.
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 |
---|
ImagePanelGroup2(float[][][] f1,
float[][][] f2)
Constructs an image panel group for all three axes.
|
ImagePanelGroup2(Sampling s1,
Sampling s2,
Sampling s3,
float[][][] f1,
float[][][] f2)
Constructs an image panel group for all three axes.
|
ImagePanelGroup2(Sampling s1,
Sampling s2,
Sampling s3,
float[][][] f1,
float[][][] f2,
Axis[] axes)
Constructs an image panel group for specified axes.
|
ImagePanelGroup2(Sampling s1,
Sampling s2,
Sampling s3,
Float3 f1,
Float3 f2)
Constructs an image panel group for all three axes.
|
ImagePanelGroup2(Sampling s1,
Sampling s2,
Sampling s3,
Float3 f1,
Float3 f2,
Axis[] axes)
Constructs an image panel group for specified axes.
|
Modifier and Type | Method and Description |
---|---|
void |
addColorMap1Listener(ColorMapListener cml)
Adds the specified color map listener for 1st image panels.
|
void |
addColorMap2Listener(ColorMapListener cml)
Adds the specified color map listener for 2nd image panels.
|
float |
getClip1Max()
Gets the maximum clip value for 1st image panels.
|
float |
getClip1Min()
Gets the minimum clip value for 1st image panels.
|
float |
getClip2Max()
Gets the maximum clip value for 2nd image panels.
|
float |
getClip2Min()
Gets the minimum clip value for 2nd image panels.
|
java.awt.image.IndexColorModel |
getColorModel1()
Gets the index color model for 1st image panels in this group.
|
java.awt.image.IndexColorModel |
getColorModel2()
Gets the index color model for 2nd image panels in this group.
|
ImagePanel |
getImagePanel1(Axis axis)
Gets a 1st image panel in this group with the specified axis.
|
ImagePanel |
getImagePanel2(Axis axis)
Gets a 2nd image panel in this group with the specified axis.
|
java.util.Iterator<ImagePanel> |
getImagePanels1()
Gets an iterator for 1st image panels in this group.
|
java.util.Iterator<ImagePanel> |
getImagePanels2()
Gets an iterator for 2nd image panels in this group.
|
float |
getPercentile1Max()
Gets the maximum percentile for 1st image panels.
|
float |
getPercentile1Min()
Gets the minimum percentile for 1st image panels.
|
float |
getPercentile2Max()
Gets the maximum percentile for 2nd image panels.
|
float |
getPercentile2Min()
Gets the minimum percentile for 2nd image panels.
|
void |
removeColorMap1Listener(ColorMapListener cml)
Removes the specified color map listener.
|
void |
removeColorMap2Listener(ColorMapListener cml)
Removes the specified color map listener.
|
void |
setClips1(double clipMin,
double clipMax)
Sets the clips for 1st image panels in this group.
|
void |
setClips2(double clipMin,
double clipMax)
Sets the clips for 2nd image panels in this group.
|
void |
setColorModel1(java.awt.image.IndexColorModel colorModel)
Sets the index color model for 1st image panels in this group.
|
void |
setColorModel2(java.awt.image.IndexColorModel colorModel)
Sets the index color model for 2nd image panels in this group.
|
void |
setPercentiles1(double percMin,
double percMax)
Sets the percentiles used to compute clips for 1st image panels in
this group.
|
void |
setPercentiles2(double percMin,
double percMax)
Sets the percentiles used to compute clips for 2nd image panels in
this group.
|
void |
setSlices(int k1,
int k2,
int k3)
Sets indices of image slices displayed in this group.
|
void |
update1()
Notifies this panel that values in the 1st 3D array have changed.
|
void |
update2()
Notifies this panel that values in the 2nd 3D array have changed.
|
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 ImagePanelGroup2(float[][][] f1, float[][][] f2)
f1
- 1st 3D array of floats.f2
- 2nd 3D array of floats.public ImagePanelGroup2(Sampling s1, Sampling s2, Sampling s3, float[][][] f1, float[][][] f2)
s1
- sampling of 1st dimension (Z axis).s2
- sampling of 2nd dimension (Y axis).s3
- sampling of 3rd dimension (X axis).f1
- 1st 3D array of floats.f2
- 2nd 3D array of floats.public ImagePanelGroup2(Sampling s1, Sampling s2, Sampling s3, Float3 f1, Float3 f2)
s1
- sampling of 1st dimension (Z axis).s2
- sampling of 2nd dimension (Y axis).s3
- sampling of 3rd dimension (X axis).f1
- 1st abstract 3D array of floats.f2
- 2nd abstract 3D array of floats.public ImagePanelGroup2(Sampling s1, Sampling s2, Sampling s3, float[][][] f1, float[][][] f2, Axis[] axes)
s1
- sampling of 1st dimension (Z axis).s2
- sampling of 2nd dimension (Y axis).s3
- sampling of 3rd dimension (X axis).f1
- 1st 3D array of floats.f2
- 2nd 3D array of floats.axes
- array of axes, one for each image panel.public ImagePanelGroup2(Sampling s1, Sampling s2, Sampling s3, Float3 f1, Float3 f2, Axis[] axes)
s1
- sampling of 1st dimension (Z axis).s2
- sampling of 2nd dimension (Y axis).s3
- sampling of 3rd dimension (X axis).f1
- 1st abstract 3D array of floats.f2
- 2nd abstract 3D array of floats.axes
- array of axes, one for each image panel.public void update1()
public void update2()
public ImagePanel getImagePanel1(Axis axis)
axis
- the axis.public ImagePanel getImagePanel2(Axis axis)
axis
- the axis.public java.util.Iterator<ImagePanel> getImagePanels1()
public java.util.Iterator<ImagePanel> getImagePanels2()
public void setColorModel1(java.awt.image.IndexColorModel colorModel)
colorModel
- the index color model.public void setColorModel2(java.awt.image.IndexColorModel colorModel)
colorModel
- the index color model.public java.awt.image.IndexColorModel getColorModel1()
public java.awt.image.IndexColorModel getColorModel2()
public void setClips1(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 void setClips2(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 getClip1Min()
public float getClip2Min()
public float getClip1Max()
public float getClip2Max()
public void setPercentiles1(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 void setPercentiles2(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 getPercentile1Min()
public float getPercentile2Min()
public float getPercentile1Max()
public float getPercentile2Max()
public void addColorMap1Listener(ColorMapListener cml)
cml
- the listener.public void addColorMap2Listener(ColorMapListener cml)
cml
- the listener.public void removeColorMap1Listener(ColorMapListener cml)
cml
- the listener.public void removeColorMap2Listener(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).