|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AddRemoveSceneGraphObject
Defines the operation to be implemented by an object able to remove or add a scene graph object to the scene graph at the place this object defines For instance a tree used to display the scene graph is composed of nodes. Each node refers to one scene graph object. By implementing these operations each tree node can provide a polymorphic add/remove operation on all the elements part of the scene graph.
Method Summary | |
---|---|
SceneGraphObject |
addSceneGraphObject(SceneGraphObject obj)
Add one scene graph object According to the target, this new object can replace the previous object or be added to a list |
boolean |
canAddSceneGraphObject(SceneGraphObject obj)
Checks if a scene graph object can be added |
void |
removeSceneGraphObject(SceneGraphObject obj,
SceneGraphObject oldObj)
Remove one scene graph object |
Method Detail |
---|
boolean canAddSceneGraphObject(SceneGraphObject obj)
obj
- the object to add
SceneGraphObject addSceneGraphObject(SceneGraphObject obj)
obj
- the object to add
void removeSceneGraphObject(SceneGraphObject obj, SceneGraphObject oldObj)
obj
- the object to removeoldObj
- the optional object to be used in place of
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |