|
Jazz3D API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sygem.jazz3d3.Object3d | +--com.sygem.jazz3d3.loader.Model3d | +--com.sygem.jazz3d3.vrml.VRMLModel3d
Create an object from a VRML 3D model file.
Model3d
,
LoadFactory
,
LoaderVRML
Constructor Summary | |
VRMLModel3d(double x,
double y,
double z)
Default constructor. |
Method Summary | |
void |
addCamera(Camera3d c)
Add a camera to this object. |
void |
addLight(Light l)
Add a light to this object. |
void |
centerScene()
Centers the scene around the origin. |
Camera3d[] |
getCameras()
Returns an array full of all the cameras associated with this scene. |
Fog |
getFogNode()
Returns the Fog node of this object (null by default) |
Light[] |
getLights()
Returns an array full of all the lights associated with this scene. |
WorldInfo |
getWorldInfo()
Returns the WorldInfo node of this object (null by default) |
void |
scaleScene(double s)
Scale the entire VRML scene. |
void |
scaleScene(double x,
double y,
double z)
Scale the entire VRML scene. |
void |
setFogNode(Fog f)
Sets the fog of this object |
void |
setWorldInfo(WorldInfo nwi)
Sets the WorldInfo node of this object |
Methods inherited from class com.sygem.jazz3d3.loader.Model3d |
beginLoadingInThread, finishLoadingInThread, getLoadProgress, loading, loadModel, loadModelInThread |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VRMLModel3d(double x, double y, double z)
x
- The x position of the center of the modely
- The y position of the center of the modelz
- The z position of the center of the modelMethod Detail |
public void scaleScene(double x, double y, double z)
NOTE: The lights and cameras associated with this scene arenot affected by this operation.
public void scaleScene(double s)
NOTE: The lights and cameras associated with this scene arenot affected by this operation.
s
- The size of the scene after the operationpublic void centerScene()
NOTE: The lights and cameras associated with this scene arenot affected by this operation.
public final void addLight(Light l)
l
- A LightLight
public final Light[] getLights()
public final void addCamera(Camera3d c)
c
- A CameraCamera3d
public final Camera3d[] getCameras()
public final void setFogNode(Fog f)
f
- A Fog NodeFog
public final Fog getFogNode()
public final void setWorldInfo(WorldInfo nwi)
nwi
- A WorldInfo NodeWorldInfo
public final WorldInfo getWorldInfo()
|
©2001 SyGem Software |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |