public class VirtualUniverse extends Object
A VirtualUniverse object defines methods to enumerate its Locale objects and to remove them from the virtual universe.
For more information, see the Introduction to the Java 3D API and Scene Graph Superstructure documents.
Locale
Constructor and Description |
---|
VirtualUniverse()
Constructs a new VirtualUniverse.
|
Modifier and Type | Method and Description |
---|---|
void |
addGraphStructureChangeListener(GraphStructureChangeListener listener)
Adds the specified GraphStructureChangeListener to the set of listeners
that will be notified when the graph structure is changed on a live
scene graph.
|
static void |
addRenderingErrorListener(RenderingErrorListener listener)
Adds the specified RenderingErrorListener to the set of listeners
that will be notified when a rendering error is detected.
|
void |
addShaderErrorListener(ShaderErrorListener listener)
Adds the specified ShaderErrorListener to the set of listeners
that will be notified when a programmable shader error is
detected on a live scene graph.
|
Enumeration<Locale> |
getAllLocales()
Returns the enumeration object of all locales in this virtual universe.
|
static int |
getJ3DThreadPriority()
Retrieves that priority of Java 3D's threads.
|
static Map |
getProperties()
Returns a read-only Map object containing key-value pairs that
define various global properties for Java 3D.
|
int |
numLocales()
Returns the number of locales.
|
void |
removeAllLocales()
Removes all Locales and their associates branch graphs from
this universe.
|
void |
removeGraphStructureChangeListener(GraphStructureChangeListener listener)
Removes the specified GraphStructureChangeListener from the set of listeners.
|
void |
removeLocale(Locale locale)
Removes a Locale and its associates branch graphs from this
universe.
|
static void |
removeRenderingErrorListener(RenderingErrorListener listener)
Removes the specified RenderingErrorListener from the set of
listeners.
|
void |
removeShaderErrorListener(ShaderErrorListener listener)
Removes the specified ShaderErrorListener from the set of
listeners.
|
static void |
setJ3DThreadPriority(int priority)
Sets the priority of all Java 3D threads to the specified
value.
|
public void removeLocale(Locale locale)
locale
- the Locale to be removed.IllegalArgumentException
- if the specified Locale is not
attached to this VirtualUniverse.public void removeAllLocales()
public Enumeration<Locale> getAllLocales()
public int numLocales()
public static void setJ3DThreadPriority(int priority)
priority
- the new thread priorityIllegalArgumentException
- if the priority is not in
the range MIN_PRIORITY to MAX_PRIORITYSecurityException
- if the priority is greater than
that of the calling threadpublic static int getJ3DThreadPriority()
public static final Map getProperties()
The set of global Java 3D properties always includes values for the following keys:
Key (String) | Value Type |
j3d.version |
String |
j3d.vendor |
String |
j3d.specification.version |
String |
j3d.specification.vendor |
String |
j3d.pipeline |
String |
j3d.renderer |
String |
The descriptions of the values returned for each key are as follows:
j3d.version
j3d.vendor
j3d.specification.version
j3d.specification.vendor
j3d.pipeline
j3d.renderer
public void addGraphStructureChangeListener(GraphStructureChangeListener listener)
listener
- the listener to add to the set.public void removeGraphStructureChangeListener(GraphStructureChangeListener listener)
listener
- the listener to remove from the set.public void addShaderErrorListener(ShaderErrorListener listener)
listener
- the listener to add to the set.public void removeShaderErrorListener(ShaderErrorListener listener)
listener
- the listener to remove from the set.public static void addRenderingErrorListener(RenderingErrorListener listener)
listener
- the listener to add to the set.public static void removeRenderingErrorListener(RenderingErrorListener listener)
listener
- the listener to remove from the set.Copyright © 2016–2022 SciJava. All rights reserved.