|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.Spatial
com.jme3.asset.BlenderKey.LoadingResults
public static class BlenderKey.LoadingResults
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 java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int getLoadedFeatures()
FeaturesToLoad
public void addScene(Node scene)
scene
- scene to be added to the result setpublic void addObject(Node object)
object
- object to be added to the result setpublic void addMaterial(Material material)
material
- material to be added to the result setpublic void addTexture(Texture texture)
texture
- texture to be added to the result setpublic void addCamera(Camera camera)
camera
- camera to be added to the result setpublic void addLight(Light light)
addLight
in class Spatial
light
- light to be added to the result setpublic java.util.List<Node> getScenes()
public java.util.List<Node> getObjects()
public java.util.List<Material> getMaterials()
public java.util.List<Texture> getTextures()
public java.util.List<AnimData> getAnimations()
public java.util.List<Camera> getCameras()
public java.util.List<Light> getLights()
public int collideWith(Collidable other, CollisionResults results) throws UnsupportedCollisionException
Collidable
other
- The object to check collision againstresults
- Will contain the list of CollisionResult
s.
UnsupportedCollisionException
public void updateModelBound()
Spatial
updateModelBound
recalculates the bounding object for this
Spatial.
updateModelBound
in class Spatial
public void setModelBound(BoundingVolume modelBound)
Spatial
setModelBound
sets the bounding object for this Spatial.
setModelBound
in class Spatial
modelBound
- the bounding object for this spatial.public int getVertexCount()
getVertexCount
in class Spatial
public int getTriangleCount()
getTriangleCount
in class Spatial
public Spatial deepClone()
deepClone
in class Spatial
Spatial.clone()
public void depthFirstTraversal(SceneGraphVisitor visitor)
Spatial
depthFirstTraversal
in class Spatial
protected void breadthFirstTraversal(SceneGraphVisitor visitor, java.util.Queue<Spatial> queue)
breadthFirstTraversal
in class Spatial
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |