Constructor and Description |
---|
MrSceneTree(MrObject root)
Creates a new Scene Tree using the given object as root
|
Modifier and Type | Method and Description |
---|---|
boolean |
addChild(MrObject parent,
MrObject object) |
boolean |
addChildByKey(java.lang.String parentKey,
MrObject object) |
java.util.Iterator<MrObject> |
breadthTraversal() |
java.util.Iterator<MrObject> |
breadthTraversal(MrObject object) |
java.util.Iterator<MrObject> |
breadthTraversalByKey(java.lang.String key) |
void |
clear() |
boolean |
contains(MrObject object) |
boolean |
containsKey(java.lang.String key) |
java.util.Iterator<MrObject> |
depthTraversal() |
java.util.Iterator<MrObject> |
depthTraversal(MrObject object) |
java.util.Iterator<MrObject> |
depthTraversalByKey(java.lang.String key) |
MrObject |
findByKey(java.lang.String key) |
MrCamera |
getActiveCamera() |
java.util.List<MrObject> |
getByType(MrSceneObjectType type) |
java.util.List<MrObject> |
getChildrenOf(MrObject object) |
java.util.List<MrObject> |
getChildrenOfByKey(java.lang.String key) |
MrSceneTreeController |
getController() |
java.util.List<MrLight> |
getLights() |
java.util.List<MrModel> |
getModels() |
MrObject |
getParentOf(MrObject object) |
MrObject |
getParentOfByKey(java.lang.String key) |
MrRobottoEngine |
getRobottoEngine()
Gets the RobottoEngine instance this SceneTree is attached to
|
MrObject |
getRoot() |
MrScene |
getScene() |
java.util.Iterator<MrObject> |
iterator() |
java.util.Collection<java.lang.String> |
keys() |
java.util.Iterator<java.util.Map.Entry<java.lang.String,MrObject>> |
parentKeyChildValueTraversal() |
java.util.Iterator<java.util.Map.Entry<java.lang.String,MrObject>> |
parentKeyChildValueTraversal(MrObject object) |
java.util.Iterator<java.util.Map.Entry<java.lang.String,MrObject>> |
parentKeyChildValueTraversalByKey(java.lang.String key) |
java.util.Iterator<MrObject> |
parentTraversal(MrObject object) |
java.util.Iterator<MrObject> |
parentTraversalByKey(java.lang.String key) |
boolean |
remove(MrObject object) |
boolean |
removeByKey(java.lang.String parentKey) |
void |
setActiveCamera(MrCamera camera) |
void |
setRobottoEngine(MrRobottoEngine robottoEngine)
Sets the RobottoEngine attached to this SceneTree
|
int |
size() |
public MrSceneTree(MrObject root)
root
- public MrRobottoEngine getRobottoEngine()
public void setRobottoEngine(MrRobottoEngine robottoEngine)
robottoEngine
- public MrSceneTreeController getController()
public boolean addChildByKey(java.lang.String parentKey, MrObject object)
public boolean removeByKey(java.lang.String parentKey)
public boolean remove(MrObject object)
public java.util.List<MrObject> getByType(MrSceneObjectType type)
public MrObject getRoot()
public MrObject findByKey(java.lang.String key)
public boolean containsKey(java.lang.String key)
public boolean contains(MrObject object)
public void clear()
public java.util.Collection<java.lang.String> keys()
public int size()
public java.util.List<MrObject> getChildrenOfByKey(java.lang.String key)
public MrObject getParentOfByKey(java.lang.String key)
public java.util.Iterator<MrObject> parentTraversalByKey(java.lang.String key)
public java.util.Iterator<MrObject> breadthTraversalByKey(java.lang.String key)
public java.util.Iterator<MrObject> depthTraversalByKey(java.lang.String key)
public java.util.Iterator<java.util.Map.Entry<java.lang.String,MrObject>> parentKeyChildValueTraversalByKey(java.lang.String key)
public java.util.Iterator<java.util.Map.Entry<java.lang.String,MrObject>> parentKeyChildValueTraversal(MrObject object)
public java.util.Iterator<MrObject> breadthTraversal()
public java.util.Iterator<MrObject> depthTraversal()
public java.util.Iterator<java.util.Map.Entry<java.lang.String,MrObject>> parentKeyChildValueTraversal()
public java.util.Iterator<MrObject> iterator()
iterator
in interface java.lang.Iterable<MrObject>
public java.util.List<MrLight> getLights()
public java.util.List<MrModel> getModels()
public MrScene getScene()
public MrCamera getActiveCamera()
public void setActiveCamera(MrCamera camera)