net.jbeans.j3d.universe
Class Locale

java.lang.Object
  extended byjavax.media.j3d.Locale
      extended bynet.jbeans.j3d.universe.Locale
All Implemented Interfaces:
BranchGroupDetachable

final class Locale
extends javax.media.j3d.Locale
implements BranchGroupDetachable

Replace javax.media.j3d.Locale with this class in an app to view the SceneGraph. When you include this class in place of javax.media.j3d.Locale and run the application an extra window will be displayed with a graphical representation of the Scene Graph. The tool uses the NodeEditors to allow users to edit parameters in the scene graph nodes. NOTE the changes only take effect in the running app, the source code is not update. For Scene Graph Nodes that have a Bounds object, the user can ask for the bounds to be displayed while the application runs. A common bug in Java3D applications is the ommision of Bounds on Lights, Behaviors etc. When you use ViewerLocale all nodes in the SceneGraph are checked to ensure that the Bounds are not null.

Version:
$Revision: 1.3 $
Author:
Masahiro Takatsuka (masa@jbeans.net)
See Also:
Locale, BranchGroupDetachable

Field Summary
 
Fields inherited from class javax.media.j3d.Locale
 
Constructor Summary
(package private) Locale(javax.media.j3d.VirtualUniverse vu)
          Construct a new Locale object
(package private) Locale(javax.media.j3d.VirtualUniverse vu, javax.media.j3d.HiResCoord hrc)
          Construct a new Locale object
(package private) Locale(javax.media.j3d.VirtualUniverse vu, int[] x, int[] y, int[] z)
          Construct a new Locale object
 
Method Summary
 void addBranchGraph(javax.media.j3d.BranchGroup bg)
          Adds a new BranchGroup object.
 void detachBranchGraph(javax.media.j3d.BranchGroup bg)
          Detaches the specified BranchGroup object.
 java.util.Vector getDetachableBranchGroups()
          Get a list of all the detachable subgraphs.
 void setView(javax.media.j3d.View v)
          Sets a View object for scene graph editing.
 
Methods inherited from class javax.media.j3d.Locale
finalize, getAllBranchGraphs, getHiRes, getVirtualUniverse, numBranchGraphs, pickAll, pickAllSorted, pickAny, pickClosest, removeBranchGraph, replaceBranchGraph, setHiRes, setHiRes
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Locale

Locale(javax.media.j3d.VirtualUniverse vu)
Construct a new Locale object


Locale

Locale(javax.media.j3d.VirtualUniverse vu,
       javax.media.j3d.HiResCoord hrc)
Construct a new Locale object


Locale

Locale(javax.media.j3d.VirtualUniverse vu,
       int[] x,
       int[] y,
       int[] z)
Construct a new Locale object

Method Detail

getDetachableBranchGroups

public final java.util.Vector getDetachableBranchGroups()
Get a list of all the detachable subgraphs.

Specified by:
getDetachableBranchGroups in interface BranchGroupDetachable

setView

public final void setView(javax.media.j3d.View v)
Sets a View object for scene graph editing.


addBranchGraph

public final void addBranchGraph(javax.media.j3d.BranchGroup bg)
Adds a new BranchGroup object.


detachBranchGraph

public final void detachBranchGraph(javax.media.j3d.BranchGroup bg)
Detaches the specified BranchGroup object.



Copyright © 1995-2004 net.jbeans. All Rights Reserved.