Aviatrix3D
2.1.0

org.j3d.aviatrix3d.output.graphics
Interface SurfaceMonitor


public interface SurfaceMonitor

Internal class that deals with the current state of the canvas and whether it should have a valid context right now.

Based on concepts originally developed by Benoit Vautrin of EDF France. See http://bugzilla.j3d.org/show_bug.cgi?id=28 Bug #28 for more details.

Version:
$Revision: 3.1 $
Author:
Justin Couch

Method Summary
 boolean isVisible()
          Check to see if the surface is visible.
 boolean requiresNewContext()
          Check to see if we should generate a new context now.
 void setErrorReporter(org.j3d.util.ErrorReporter reporter)
          Register an error reporter with the engine so that any errors generated by the node's internals can be reported in a nice, pretty fashion.
 

Method Detail

setErrorReporter

void setErrorReporter(org.j3d.util.ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the node's internals 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

isVisible

boolean isVisible()
Check to see if the surface is visible. If it is not visible, we don't want to do any rendering.

Returns:
True when the surface is really visible

requiresNewContext

boolean requiresNewContext()
Check to see if we should generate a new context now.

Returns:
true when the conditions require grabbing a new context

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org