|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used for accessing to a Scene3D.
provide simple methods to manage a 3D scene.
Copyright Bruno Augier 2005
Method Summary | |
void |
addCamera3D(ICamera3D c)
Add the given Camera3D to this scene. |
void |
addLight3D(ILight3D l)
Add the given Light3D to this scene. |
void |
addMesh3D(IMesh3D m)
Add the given Mesh3D to this scene. |
void |
addScene3DObject(IScene3DObject object)
Add the given Scene3DObject to this scene. |
void |
addScene3DObjects(IScene3DObject[] objects3D)
Add multiple Scene3DObject to this scene. |
void |
clearScene3D()
Clear this scene3D. |
int |
getBackgroundColor()
Gets background color. |
ICamera3D |
getCamera3DById(int id)
Gets the Camera3D having the given id from this scene. |
ICamera3D |
getCamera3DByName(java.lang.String name)
Gets the Camera3D having the given name from this scene. |
ICamera3D |
getCurrentCamera3D()
Gets the Camera3D used for camera space. |
int |
getFogColor()
Gets fog color. |
ILight3D |
getLight3DById(int id)
Gets the Light3D having the given id from this scene. |
ILight3D |
getLight3DByName(java.lang.String name)
Gets the Light3D having the given name from this scene. |
IMesh3D |
getMesh3DById(int id)
Gets the Mesh3D having the given id from this scene. |
IMesh3D |
getMesh3DByName(java.lang.String name)
Gets the Mesh3D having the given name from this scene. |
int |
getNbCamera3D()
Gets the number of ICamera3D for this scene. |
int |
getNbLight3D()
Gets the number of ILight3D for this scene. |
int |
getNbMesh3D()
Gets the number of IMesh3D for this scene. |
int |
getNbScene3DObject()
Gets the number of Scene3DObject for this scene. |
int |
getSkyBoxMesh3DId()
Gets the Mesh3D id object used as sky box. |
java.lang.String |
getSkyBoxMesh3DName()
Gets the Mesh3D name object used as sky box. |
boolean |
isBackgroundEnabled()
Gets the backgroundEnabled flag . |
boolean |
isFogEnabled()
Gets the fogEnabled flag . |
void |
playScene3DObjectAnimator(int time)
Sets all Scene3DObject using there Scene3DObjectAnimator for the given time. |
void |
removeCamera3DById(int id)
Remove the Camera3D having the given id from this scene. |
void |
removeLight3DById(int id)
Remove the Light3D having the given id from this scene. |
void |
removeMesh3DById(int id)
Remove the Mesh3D having the given id from this scene. |
void |
removeScene3DObject(IScene3DObject object)
Remove the given Scene3DObject from this scene. |
void |
setBackgroundColor(int color)
Sets background color. |
void |
setBackgroundEnabled(boolean flag)
Sets the backgroundEnabled flag . |
void |
setCurrentCamera3DById(int id)
Sets the Camera3D to use for camera space using its id. |
void |
setCurrentCamera3DByName(java.lang.String name)
Sets the Camera3D to use for camera space using its name. |
void |
setFogColor(int color)
Sets fog color. |
void |
setFogEnabled(boolean flag)
Sets the fogEnabled flag . |
void |
setScene3DBufferSize(int maxMesh3D,
int maxLight3D,
int maxCamera3D)
Sets this scene3D internal buffer size. |
void |
setScene3DLoader(IScene3DLoader sceneLoader)
Sets a Scene3DLoader for this Scene3D |
void |
setScene3DObjectToCamera()
Sets all Scene3DObject to camera space. |
void |
setScene3DObjectToWorld()
Sets all Scene3DObject to world space. |
void |
setSkyBoxMesh3DById(int id)
Sets the Mesh3D id object to use as sky box. |
void |
setSkyBoxMesh3DByName(java.lang.String name)
Sets the Mesh3D name object to use as sky box. |
Methods inherited from interface net.dzzd.access.IScene2D |
addScene2DObject, addScene2DObjects, addShape2D, clearScene2D, getNbScene2DObject, getNbShape2D, getShape2DById, getShape2DByName, removeScene2DObject, removeShape2DById, setScene2DBufferSize |
Methods inherited from interface net.dzzd.access.IScene |
addMaterial, addSceneObject, addSceneObjects, addTexture, getMaterialById, getMaterialByName, getMonitoredSceneObject, getNbMaterial, getNbMonitoredSceneObject, getNbSceneObject, getNbTexture, getTextureById, getTextureByName, removeMaterialById, removeSceneObject, removeTextureById, setSceneBufferSize, startMonitorSceneObject, stopMonitorSceneObject, updateMonitoredSceneObjects |
Method Detail |
public void setScene3DBufferSize(int maxMesh3D, int maxLight3D, int maxCamera3D)
maxMesh3D
- maximum number of mesh3D allowed.maxLight3D
- maximum number of light3D allowed.maxCamera3D
- maximum number of camera3D allowed.public int getNbScene3DObject()
public int getNbMesh3D()
public int getNbLight3D()
public int getNbCamera3D()
public void addMesh3D(IMesh3D m)
m
- the new Mesh3D to add.public void addLight3D(ILight3D l)
l
- the new Light3D to add.public void addCamera3D(ICamera3D c)
c
- the new Camera3D to add.public void addScene3DObject(IScene3DObject object)
object
- the new Scene3DObject to add.public void addScene3DObjects(IScene3DObject[] objects3D)
objects3D
- array containing Scene3DObject to add.public void removeScene3DObject(IScene3DObject object)
object
- the Scene3DObject to remove.public void removeMesh3DById(int id)
id
- id of the Mesh3D to remove.public void removeLight3DById(int id)
id
- id of the Light3D to remove.public void removeCamera3DById(int id)
id
- id of the Camera3D to remove.public void clearScene3D()
public IMesh3D getMesh3DById(int id)
id
- id of the Mesh3D to get.public IMesh3D getMesh3DByName(java.lang.String name)
name
- name of the Mesh3D to get.public ICamera3D getCamera3DById(int id)
id
- id of the Camera3D to get.public ICamera3D getCamera3DByName(java.lang.String name)
name
- name of the Camera3D to get.public ILight3D getLight3DById(int id)
id
- id of the Light3D to get.public ILight3D getLight3DByName(java.lang.String name)
name
- name of the Light3D to get.public void setSkyBoxMesh3DByName(java.lang.String name)
name
- name of the Mesh3D to use as sky box.public void setSkyBoxMesh3DById(int id)
id
- id of the Mesh3D to use as sky box.public int getSkyBoxMesh3DId()
public java.lang.String getSkyBoxMesh3DName()
public void setCurrentCamera3DById(int id)
id
- id of the Camera3D to use for camera space.public void setCurrentCamera3DByName(java.lang.String name)
name
- name of the Camera3D to use for camera space.public ICamera3D getCurrentCamera3D()
public void setScene3DObjectToWorld()
public void setScene3DObjectToCamera()
public boolean isBackgroundEnabled()
public void setBackgroundEnabled(boolean flag)
flag
- backgroundEnabled flagpublic void setBackgroundColor(int color)
color
- new background colorpublic int getBackgroundColor()
public boolean isFogEnabled()
public void setFogEnabled(boolean flag)
flag
- fogEnabled flagpublic void setFogColor(int color)
color
- new fog colorpublic int getFogColor()
public void playScene3DObjectAnimator(int time)
time
- time in keyframer that should be set for each Scene3DObjectpublic void setScene3DLoader(IScene3DLoader sceneLoader)
sceneLoader
- a Scene3DLoader that will be added to this scene once loaded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |