Class PerFrameManager
java.lang.Object
java.lang.Thread
org.web3d.vrml.renderer.norender.browser.PerFrameManager
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new manager for the given scene. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Run method from the thread.void
setEnable
(boolean state) Marker to say that the manager should be running a real scene or should just idly cycle away.void
setErrorReporter
(org.j3d.util.ErrorReporter reporter) Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion.void
shutdown()
Shut down the frame thread so that the code may exit.Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
PerFrameManager
Construct a new manager for the given scene. The manager starts with everything disabled.- Parameters:
eme
- The evaluator to use.- Throws:
IllegalArgumentException
-
-
Method Details
-
run
-
setErrorReporter
public void setErrorReporter(org.j3d.util.ErrorReporter reporter) Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. Setting a value of null will clear the currently set reporter. If one is already set, the new value replaces the old.- Parameters:
reporter
- The instance to use or null
-
setEnable
public void setEnable(boolean state) Marker to say that the manager should be running a real scene or should just idly cycle away.- Parameters:
state
- Whether to be enabled or not
-
shutdown
public void shutdown()Shut down the frame thread so that the code may exit.
-