public class VoltexGroup extends ContentNode
Modifier and Type | Field and Description |
---|---|
protected ContentInstant |
c
Reference to the Content which holds this VoltexGroup
|
protected VolumeRenderer |
renderer
The VolumeRenderer behind this VoltexGroup
|
ALLOW_DETACH
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
Modifier | Constructor and Description |
---|---|
protected |
VoltexGroup()
This constructor only exists to allow subclasses to access the super
constructor of BranchGroup.
|
|
VoltexGroup(Content c)
Initialize this VoltexGroup with the specified Content.
|
|
VoltexGroup(ContentInstant c)
Initialize this VoltexGroup with the specified ContentInstant.
|
Modifier and Type | Method and Description |
---|---|
protected void |
calculateMinMaxCenterPoint()
Calculate the minimum, maximum and center coordinate, together with the
volume.
|
void |
channelsUpdated(boolean[] channels)
This method is called when the channels of the Content have changed.
|
void |
clearDisplayedData() |
void |
colorUpdated(Color3f color)
This method is called when the color of the Content has changed.
|
Mask |
createMask() |
void |
eyePtChanged(View view)
This method is called when the view direction has changed.
|
void |
fillRoi(Canvas3D canvas,
Roi roi,
byte fillValue)
Fills the projection of the specified ROI with the given fillValue.
|
void |
getCenter(Tuple3d center)
Stores the center coordinate of this ContentNode in the specified Tuple3d
|
void |
getMax(Tuple3d max)
Stores the maximum coordinate of this ContentNode in the specified Tuple3d
|
void |
getMin(Tuple3d min)
Stores the minimum coordinate of this ContentNode in the specified Tuple3d
|
VolumeRenderer |
getRenderer()
Get a reference VolumeRenderer which is used by this class
|
float |
getVolume()
Returns the volume of this ContentNode.
|
void |
lutUpdated(int[] r,
int[] g,
int[] b,
int[] a)
This method is called when the color lookup tables of the Content have
changed.
|
void |
restoreDisplayedData(String path,
String name) |
void |
shadeUpdated(boolean shaded)
This method is called when the 'shade' attribute of the Content has
changed.
|
void |
swapDisplayedData(String path,
String name) |
void |
thresholdUpdated(int threshold)
This method is called when the threshold of the Content has changed.
|
void |
transparencyUpdated(float transparency)
This method is called when the transparency of the Content has changed.
|
void |
update()
Update the volume rendering from the image (only if the resampling factor
is 1.
|
void |
volumeToImagePlate(Transform3D toImagePlate)
Stores the matrix which transforms this VoltexGroup to the image plate in
the specified Transform3D.
|
cloneNode, compile, detach, pickAll, pickAll, pickAllSorted, pickAllSorted, pickAny, pickAny, pickClosest, pickClosest
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
protected VolumeRenderer renderer
protected ContentInstant c
protected VoltexGroup()
public VoltexGroup(Content c)
c
- IllegalArgumentException
- if the specified Content has no image.public VoltexGroup(ContentInstant c)
c
- IllegalArgumentException
- if the specified ContentInstant has no
image.public void update()
public VolumeRenderer getRenderer()
public Mask createMask()
public void getMin(Tuple3d min)
ContentNode
getMin
in class ContentNode
getMin
public void getMax(Tuple3d max)
ContentNode
getMax
in class ContentNode
(Tuple3d) getMax
public void getCenter(Tuple3d center)
ContentNode
getCenter
in class ContentNode
getCenter
public void thresholdUpdated(int threshold)
ContentNode
thresholdUpdated
in class ContentNode
thresholdUpdated
public float getVolume()
ContentNode
getVolume
in class ContentNode
getVolume
public void eyePtChanged(View view)
ContentNode
eyePtChanged
in class ContentNode
eyePtChanged
public void channelsUpdated(boolean[] channels)
ContentNode
channelsUpdated
in class ContentNode
channelsUpdated
public void lutUpdated(int[] r, int[] g, int[] b, int[] a)
ContentNode
lutUpdated
in class ContentNode
lutUpdated
public void shadeUpdated(boolean shaded)
ContentNode
shadeUpdated
in class ContentNode
shadeUpdated
public void colorUpdated(Color3f color)
ContentNode
colorUpdated
in class ContentNode
colorUpdated
public void transparencyUpdated(float transparency)
ContentNode
transparencyUpdated
in class ContentNode
transparencyUpdated
public void volumeToImagePlate(Transform3D toImagePlate)
toImagePlate
- public void fillRoi(Canvas3D canvas, Roi roi, byte fillValue)
canvas
- roi
- fillValue
- protected void calculateMinMaxCenterPoint()
public void swapDisplayedData(String path, String name)
swapDisplayedData
in class ContentNode
public void clearDisplayedData()
clearDisplayedData
in class ContentNode
public void restoreDisplayedData(String path, String name)
restoreDisplayedData
in class ContentNode
Copyright © 2015–2021 Fiji. All rights reserved.