t3.hrd.renderer
Class Projector

java.lang.Object
  extended by t3.hrd.renderer.Projector

public class Projector
extends java.lang.Object

Class representing a single projector.

Author:
pjt40

Nested Class Summary
static class Projector.ProjectorOpeningException
          Exception that can be thrown if we cannot open the OpenGL window
 
Field Summary
 HRDRenderer hrdRenderer
          Parent HRDRenderer
 java.util.Set<Link> linksVisibleInThisProjectorsDeskSpaceImmutable
           
 java.util.Set<Tile> tilesVisibleInThisProjectorsDeskSpaceImmutable
           
 ProjectorTransforms transforms
          Transforms used by this projector
 
Method Summary
static java.awt.Frame createOGLWindow(ProjectorConfig c, javax.media.opengl.GLEventListener r, javax.media.opengl.GLContext shareWith)
          Creates an OpenGL window
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transforms

public final ProjectorTransforms transforms
Transforms used by this projector


hrdRenderer

public final HRDRenderer hrdRenderer
Parent HRDRenderer


linksVisibleInThisProjectorsDeskSpaceImmutable

public final java.util.Set<Link> linksVisibleInThisProjectorsDeskSpaceImmutable

tilesVisibleInThisProjectorsDeskSpaceImmutable

public final java.util.Set<Tile> tilesVisibleInThisProjectorsDeskSpaceImmutable
Method Detail

createOGLWindow

public static java.awt.Frame createOGLWindow(ProjectorConfig c,
                                             javax.media.opengl.GLEventListener r,
                                             javax.media.opengl.GLContext shareWith)
                                      throws Projector.ProjectorOpeningException
Creates an OpenGL window

Parameters:
c - Desired location of the window
r - Event listener for the JOGL canvas
shareWith - If not null, then JOGL canvas's OpenGL context must share with this context.
Returns:
Frame containting the JOGL canvas
Throws:
Projector.ProjectorOpeningException - If we cannot create the window as expected