de.javagl.swogl.rendering
Class SwoglApplicationJOGL

java.lang.Object
  extended by de.javagl.swogl.rendering.SwoglApplicationJOGL
All Implemented Interfaces:
de.javagl.swogl.SwoglApplication, de.javagl.swogl.SwoglSetup

public class SwoglApplicationJOGL
extends java.lang.Object
implements de.javagl.swogl.SwoglApplication

Implementation of a SwoglApplication using JOGL


Constructor Summary
SwoglApplicationJOGL()
          Creates a new SwoglApplicationJOGL
SwoglApplicationJOGL(boolean useGLJPanel)
          Creates a new SwoglApplicationJOGL.
 
Method Summary
protected  void applyLightSetup()
          Apply the LightSetup of this application
protected  void applyView()
          Apply the current view state to GL.
 de.javagl.swogl.scene.MutableCamera getCamera()
           
 de.javagl.swogl.scene.LightSetup getLightSetup()
           
 de.javagl.swogl.PickingRayComputer getPickingRayComputer()
           
 java.awt.Component getRenderComponent()
           
 de.javagl.swogl.SwoglComponentHandler getSwoglComponentHandler()
           
protected  SwoglRendererJOGL getSwoglRenderer()
          Returns the SwoglRenderer that is used in this application
 de.javagl.swogl.scene.View getView()
           
protected  void prepareRender()
          Prepares the rendering pass
protected  void render()
          Renders the current scene.
protected  void setupView()
          Set up the view according to the current size of the rendering component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwoglApplicationJOGL

public SwoglApplicationJOGL()
Creates a new SwoglApplicationJOGL


SwoglApplicationJOGL

public SwoglApplicationJOGL(boolean useGLJPanel)
Creates a new SwoglApplicationJOGL.

Parameters:
useGLJPanel - Whether a GLJPanel should be used instead of a GLCanvas (experimental)
Method Detail

getView

public de.javagl.swogl.scene.View getView()
Specified by:
getView in interface de.javagl.swogl.SwoglApplication

getCamera

public de.javagl.swogl.scene.MutableCamera getCamera()
Specified by:
getCamera in interface de.javagl.swogl.SwoglApplication

getLightSetup

public de.javagl.swogl.scene.LightSetup getLightSetup()
Specified by:
getLightSetup in interface de.javagl.swogl.SwoglApplication

getPickingRayComputer

public de.javagl.swogl.PickingRayComputer getPickingRayComputer()
Specified by:
getPickingRayComputer in interface de.javagl.swogl.SwoglSetup

getRenderComponent

public java.awt.Component getRenderComponent()
Specified by:
getRenderComponent in interface de.javagl.swogl.SwoglApplication

getSwoglComponentHandler

public de.javagl.swogl.SwoglComponentHandler getSwoglComponentHandler()
Specified by:
getSwoglComponentHandler in interface de.javagl.swogl.SwoglSetup

getSwoglRenderer

protected SwoglRendererJOGL getSwoglRenderer()
Returns the SwoglRenderer that is used in this application

Returns:
The SwoglRenderer that is used in this application

setupView

protected void setupView()
Set up the view according to the current size of the rendering component


render

protected void render()
Renders the current scene. This will call prepareRender() and applyView(), and then let the SwoglRenderer render all SwoglComponents.


prepareRender

protected void prepareRender()
Prepares the rendering pass


applyLightSetup

protected void applyLightSetup()
Apply the LightSetup of this application


applyView

protected void applyView()
Apply the current view state to GL.