de.fhg.igd.earth.model.graph
Class LatchGroup
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.LatchGroup
- All Implemented Interfaces:
- Cloneable, Serializable
- public class LatchGroup
- extends Group
A LatchGroup represents a filter for the projectors. The children of this
group will only be visible when projector_ value is corresponding to the
given projector.
Title : Earth
Copyright : Copyright (c) 2001
Organisation : IGD FhG
- Version:
- : 1.0
- Author:
- : Werner Beutel
- See Also:
- Serialized Form
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 |
Constructor Summary |
LatchGroup(char projector)
Creates a LatchGroup for the given projector. |
Method Summary |
boolean |
checkProjector(char projector)
Returns true if the given projector should show the children |
int |
getSubType()
Returns SUBTYPE_LatchGroup. |
int |
getType()
Returns TYPE_Group. |
Methods inherited from class de.fhg.igd.earth.model.graph.Group |
addChild, allowChildAddEvent, calcBoundingBox, childAddedEvent, childRemovedEvent, clone, 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 |
SPHERE_PROJECTOR
public static final char SPHERE_PROJECTOR
- static SPHERE_PROJECTOR value
- See Also:
- Constant Field Values
CUBE_PROJECTOR
public static final char CUBE_PROJECTOR
- static CUBE_PROJECTOR value
- See Also:
- Constant Field Values
projector_
private char projector_
- projector value
LatchGroup
public LatchGroup(char projector)
- Creates a LatchGroup for the given projector.
- Parameters:
projector
- Projector type
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_LatchGroup. Defined in ModelGraphObject
- Overrides:
getSubType
in class Group
- Returns:
- subType (always SUBTYPE_LatchGroup)
checkProjector
public boolean checkProjector(char projector)
- Returns true if the given projector should show the children
- Parameters:
projector
- Projector type (SPHERE_PROJECTOR or CUBE_PROJECTOR)
- Returns:
- true on visible
Copyright © Fraunhofer Gesellschaft. All
Rights Reserved.