|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.j3d.utils.universe.Viewer
The Viewer class holds all the information that describes the physical and virtual "presence" in the Java 3D universe. The Viewer object consists of:
Canvas3D
,
PhysicalEnvironment
,
PhysicalBody
,
View
,
ViewerAvatar
Field Summary | |
protected ViewerAvatar |
avatar
|
protected Canvas3D |
canvas
|
protected java.awt.Frame |
j3dFrame
|
protected java.awt.Panel |
j3dPanel
|
protected static PhysicalBody |
physicalBody
|
protected static PhysicalEnvironment |
physicalEnvironment
|
protected View |
view
|
Constructor Summary | |
Viewer()
Creates a default viewer object. |
|
Viewer(Canvas3D userCanvas)
Creates a default viewer object. |
|
Viewer(Canvas3D userCanvas,
java.net.URL userConfig)
Creates a default viewer object. |
|
Viewer(java.net.URL userConfig)
Creates a default viewer object. |
Method Summary | |
AudioDevice |
createAudioDevice()
Used to create and initialize the AudioDevice, used for sound rendering. |
ViewerAvatar |
getAvatar()
Gets the geometry associated with the viewer's avatar. |
Canvas3D |
getCanvases()
Returns the canvas associated with this Viewer object. |
java.awt.Frame |
getFrame()
Returns the Frame created by this Viewer object. |
java.awt.Panel |
getPanel()
Returns the Panel created by this Viewer object. |
PhysicalBody |
getPhysicalBody()
Returns the PhysicalBody object associated with the Viewer object. |
PhysicalEnvironment |
getPhysicalEnvironment()
Returns the PhysicalEnvironment object associated with the Viewer object. |
View |
getView()
Returns the View object associated with the Viewer object. |
void |
setAvatar(ViewerAvatar avatar)
Sets the geometry to be associated with the viewer's avatar. |
void |
setViewingPlatform(ViewingPlatform platform)
Set the ViewingPlatform object used by this Viewer. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected Canvas3D canvas
protected View view
protected ViewerAvatar avatar
protected static PhysicalBody physicalBody
protected static PhysicalEnvironment physicalEnvironment
protected java.awt.Frame j3dFrame
protected java.awt.Panel j3dPanel
Constructor Detail |
public Viewer()
public Viewer(Canvas3D userCanvas)
userCanvas
- The Canavs3D object to render to. If this object is
null a single RGB, double buffered and depth buffered Canvas3D
object is created.public Viewer(java.net.URL userConfig)
userConfig
- The URL of the user configuration file used to
initialize the PhysicalBody object. If null, the default PhysicalBody
values are used.public Viewer(Canvas3D userCanvas, java.net.URL userConfig)
userCanvas
- The Canavs3D object to render to. If this object is
null a single RGB, double buffered and depth buffered Canvas3D
object is created.userConfig
- The URL of the user configuration file used to
initialize the PhysicalBody object. If null, the default PhysicalBody
values are used.Method Detail |
public View getView()
public void setViewingPlatform(ViewingPlatform platform)
platform
- The ViewingPlatform object to set for this
Viewer object. Use null to unset the current value and
not assign assign a new ViewingPlatform object.public void setAvatar(ViewerAvatar avatar)
avatar
- The geometry to associate with this Viewer object.
Passing in null will cause any geometry associated with the Viewer
to be removed from the scen graph.public ViewerAvatar getAvatar()
public PhysicalBody getPhysicalBody()
public PhysicalEnvironment getPhysicalEnvironment()
public Canvas3D getCanvases()
public java.awt.Frame getFrame()
public java.awt.Panel getPanel()
public AudioDevice createAudioDevice()
BranchGroup
- The BranchGroup to attach to this Universe's Locale.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |