Assimp  v3.1.1 (June 2014)
jassimp.AiScene Class Reference

The root structure of the imported data. More...

Public Member Functions

List< AiAnimationgetAnimations ()
 Returns the list of animations. More...
 
List< AiCameragetCameras ()
 Returns the list of cameras. More...
 
List< AiLightgetLights ()
 Returns the list of light sources. More...
 
List< AiMaterialgetMaterials ()
 Returns the list of materials. More...
 
List< AiMeshgetMeshes ()
 Returns the meshes contained in the scene. More...
 
int getNumAnimations ()
 Returns the number of animations in the scene. More...
 
int getNumCameras ()
 Returns the number of cameras in the scene. More...
 
int getNumLights ()
 Returns the number of light sources in the scene. More...
 
int getNumMaterials ()
 Returns the number of materials in the scene. More...
 
int getNumMeshes ()
 Returns the number of meshes contained in the scene. More...
 
String toString ()
 

Detailed Description

The root structure of the imported data.

Everything that was imported from the given file can be accessed from here.

Jassimp copies all data into "java memory" during import and frees resources allocated by native code after scene loading is completed. No special care has to be taken for freeing resources, unreferenced jassimp objects (including the scene itself) are eligible to garbage collection like any other java object.

Member Function Documentation

§ getAnimations()

List<AiAnimation> jassimp.AiScene.getAnimations ( )
inline

Returns the list of animations.

Returns
the list of animations

§ getCameras()

List<AiCamera> jassimp.AiScene.getCameras ( )
inline

Returns the list of cameras.

Cameras are fully optional, the returned list may be empty

Returns
a possibly empty list of cameras

§ getLights()

List<AiLight> jassimp.AiScene.getLights ( )
inline

Returns the list of light sources.

Light sources are fully optional, the returned list may be empty

Returns
a possibly empty list of lights

§ getMaterials()

List<AiMaterial> jassimp.AiScene.getMaterials ( )
inline

Returns the list of materials.

Use the index given in each aiMesh structure to access this array. If the AiSceneFlag#INCOMPLETE flag is not set there will always be at least ONE material.

Returns
the list of materials

§ getMeshes()

List<AiMesh> jassimp.AiScene.getMeshes ( )
inline

Returns the meshes contained in the scene.

If there are no meshes in the scene, an empty collection is returned

Returns
the list of meshes

§ getNumAnimations()

int jassimp.AiScene.getNumAnimations ( )
inline

Returns the number of animations in the scene.

This method is provided for completeness reasons. It will return the same value as getAnimations().size()

Returns
the number of materials

§ getNumCameras()

int jassimp.AiScene.getNumCameras ( )
inline

Returns the number of cameras in the scene.

This method is provided for completeness reasons. It will return the same value as getCameras().size()

Returns
the number of cameras

§ getNumLights()

int jassimp.AiScene.getNumLights ( )
inline

Returns the number of light sources in the scene.

This method is provided for completeness reasons. It will return the same value as getLights().size()

Returns
the number of lights

§ getNumMaterials()

int jassimp.AiScene.getNumMaterials ( )
inline

Returns the number of materials in the scene.

This method is provided for completeness reasons. It will return the same value as getMaterials().size()

Returns
the number of materials

§ getNumMeshes()

int jassimp.AiScene.getNumMeshes ( )
inline

Returns the number of meshes contained in the scene.

This method is provided for completeness reasons. It will return the same value as getMeshes().size()

Returns
the number of meshes

§ toString()

String jassimp.AiScene.toString ( )
inline

The documentation for this class was generated from the following file: