org.xith3d.scenegraph.utils
Class NodeMap<T extends GroupNode>
java.lang.Object
org.xith3d.scenegraph.utils.NodeMap<T>
public class NodeMap<T extends GroupNode>
- extends java.lang.Object
A Node Map.
Useful in picking, for example :
NodeMap map = new NodeMap("obj");
Each time you create a pickable OBJ Model :
map.prepare(model);
You have a PickResult, want your OBJ model back
OBJModel model = map.get(pickResult.getNode());
Then you can do whatever you want with it !
|
Constructor Summary |
NodeMap(java.lang.String id)
Create a new NodeMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeMap
public NodeMap(java.lang.String id)
- Create a new NodeMap
- Parameters:
id - The ID which will be used when storing
the data in Nodes. If you have several NodeMap(s)
on same objects, have different IDs
prepare
public void prepare(T group)
prepare
public void prepare(T group,
java.lang.Object object)
get
public T get(Node node)