|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addMaterial(IMaterial m)
Add the given Material to this scene. |
void |
addSceneObject(ISceneObject object)
Add the given SceneObject to this scene. |
void |
addSceneObjects(ISceneObject[] objects)
Add multiple SceneObject to this scene. |
void |
addTexture(ITexture t)
Add the given Texture to this scene. |
IMaterial |
getMaterialById(int id)
Gets the Material having the given id from this scene. |
IMaterial |
getMaterialByName(java.lang.String name)
Gets the Material having the given name from this scene. |
IMonitoredSceneObject |
getMonitoredSceneObject(int idx)
Gets a MonitoredSceneObject from the monitored object stack of this scene. |
int |
getNbMaterial()
Gets the number of IMaterial for this scene. |
int |
getNbMonitoredSceneObject()
Gets total number of SceneObject currently monitored. |
int |
getNbSceneObject()
Gets the number of ISceneObject for this scene. |
int |
getNbTexture()
Gets the number of ITexture for this scene. |
ITexture |
getTextureById(int id)
Gets the Texture having the given id from this scene. |
ITexture |
getTextureByName(java.lang.String name)
Gets the Texture having the given name from this scene. |
void |
removeMaterialById(int id)
Remove the Material having the given id from this scene. |
void |
removeSceneObject(ISceneObject object)
Remove the given Scene3DObject from this scene. |
void |
removeTextureById(int id)
Remove the Texture having the given id from this scene. |
void |
setSceneBufferSize(int maxMaterial,
int maxTexture)
Sets this scene internal buffer size. |
void |
startMonitorSceneObject(IMonitoredSceneObject obj)
Sets an object to monitor into the monitored object stack of this scene. |
void |
stopMonitorSceneObject(int idx)
Remove an object from the monitored object stack of this scene. |
void |
updateMonitoredSceneObjects()
Check all monitored SceneObject and update them or the scene3D if needed. |
Method Detail |
public void setSceneBufferSize(int maxMaterial, int maxTexture)
maxMaterial
- maximum number of material allowed.maxTexture
- maximum number of texture allowed.public int getNbSceneObject()
public int getNbMaterial()
public int getNbTexture()
public void addSceneObject(ISceneObject object)
object
- the new SceneObject to add.public void addSceneObjects(ISceneObject[] objects)
objects
- array containing SceneObject to add.public void addMaterial(IMaterial m)
m
- the new Material to add.public void addTexture(ITexture t)
t
- the new Texture to add.public void removeSceneObject(ISceneObject object)
object
- the Scene3DObject to remove.public void removeMaterialById(int id)
id
- id of the Material to remove.public void removeTextureById(int id)
id
- id of the Texture to remove.public IMaterial getMaterialById(int id)
id
- id of the Material to get.public IMaterial getMaterialByName(java.lang.String name)
name
- name of the Material to get.public ITexture getTextureById(int id)
id
- id of the Texture to get.public ITexture getTextureByName(java.lang.String name)
name
- name of the Texture to get.public void updateMonitoredSceneObjects()
public int getNbMonitoredSceneObject()
public void startMonitorSceneObject(IMonitoredSceneObject obj)
obj
- MonitoredSceneObject to add into the monitored object stack of this scenepublic void stopMonitorSceneObject(int idx)
idx
- Index of the MonitoredSceneObject to remove from the monitored object stack of this scenepublic IMonitoredSceneObject getMonitoredSceneObject(int idx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |