|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implement this interface in any classes that subclass a Java3D SceneGraphObject in order to have your class handled correctly by scenegraph.io. More information and example code is provided here. Classes that implement this interface MUST have a no-arg constructor
Method Summary | |
void |
createSceneGraphObjectReferences(SceneGraphObjectReferenceControl ref)
The method is called before writeSGObject and gives the user the chance to create references to other Nodes and NodeComponents. |
void |
readSceneGraphObject(java.io.DataInput in)
This is called after the object has been constructed and the superclass SceneGraphObject data has been read from in . |
void |
restoreSceneGraphObjectReferences(SceneGraphObjectReferenceControl ref)
Within this method the user should restore references to the SceneGraphObjects whose nodeID's were created with createSceneGraphObjectReferences This method is called once the all objects in the scenegraph have been loaded. |
boolean |
saveChildren()
Flag indicating for children of this object should be saved This method only has an effect if this is a subclass of Group. |
void |
writeSceneGraphObject(java.io.DataOutput out)
This method should store all the local state of the object and any references to other SceneGraphObjects into out . |
Method Detail |
public void createSceneGraphObjectReferences(SceneGraphObjectReferenceControl ref)
ref
- provides methods to create references to a SceneGraphObjectpublic void restoreSceneGraphObjectReferences(SceneGraphObjectReferenceControl ref)
ref
- provides methods to resolve references to a SceneGraphObjectpublic void writeSceneGraphObject(java.io.DataOutput out) throws java.io.IOException
out
.
This is called after data for the parent SceneGraphObject has been written to
the out
.
out
- the output stream
java.io.IOException
public void readSceneGraphObject(java.io.DataInput in) throws java.io.IOException
in
.
The user should restore all state infomation written in writeSGObject
in
- the input stream
java.io.IOException
public boolean saveChildren()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |