|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AVModel
Representation of a loaded model that came from a AVLoader
implementation.
The model contains all of the Aviatrix3D scenegraph structures as requested by the user of the loader interface. For example, if the loader was instructed to only load geometry, then it should not be possible to fetch runtime information from this model instance.
If the user asks the loader to maintain the raw model structure as part of
the load process, then that will be available through the
getRawModel()
method. The returned object type is dependent on the
model format and loader implementation. The derived documentation must
document what this class is so that the user can cast to the higher level
interface.
The order of the structures returned by the methods of this interface are not guaranteed to map to the order they were declared in the source file.
Layers
The behaviour of this class is dependent on layers.
When the user requests that layers are loaded, and some are found in the
requested file, then no root model is defined getModelRoot()
will
return null. All content is accessed through the getLayers()
method. Layers are returned in the order of front-most to rear-most. Layers
that are defined, but contain no content will still have valid layer
object instances. With all layers, unless the file format contains a
specific size, the Viewport
will have zero size.
It is up to the calling application to ensure that viewports are correctly
sized before adding them to the scene.
When no layer loading is requested, or the loaded file does not contain any
layers, then the getLayers()
method will return an empty list and
getModelRoot()
will return a valid object representing the root of
the loaded model.
Method Summary | |
---|---|
java.util.List<Background> |
getBackgrounds()
Get the list of backgrounds that are contained in the file. |
java.util.Map<SceneGraphObject,java.lang.Object> |
getExternallyDefinedFiles()
Get the listing of the external resources declared as being needed by this file. |
java.util.List<Fog> |
getFogs()
Get the list of fogs that are contained in the file. |
java.util.List<Layer> |
getLayers()
Get the list of layers that are contained in the file. |
java.util.List<Light> |
getLights()
Get the list of lights that are contained in the file. |
Group |
getModelRoot()
Get the root of the scene graph structure that represents this model. |
java.util.Map<java.lang.String,SceneGraphObject> |
getNamedObjects()
Get a mapping of any internally named objects to their corresponding scene graph structure. |
java.lang.Object |
getRawModel()
Get the raw model representation of the scene as defined by a loader-specific set of classes. |
java.util.List<AVRuntimeComponent> |
getRuntimeComponents()
Get the list of runtime components that are contained in the file. |
java.util.List |
getViewpoints()
Get the list of viewpoints that are contained in the file. |
Method Detail |
---|
Group getModelRoot()
If this model contains loaded layers, it will not return a root object.
java.lang.Object getRawModel()
java.util.Map<java.lang.String,SceneGraphObject> getNamedObjects()
java.util.Map<SceneGraphObject,java.lang.Object> getExternallyDefinedFiles()
java.util.List getViewpoints()
Viewpoint
instances
corresponding to each viewpoint declared in the file. If a file does
not declare any viewpoints, or the loader was requested not to load
viewpoints, this returns an empty list.
java.util.List<Background> getBackgrounds()
Background
instances
corresponding to each background declared in the file. If a file does
not declare any backgrounds, or the loader was requested not to load
backgrounds, this returns an empty list.
java.util.List<Fog> getFogs()
Fog
instances
corresponding to each fog declared in the file. If a file does
not declare any fogs, or the loader was requested not to load
fogs, this returns an empty list.
java.util.List<Layer> getLayers()
Layer
instances corresponding
to each layer declared in the file. If a file does not declare any
layers, or the loader was requested not to load layers, this returns
an empty list. Unlike the other methods, this method will guarantee to
return the layer instances in the order of front to rear.
If this model contains loaded layers, it will not return a root object.
java.util.List<Light> getLights()
Light
instances
corresponding to each light declared in the file. If a file does
not declare any lights, or the loader was requested not to load
lights, this returns an empty list.
java.util.List<AVRuntimeComponent> getRuntimeComponents()
AVRuntimeComponent
instances used for
controlling animation or any other runtime capabilities inherent to
the file format.If a file does not declare any runtime capabilities, or
the loader was requested not to load runtimes, this returns an empty
list.
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |