|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwobs.scene3d.player.X3DNode
wobs.scene3d.player.X3DScene
public class X3DScene
This class represent a X3D/VRML scene graph by acting as the root node for the
scene graph hierarchy.
Access into the scene graph is given by methods found
in the super-class X3DNode, and is used in the same way as from any other
node. For a listing of fields contained in a X3DScene object see the class wobs.scene3d.nodes.Scene.
An instance of this class can be accessed from the class Browser.
Browser| Field Summary |
|---|
| Fields inherited from class wobs.scene3d.player.X3DNode |
|---|
name, type |
| Method Summary | |
|---|---|
void |
addRoute(X3DField sourceField,
X3DField destinationField)
Adds a X3D/VRML Route between two fields of the same type. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
void |
deleteRoute(X3DField sourceField,
X3DField destinationField)
Deletes an existing Route between the two fields specified. |
X3DNode |
getCurrentView()
Creates a new Viewpoint node from the current view. |
void |
setViewpoint(X3DNode viewpoint)
Sets the current view to the specified viewpoint node. |
void |
viewpointMove(float moveX,
float moveY,
float moveZ)
Moves the viewpoint. |
void |
viewpointRotN(float Nx,
float Ny,
float Nz,
float angle)
Rotates the viewpoint. |
| Methods inherited from class wobs.scene3d.player.X3DNode |
|---|
addChild, getChildren, getField, getName, getNode, getNode, getParent, getType, move, removeChild, rotN, scale |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.Object clone()
clone in class X3DNode
public void addRoute(X3DField sourceField,
X3DField destinationField)
sourceField - The source fielddestinationField - The destination field
public void deleteRoute(X3DField sourceField,
X3DField destinationField)
sourceField - The source fielddestinationField - The destination fieldpublic void setViewpoint(X3DNode viewpoint)
viewpoint - The new viewpoint to use
public void viewpointMove(float moveX,
float moveY,
float moveZ)
moveX - the movement along the x axismoveY - the movement along the y axismoveZ - the movement along the z axis
public void viewpointRotN(float Nx,
float Ny,
float Nz,
float angle)
viewpointRotN(0, 1, 0, Math.PI/4)
Nx - the x coordinate of the normalised rotation vectorNy - the y coordinate of the normalised rotation vectorNz - the z coordinate of the normalised rotation vectorangle - the rotation angle, in radians (1 radian = PI/180 degrees)public X3DNode getCurrentView()
Viewpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||