public interface SceneGraphIO
Modifier and Type | Method and Description |
---|---|
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(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(DataOutput out)
This method should store all the local state of the object and any references
to other SceneGraphObjects into
out . |
void createSceneGraphObjectReferences(SceneGraphObjectReferenceControl ref)
ref
- provides methods to create references to a SceneGraphObjectvoid restoreSceneGraphObjectReferences(SceneGraphObjectReferenceControl ref)
ref
- provides methods to resolve references to a SceneGraphObjectvoid writeSceneGraphObject(DataOutput out) throws IOException
out
.
This is called after data for the parent SceneGraphObject has been written to
the out
.out
- the output streamIOException
void readSceneGraphObject(DataInput in) throws IOException
in
.
The user should restore all state infomation written in writeSGObjectin
- the input streamIOException
boolean saveChildren()
Copyright © 2016–2022 SciJava. All rights reserved.