com.jme3.asset
Class BlenderKey.LoadingResults

java.lang.Object
  extended by com.jme3.scene.Spatial
      extended by com.jme3.asset.BlenderKey.LoadingResults
All Implemented Interfaces:
CloneableSmartAsset, Collidable, Savable, java.lang.Cloneable
Enclosing class:
BlenderKey

public static class BlenderKey.LoadingResults
extends Spatial

This class holds the loading results according to the given loading flag.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme3.scene.Spatial
Spatial.BatchHint, Spatial.CullHint
 
Field Summary
 
Fields inherited from class com.jme3.scene.Spatial
batchHint, controls, cullHint, frustrumIntersects, key, localLights, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_LIGHTLIST, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldTransform
 
Method Summary
 void addCamera(Camera camera)
          This method adds a camera to the result set.
 void addLight(Light light)
          This method adds a light to the result set.
 void addMaterial(Material material)
          This method adds a material to the result set.
 void addObject(Node object)
          This method adds an object to the result set.
 void addScene(Node scene)
          This method adds a scene to the result set.
 void addTexture(Texture texture)
          This method adds a texture to the result set.
protected  void breadthFirstTraversal(SceneGraphVisitor visitor, java.util.Queue<Spatial> queue)
           
 int collideWith(Collidable other, CollisionResults results)
          Check collision with another Collidable.
 Spatial deepClone()
           
 void depthFirstTraversal(SceneGraphVisitor visitor)
          Visit each scene graph element ordered by DFS
 java.util.List<AnimData> getAnimations()
          This method returns all loaded animations.
 java.util.List<Camera> getCameras()
          This method returns all loaded cameras.
 java.util.List<Light> getLights()
          This method returns all loaded lights.
 int getLoadedFeatures()
          This method returns a bitwise flag describing what features of the blend file will be included in the result.
 java.util.List<Material> getMaterials()
          This method returns all loaded materials.
 java.util.List<Node> getObjects()
          This method returns all loaded objects.
 java.util.List<Node> getScenes()
          This method returns all loaded scenes.
 java.util.List<Texture> getTextures()
          This method returns all loaded textures.
 int getTriangleCount()
           
 int getVertexCount()
           
 void setModelBound(BoundingVolume modelBound)
          setModelBound sets the bounding object for this Spatial.
 void updateModelBound()
          updateModelBound recalculates the bounding object for this Spatial.
 
Methods inherited from class com.jme3.scene.Spatial
addControl, breadthFirstTraversal, center, checkCulling, clone, clone, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, read, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLightListRefresh, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setLodLevel, setMaterial, setName, setParent, setQueueBucket, setShadowMode, setTransformRefresh, setUserData, toString, updateGeometricState, updateLogicalState, updateWorldBound, updateWorldLightList, updateWorldTransforms, worldToLocal, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getLoadedFeatures

public int getLoadedFeatures()
This method returns a bitwise flag describing what features of the blend file will be included in the result.

Returns:
bitwise mask of features that are to be loaded
See Also:
FeaturesToLoad

addScene

public void addScene(Node scene)
This method adds a scene to the result set.

Parameters:
scene - scene to be added to the result set

addObject

public void addObject(Node object)
This method adds an object to the result set.

Parameters:
object - object to be added to the result set

addMaterial

public void addMaterial(Material material)
This method adds a material to the result set.

Parameters:
material - material to be added to the result set

addTexture

public void addTexture(Texture texture)
This method adds a texture to the result set.

Parameters:
texture - texture to be added to the result set

addCamera

public void addCamera(Camera camera)
This method adds a camera to the result set.

Parameters:
camera - camera to be added to the result set

addLight

public void addLight(Light light)
This method adds a light to the result set.

Overrides:
addLight in class Spatial
Parameters:
light - light to be added to the result set

getScenes

public java.util.List<Node> getScenes()
This method returns all loaded scenes.

Returns:
all loaded scenes

getObjects

public java.util.List<Node> getObjects()
This method returns all loaded objects.

Returns:
all loaded objects

getMaterials

public java.util.List<Material> getMaterials()
This method returns all loaded materials.

Returns:
all loaded materials

getTextures

public java.util.List<Texture> getTextures()
This method returns all loaded textures.

Returns:
all loaded textures

getAnimations

public java.util.List<AnimData> getAnimations()
This method returns all loaded animations.

Returns:
all loaded animations

getCameras

public java.util.List<Camera> getCameras()
This method returns all loaded cameras.

Returns:
all loaded cameras

getLights

public java.util.List<Light> getLights()
This method returns all loaded lights.

Returns:
all loaded lights

collideWith

public int collideWith(Collidable other,
                       CollisionResults results)
                throws UnsupportedCollisionException
Description copied from interface: Collidable
Check collision with another Collidable.

Parameters:
other - The object to check collision against
results - Will contain the list of CollisionResults.
Returns:
how many collisions were found between this and other
Throws:
UnsupportedCollisionException

updateModelBound

public void updateModelBound()
Description copied from class: Spatial
updateModelBound recalculates the bounding object for this Spatial.

Specified by:
updateModelBound in class Spatial

setModelBound

public void setModelBound(BoundingVolume modelBound)
Description copied from class: Spatial
setModelBound sets the bounding object for this Spatial.

Specified by:
setModelBound in class Spatial
Parameters:
modelBound - the bounding object for this spatial.

getVertexCount

public int getVertexCount()
Specified by:
getVertexCount in class Spatial
Returns:
The sum of all verticies under this Spatial.

getTriangleCount

public int getTriangleCount()
Specified by:
getTriangleCount in class Spatial
Returns:
The sum of all triangles under this Spatial.

deepClone

public Spatial deepClone()
Specified by:
deepClone in class Spatial
Returns:
Similar to Spatial.clone() except will create a deep clone of all geometry's meshes, normally this method shouldn't be used instead use Spatial.clone()
See Also:
Spatial.clone()

depthFirstTraversal

public void depthFirstTraversal(SceneGraphVisitor visitor)
Description copied from class: Spatial
Visit each scene graph element ordered by DFS

Specified by:
depthFirstTraversal in class Spatial

breadthFirstTraversal

protected void breadthFirstTraversal(SceneGraphVisitor visitor,
                                     java.util.Queue<Spatial> queue)
Specified by:
breadthFirstTraversal in class Spatial