com.speckled.specksim.gui.visualiser
Class StatsPlotter

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

public class StatsPlotter
extends AbstractStateRenderer

Plots the output of StatisticsModules onto the visualisation

Author:
ryanm

Field Summary
 
Fields inherited from class com.speckled.specksim.gui.imp.AbstractStateRenderer
visualiser
 
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.
 int getHistoryLength()
          Gets the number of values being rendered
 java.lang.String getName()
          Gets the name of this renderer
protected  void renderState(javax.media.opengl.GLAutoDrawable drawable, StateSink state)
          Perform your rendering here.
 void setDataGenerationMode(Generator generator)
          Sets this StatsPlotter to plot the progress of the supplied data generation run
 void setHistoryLength(int length)
          Sets the number of values that will be rendered
 
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
 

Method Detail

setDataGenerationMode

public void setDataGenerationMode(Generator generator)
Sets this StatsPlotter to plot the progress of the supplied data generation run

Parameters:
generator - The generator whose output we are to plot, or null

setHistoryLength

public void setHistoryLength(int length)
Sets the number of values that will be rendered

Parameters:
length -

getHistoryLength

public int getHistoryLength()
Gets the number of values being rendered

Returns:
The number of values rendered

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

protected 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

constructGLObjects

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

Parameters:
drawable - The context to use when building

getName

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

Returns:
A name string

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.

Returns:
A configurator object, or null if annotated