public class MrSceneTreeData extends MrTreeMap<java.lang.String,MrObjectController>
BREADTH_TRAVERSAL, DEPTH_TRAVERSAL
Constructor and Description |
---|
MrSceneTreeData() |
MrSceneTreeData(MrObjectController root) |
Modifier and Type | Method and Description |
---|---|
boolean |
addChild(MrObjectController parent,
MrObjectController data)
Adds a child to the node
|
boolean |
addChildByKey(java.lang.String parentKey,
MrObjectController data)
Adds a child to the node
|
MrCameraController |
getActiveCamera() |
java.util.List<MrObjectController> |
getByType(MrSceneObjectType type) |
java.util.List<MrLightController> |
getLights() |
java.util.List<MrModelController> |
getModels() |
MrObjectsDataTree |
getObjectsDataTree() |
MrSceneController |
getScene() |
boolean |
remove(MrObjectController data)
Removes a certain element from this tree
|
boolean |
removeByKey(java.lang.String parentKey)
Removes a certain element in this tree
|
void |
setActiveCamera(MrCameraController camera) |
breadthTraversal, breadthTraversal, breadthTraversalByKey, clear, contains, containsKey, depthTraversal, depthTraversal, depthTraversalByKey, findByKey, getChildrenOf, getChildrenOfByKey, getMapFunction, getParentOf, getParentOfByKey, getRoot, getSubTree, getSubTreeByKey, getTraversalMode, iterator, keys, parentKeyChildValueTraversal, parentKeyChildValueTraversal, parentKeyChildValueTraversalByKey, parentTraversal, parentTraversalByKey, setTraversalMode, size
public MrSceneTreeData()
public MrSceneTreeData(MrObjectController root)
public MrObjectsDataTree getObjectsDataTree()
public boolean addChildByKey(java.lang.String parentKey, MrObjectController data)
MrTreeMap
addChildByKey
in class MrTreeMap<java.lang.String,MrObjectController>
parentKey
- parent node keydata
- data to be used as a childpublic boolean addChild(MrObjectController parent, MrObjectController data)
MrTreeMap
addChild
in class MrTreeMap<java.lang.String,MrObjectController>
parent
- parent objectdata
- child object to be insertedpublic boolean removeByKey(java.lang.String parentKey)
MrTreeMap
removeByKey
in class MrTreeMap<java.lang.String,MrObjectController>
parentKey
- of the elementpublic boolean remove(MrObjectController data)
MrTreeMap
remove
in class MrTreeMap<java.lang.String,MrObjectController>
data
- data object to be removedpublic java.util.List<MrObjectController> getByType(MrSceneObjectType type)
public MrSceneController getScene()
public MrCameraController getActiveCamera()
public void setActiveCamera(MrCameraController camera)
public java.util.List<MrModelController> getModels()
public java.util.List<MrLightController> getLights()