|
|||||||||
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 |
addMaterial(IMaterial m)
Add the given Material to this scene. |
void |
addMesh3D(IMesh3D m)
Add the given Mesh3D to this scene. |
void |
addSceneObject(ISceneObject object)
Add the given SceneObject to this scene. |
void |
addTexture(ITexture t)
Add the given Texture 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. |
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. |
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. |
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 total number of Camera3D in this Scene3D |
int |
getNbLight3D()
Gets the total number of Light3D in this Scene3D |
int |
getNbMaterial()
Gets the total number of Material in this Scene3D |
int |
getNbMesh3D()
Gets the total number of Mesh3D in this Scene3D |
int |
getNbMonitoredObject()
Gets total number of SceneObject currently monitored. |
int |
getNbTexture()
Gets the total number of Texture in this Scene3D |
int |
getSkyBoxMesh3DId()
Gets the Mesh3D id object to use as sky box. |
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. |
boolean |
isBackgroundEnabled()
Gets the backgroundEnabled flag . |
void |
loadScene3DFrom3DS(java.lang.String baseURL,
java.lang.String file)
Asynchroneously load a scene3D from a 3ds file using an URL. |
void |
playScene3DObjectAnimator()
Update all Scene3DObject having a Scene3DObjectAnimator. |
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 |
removeMaterialById(int id)
Remove the Material 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 |
removeTextureById(int id)
Remove the Texture having the given id 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 |
setScene3DBufferSize(int maxMesh3D,
int maxLight3D,
int maxCamera3D,
int maxMaterial,
int maxTexture)
Sets this scene3D internal buffer size. |
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. |
void |
updateMonitoredObjects()
Check all monitored SceneObject and update them or the scene3D if needed. |
Method Detail |
public void setScene3DBufferSize(int maxMesh3D, int maxLight3D, int maxCamera3D, int maxMaterial, int maxTexture)
maxMesh3D
- maximum number of mesh3D allowed.maxLight3D
- maximum number of light3D allowed.maxCamera3D
- maximum number of camera3D allowed.maxMaterial
- maximum number of material allowed.maxTexture
- maximum number of texture allowed.public void clearScene3D()
public void loadScene3DFrom3DS(java.lang.String baseURL, java.lang.String file)
baseURL
- the base URL location.file
- the file name.public void setBackgroundColor(int color)
color
- new background colorpublic int getBackgroundColor()
public int getNbMonitoredObject()
public int getNbMesh3D()
public int getNbLight3D()
public int getNbCamera3D()
public int getNbMaterial()
public int getNbTexture()
public void addSceneObject(ISceneObject object)
object
- the new SceneObject to add.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 addMaterial(IMaterial m)
m
- the new Material to add.public void addTexture(ITexture t)
t
- the new Texture 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 removeMaterialById(int id)
id
- id of the Material to remove.public void removeTextureById(int id)
id
- id of the Texture to remove.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 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 setSkyBoxMesh3DById(int id)
id
- id of the Mesh3D to use as sky box.public int getSkyBoxMesh3DId()
public void setSkyBoxMesh3DByName(java.lang.String name)
name
- name of the Mesh3D to use as sky box.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 void updateMonitoredObjects()
public void playScene3DObjectAnimator()
public boolean isBackgroundEnabled()
public void setBackgroundEnabled(boolean flag)
flag
- backgroundEnabled flag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |