public class MultiOrthoslice extends VolumeRenderer
appCreator, axisIndex, axisSwitch, geomCreator, root, volume
Constructor and Description |
---|
MultiOrthoslice(ij.ImagePlus img,
Color3f color,
float tr,
boolean[] channels) |
Modifier and Type | Method and Description |
---|---|
void |
eyePtChanged(View view)
Override eyePtChanged() in VolumeRenderer to always show all slices.
|
int |
getSliceCount(int axis) |
boolean |
getTexturesOpaque()
Returns whether the textures are transparent or not.
|
protected void |
loadAxis(int axis,
int index,
Group front,
Group back)
Overwrites loadAxis() in VolumeRenderer to skip the slices for which the
visibility flag is not set.
|
void |
setTexturesOpaque(boolean opaque)
Makes the textures transparent or not.
|
void |
setVisible(int axis,
boolean b)
Hide/show the whole set of slices in the given axis.
|
void |
setVisible(int axis,
boolean[] b) |
void |
setVisible(int axis,
int interval,
int offset,
int range)
Show a slice every
|
void |
translateVisibilityState(int axis,
int shift)
Translate the visibility state along the given axis.
|
createMask, disableTextures, enableTextures, fullReload, getAppearance, getVolume, getVolumeNode, loadAxis, setChannels, setColor, setLUTs, setThreshold, setTransparency
public MultiOrthoslice(ij.ImagePlus img, Color3f color, float tr, boolean[] channels)
img
- The image stackcolor
- The color this Orthoslice should usetr
- The transparency of this Orthoslicechannels
- A boolean[] array which indicates which color channels to
use (only affects RGB images). The length of the array must be 3.public boolean getTexturesOpaque()
public void setTexturesOpaque(boolean opaque)
protected void loadAxis(int axis, int index, Group front, Group back)
loadAxis
in class VolumeRenderer
axis
- Must be one of X_AXIS, Y_AXIS or Z_AXIS in VolumeRendConstants.index
- The index within the axisfront
- the front groupback
- the back grouppublic void eyePtChanged(View view)
eyePtChanged
in class VolumeRenderer
view
- public int getSliceCount(int axis)
public void setVisible(int axis, boolean[] b)
public void setVisible(int axis, boolean b)
public void setVisible(int axis, int interval, int offset, int range)
interval
- slices, and hide the rest. Starts by showing slice atoffset
- , and counts slices up torange
- .public void translateVisibilityState(int axis, int shift)
axis
- Copyright © 2015–2021 Fiji. All rights reserved.