public class Orthoslice extends VolumeRenderer
appCreator, axisIndex, axisSwitch, geomCreator, root, volume| Constructor and Description |
|---|
Orthoslice(ij.ImagePlus img,
Color3f color,
float tr,
boolean[] channels)
Initializes a new Orthoslice with the given image, color, transparency and
channels.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decrease(int axis)
Decreases the index of the specified plane by one.
|
void |
eyePtChanged(View view)
Override eyePtChanged() in VolumeRenderer to always show all slices.
|
int |
getSlice(int axis)
Returns the current index of the specified plane
|
void |
increase(int axis)
Increases the index of the specified plane by one.
|
boolean |
isVisible(int axis)
Returns whether the specified plane is visible at the moment
|
protected void |
loadAxis(int axis)
Overwrites loadAxis() in VolumeRenderer to show only one plane in each
direction.
|
void |
setSlice(int axis,
int v)
Sets the slice index of the specified plane to the given value.
|
void |
setVisible(int axis,
boolean b)
Sets the specified plane visible.
|
createMask, disableTextures, enableTextures, fullReload, getAppearance, getVolume, getVolumeNode, loadAxis, setChannels, setColor, setLUTs, setThreshold, setTransparencypublic Orthoslice(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.protected void loadAxis(int axis)
loadAxis in class VolumeRendereraxis - Must be one of X_AXIS, Y_AXIS or Z_AXIS in VolumeRendConstants.public void eyePtChanged(View view)
eyePtChanged in class VolumeRendererview - public int getSlice(int axis)
axis - public boolean isVisible(int axis)
axis - public void setVisible(int axis,
boolean b)
axis - b - public void decrease(int axis)
axis - public void increase(int axis)
axis - public void setSlice(int axis,
int v)
axis - v - Copyright © 2015–2021 Fiji. All rights reserved.