com.speckled.specksim.gui.imp
Class WallRenderer

java.lang.Object
  extended by com.speckled.specksim.gui.imp.AbstractStateRenderer
      extended by com.speckled.specksim.gui.imp.WallRenderer
All Implemented Interfaces:
Configurable, ValueListener, StateRenderer, java.lang.Comparable<StateRenderer>

public class WallRenderer
extends AbstractStateRenderer
implements ValueListener

Author:
ryanm

Field Summary
 
Fields inherited from class com.speckled.specksim.gui.imp.AbstractStateRenderer
visualiser
 
Constructor Summary
WallRenderer()
           
 
Method Summary
protected  void compileSubLists()
          All display lists used by subclasses should be put into a usable state in this method
 void constructGLObjects(javax.media.opengl.GLAutoDrawable drawable)
          GLObjects used by the renderer should be built here
 Configurator getConfigurator()
          Gets a Configurator object that describes and can manipulate the variables of this Configurable.
 java.lang.String getName()
          Gets the name of this renderer
 void renderState(javax.media.opengl.GLAutoDrawable drawable, StateSink state)
          Perform your rendering here.
 void valueChanged(java.lang.String name)
          Is called by the configurator when a variable is changed
 
Methods inherited from class com.speckled.specksim.gui.imp.AbstractStateRenderer
compareTo, getRenderPriority, init, isEnabled, render, setDirty, setEnabled, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WallRenderer

public WallRenderer()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: StateRenderer
Gets the name of this renderer

Specified by:
getName in interface StateRenderer
Returns:
A name string

constructGLObjects

public void constructGLObjects(javax.media.opengl.GLAutoDrawable drawable)
Description copied from interface: StateRenderer
GLObjects used by the renderer should be built here

Specified by:
constructGLObjects in interface StateRenderer
Parameters:
drawable - The context to use when building

compileSubLists

protected void compileSubLists()
Description copied from class: AbstractStateRenderer
All display lists used by subclasses should be put into a usable state in this method

Specified by:
compileSubLists in class AbstractStateRenderer

renderState

public void renderState(javax.media.opengl.GLAutoDrawable drawable,
                        StateSink state)
Description copied from class: AbstractStateRenderer
Perform your rendering here. All rendering done in this method will be compiled into a display list.

Specified by:
renderState in class AbstractStateRenderer
Parameters:
drawable - The GL context to draw to
state - The state to render

getConfigurator

public Configurator getConfigurator()
Description copied from interface: Configurable
Gets a Configurator object that describes and can manipulate the variables of this Configurable. This method must only return null if the Configurable object is Annotated such that an AnnotatedConfigurator can be built from it.

Specified by:
getConfigurator in interface Configurable
Returns:
A configurator object, or null if annotated

valueChanged

public void valueChanged(java.lang.String name)
Description copied from interface: ValueListener
Is called by the configurator when a variable is changed

Specified by:
valueChanged in interface ValueListener
Parameters:
name - The name of the variable