j3d.org Code

org.j3d.loaders.ac3d
Interface Ac3dParseObserver


public interface Ac3dParseObserver

An observer to process the parsing of an AC3D file.

The observer can be used to see the stream of data as it is read from the file rather than wait for it all to be processed and read at the end.

At any time user code returning a value of false indicates that the user is finished with the parsing process and does not require any more data from the stream. The parser should terminate the process at this point.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Method Summary
 boolean materialComplete(Ac3dMaterial mat)
          A material block has been read from the file.
 boolean objectComplete(Ac3dObject parent, Ac3dObject obj)
          An object has been completed.Object calls are top donw - the parent is read and sent, but at the time it is sent does not yet contain the children.
 boolean surfaceComplete(Ac3dObject obj, Ac3dSurface surf)
          A surface definition from the previously declared object has been read.
 

Method Detail

materialComplete

boolean materialComplete(Ac3dMaterial mat)
A material block has been read from the file.

Parameters:
mat - The material definition
Returns:
true if to keep reading

objectComplete

boolean objectComplete(Ac3dObject parent,
                       Ac3dObject obj)
An object has been completed.Object calls are top donw - the parent is read and sent, but at the time it is sent does not yet contain the children.

Parameters:
parent - The parent object that contains this surface
obj - The object that was just read
Returns:
true if to keep reading

surfaceComplete

boolean surfaceComplete(Ac3dObject obj,
                        Ac3dSurface surf)
A surface definition from the previously declared object has been read.

Parameters:
obj - The parent object that contains this surface
surf - The surface object that has been read
Returns:
true if to keep reading

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org