public abstract class EntityRetriever extends Object implements SceneGraphRetriever<Entity>
| Modifier and Type | Field and Description |
|---|---|
protected List<Entity> |
entities
Entites found while scanning
|
protected List<Node> |
nodes
Nodes found while scanning
|
| Constructor and Description |
|---|
EntityRetriever() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contained()
Should return true if at least ONE Entity has been found.
|
List<Entity> |
getAll()
Call #scan(Node) first!
|
<E extends Entity> |
getAll(Class<E> filter)
Return all Entities, which life in the scanned node
and it's children.
|
protected List<Entity> |
getAll(Node node)
This method flattens a scenegraph,
NOTE: this method adds all encountered nodes
to the object's nodes list.
|
protected List<Entity> |
getAll(Node node,
boolean addNodes)
This method flattens a scenegraph
|
List<Node> |
getNodes()
Call #scan(Node) first!
|
void |
scan(Node node)
Performs the search.
|
public void scan(Node node)
scan in interface NodeScannernode - Node to scangetAll(Node, boolean)public List<Entity> getAll()
getAll in interface SceneGraphRetriever<Entity>public List<Node> getNodes()
getNodes in interface SceneGraphRetriever<Entity>public boolean contained()
contained in interface SceneGraphRetriever<Entity>public <E extends Entity> List<E> getAll(Class<E> filter)
getAll in interface SceneGraphRetriever<Entity>E - Filtered typefilter - Entity Filterprotected List<Entity> getAll(Node node)
node - The node to flattenCopyright © 2014. All rights reserved.