|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.earth.model.graph.ProjectorObject de.fhg.igd.earth.model.graph.ModelGraphObject de.fhg.igd.earth.model.graph.Node de.fhg.igd.earth.model.graph.Group de.fhg.igd.earth.model.graph.SwitchGroup de.fhg.igd.earth.model.graph.DistanceDetailGroup
This class represents a DistanceDetailGroup. The distance values define the maximum distances from the projector center where the child is visible. The FIRST entry in the distance field correspondes to the SECOND child. The first child is visible if the current distance is less than distance[0]. The second child is visible if the current distance is less than distance[1] ... At that moment only 2 Children are allowed !!! Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
Field Summary | |
private float[] |
distances_
field of distances |
Fields inherited from class de.fhg.igd.earth.model.graph.SwitchGroup |
CHILD_ALL, CHILD_MASK, CHILD_NONE |
Fields inherited from class de.fhg.igd.earth.model.graph.Group |
maxNumChildren_ |
Fields inherited from class de.fhg.igd.earth.model.graph.Node |
boundless_, collidable_, icon_, parent_, pickable_ |
Fields inherited from class de.fhg.igd.earth.model.graph.ProjectorObject |
projectorObject_ |
Constructor Summary | |
DistanceDetailGroup(float[] distances)
Constructs and initializes a default DistanceDetailGroup. |
Method Summary | |
protected boolean |
allowChildAddEvent(Node n)
Overwrites the group class method. |
Object |
clone()
Clones this DistanceDetailGroup |
BitSet |
getChildMask(float distance)
Returns the children mask for the given distance |
float[] |
getDistances()
Returns the field of distances. |
int |
getSubType()
Returns SUBTYPE_DistanceDetailGroup. |
int |
getType()
Returns TYPE_Group. |
void |
setDistances(float[] distances)
Sets the field of distances. |
Methods inherited from class de.fhg.igd.earth.model.graph.SwitchGroup |
childAddedEvent, childRemovedEvent, getChildMask, getWitchChild, setChildMask, setWitchChild |
Methods inherited from class de.fhg.igd.earth.model.graph.Group |
addChild, calcBoundingBox, createLeafList, createSubGroupList, createSubNodeList, detach, detachedEvent, getAllChildren, getChild, getErasedChildren, numChildren, removeAllChildren, removeChild, removeChild, resetChanges, searchDown, searchDown, searchDown, searchDown, searchDownInserter, searchDownInserter, setChildAt, setColor, setHighLight, setMutable, setVisible |
Methods inherited from class de.fhg.igd.earth.model.graph.Node |
broadcastCreation, broadcastResetChanges, createParentGroupList, delete, delete, getBoundingBox, getBoundless, getBranchGroup, getCollidable, getGroup, getIcon, getLeafList, getModelGraph, getParent, getParentGroupList, getPickable, getSubGroupList, getSubNodeList, isFocused, move, move, moveTo, publishChanges, resetProjectorObject, searchUp, searchUp, searchUp, searchUp, setBoundless, setCollidable, setIcon, setParent, setPickable |
Methods inherited from class de.fhg.igd.earth.model.graph.ModelGraphObject |
anyChanges, anySubChanges, getChanges, getChanges, getInfoTable, getInfoTableElements, getInfoTableKeys, getInfoTableSize, getInfoTableValues, getMutable, getName, getSubChanges, getSubChanges, getSubTypeName, getTimeStamp, getTrace, getTraceable, putInfo, setChanges, setInfoTable, setName, setSubChanges, setTrace, VectorClone |
Methods inherited from class de.fhg.igd.earth.model.graph.ProjectorObject |
getProjectorObject, setProjectorObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private float[] distances_
Constructor Detail |
public DistanceDetailGroup(float[] distances)
distances
- Field of distancesMethod Detail |
public float[] getDistances()
public void setDistances(float[] distances)
distances
- Field of distancespublic int getType()
getType
in class Group
public int getSubType()
getSubType
in class Group
protected boolean allowChildAddEvent(Node n)
allowChildAddEvent
in class Group
n
- Node
public BitSet getChildMask(float distance)
distance
- Current distance from center
public Object clone()
clone
in class SwitchGroup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |