de.fhg.igd.earth.model.graph
Class DetailGroup

java.lang.Object
  extended byde.fhg.igd.earth.model.graph.ProjectorObject
      extended byde.fhg.igd.earth.model.graph.ModelGraphObject
          extended byde.fhg.igd.earth.model.graph.Node
              extended byde.fhg.igd.earth.model.graph.Group
                  extended byde.fhg.igd.earth.model.graph.SwitchGroup
                      extended byde.fhg.igd.earth.model.graph.DetailGroup
All Implemented Interfaces:
Cloneable, Serializable

public class DetailGroup
extends SwitchGroup
implements Serializable, Cloneable

This class represents a DetailGroup. At that moment the DetailGroup can have only two states: high or low detail. If the levelOfDetail is set to LOD_High you can only see the children if you aren't changing the view. LOD_Low groups will be shown while you rotate or translate the view. Lod_Low groups can be empty. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG

Version:
: 1.0
Author:
: Werner Beutel
See Also:
Serialized Form

Field Summary
private  int levelOfDetail_
          Level Of Detail
static int LOD_High
          Level Of Detail = HIGH
static int LOD_Low
          Level Of Detail = LOW
 
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.ModelGraphObject
CHANGE_AddChild, CHANGE_Anything, CHANGE_Appearance, CHANGE_Color, CHANGE_Create, CHANGE_Delete, CHANGE_Focus, CHANGE_HistoryGroup, CHANGE_InfoTable, CHANGE_Object, CHANGE_RemoveChild, CHANGE_Shape, CHANGE_Trace, CHANGE_Update, CHANGE_Visibility, changes_, infoTable_, mutable_, name_, subChanges_, SUBTYPE_BackGround, SUBTYPE_Box, SUBTYPE_BranchGroup, SUBTYPE_Cone, SUBTYPE_Cylinder, SUBTYPE_DetailGroup, SUBTYPE_DistanceDetailGroup, SUBTYPE_Group, SUBTYPE_HistoryGroup, SUBTYPE_LatchGroup, SUBTYPE_ModelGraph, SUBTYPE_Polygon, SUBTYPE_Primitive, SUBTYPE_Sphere, SUBTYPE_Text, SUBTYPE_TransformGroup, SUBTYPE_WireBoxGroup, timeStamp_, trace_, traceable_, TYPE_Group, TYPE_Leaf
 
Fields inherited from class de.fhg.igd.earth.model.graph.ProjectorObject
projectorObject_
 
Constructor Summary
DetailGroup()
          Constructs and initializes a default DetailGroup.
 
Method Summary
protected  boolean allowChildAddEvent(Node n)
          Overwrites the group class method.
 Object clone()
          Clones this DetailGroup
 int getSubType()
          Returns SUBTYPE_DetailGroup.
 int getType()
          Returns TYPE_Group.
 void setLevel(int level)
          Sets the level of detail.
 
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

LOD_High

public static final int LOD_High
Level Of Detail = HIGH

See Also:
Constant Field Values

LOD_Low

public static final int LOD_Low
Level Of Detail = LOW

See Also:
Constant Field Values

levelOfDetail_

private int levelOfDetail_
Level Of Detail

Constructor Detail

DetailGroup

public DetailGroup()
Constructs and initializes a default DetailGroup. Maximum of children is set to 2. The level is set to LOD_High.

Method Detail

getType

public int getType()
Returns TYPE_Group. Defined in ModelGraphObject

Overrides:
getType in class Group
Returns:
type (always TYPE_Group)

getSubType

public int getSubType()
Returns SUBTYPE_DetailGroup. Defined in ModelGraphObject

Overrides:
getSubType in class Group
Returns:
subType (always SUBTYPE_DetailGroup)

setLevel

public void setLevel(int level)
Sets the level of detail. Released changes: CHANGE_UPDATE

Parameters:
level - Level of detail

allowChildAddEvent

protected boolean allowChildAddEvent(Node n)
Overwrites the group class method. Every child can be added here.

Overrides:
allowChildAddEvent in class Group
Parameters:
n - Node
Returns:
true if child is allowed to be added

clone

public Object clone()
Clones this DetailGroup

Overrides:
clone in class SwitchGroup


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.