public class DistanceLOD extends LOD
Note that both the position and the array of distances are specified in the local coordinate system of this node.
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
Constructor and Description |
---|
DistanceLOD()
Constructs and initializes a DistanceLOD node with default values.
|
DistanceLOD(float[] distances)
Constructs and initializes a DistanceLOD node with the specified
array of distances and a default position of (0,0,0).
|
DistanceLOD(float[] distances,
Point3f position)
Constructs and initializes a DistanceLOD node with the specified
array of distances and the specified position.
|
Modifier and Type | Method and Description |
---|---|
Node |
cloneNode(boolean forceDuplicate)
Used to create a new instance of the node.
|
double |
getDistance(int whichDistance)
Returns a particular LOD cut-off distance.
|
void |
getPosition(Point3f position)
Retrieves the current position of this LOD node.
|
void |
initialize()
Initialize method that sets up initial wakeup criteria.
|
int |
numDistances()
Returns a count of the number of LOD distance cut-off parameters.
|
void |
processStimulus(Enumeration criteria)
Process stimulus method that computes appropriate level of detail.
|
void |
setDistance(int whichDistance,
double distance)
Sets a particular LOD cut-off distance.
|
void |
setPosition(Point3f position)
Sets the position of this LOD node.
|
addSwitch, getAllSwitches, getSwitch, indexOfSwitch, insertSwitch, numSwitches, removeAllSwitches, removeSwitch, removeSwitch, setSwitch, updateNodeReferences
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, wakeupOn
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
public DistanceLOD()
public DistanceLOD(float[] distances)
distances
- an array of values representing LOD cutoff distancespublic DistanceLOD(float[] distances, Point3f position)
distances
- an array of values representing LOD cutoff distancesposition
- the position of this LOD nodepublic void setPosition(Point3f position)
position
- the new positionpublic void getPosition(Point3f position)
position
- the object that will receive the current positionpublic int numDistances()
public double getDistance(int whichDistance)
whichDistance
- an index specifying which LOD distance to returnpublic void setDistance(int whichDistance, double distance)
whichDistance
- an index specifying which LOD distance to modifydistance
- the cut-off distance associated with the index providedpublic void initialize()
initialize
in class Behavior
public void processStimulus(Enumeration criteria)
processStimulus
in class Behavior
criteria
- an enumeration of the criteria that caused the
stimuluspublic Node cloneNode(boolean forceDuplicate)
cloneTree
to duplicate the current node.cloneNode
in class Node
forceDuplicate
- when set to true
, causes the
duplicateOnCloneTree
flag to be ignored. When
false
, the value of each node's
duplicateOnCloneTree
variable determines whether
NodeComponent data is duplicated or copied.Node.cloneTree()
,
Node.cloneNode(boolean)
,
Node.duplicateNode(org.scijava.java3d.Node, boolean)
,
NodeComponent.setDuplicateOnCloneTree(boolean)
Copyright © 2016–2022 SciJava. All rights reserved.