com.metsci.glimpse.painter.base
Class GlimpseDataPainter2D

java.lang.Object
  extended by com.metsci.glimpse.painter.base.GlimpsePainterImpl
      extended by com.metsci.glimpse.painter.base.GlimpsePainter2D
          extended by com.metsci.glimpse.painter.base.GlimpseDataPainter2D
All Implemented Interfaces:
GlimpsePainter
Direct Known Subclasses:
AbstractTreeMapPainter, AnnotationPainter, CrosshairPainter, HistogramPainter, LineSetPainter, MeasurementPainter, PointSetPainter, PolygonPainterSimple, ShadedPointPainter, TrackPainter, XYLinePainter

public abstract class GlimpseDataPainter2D
extends GlimpsePainter2D

Takes care of most of the common setup steps that GlimpsePainters must perform. It uses the provided Axis2D to set the GL Orthographic projection, and sets up a standard blend function to enable transparency.

Users of GlimpseDataPainter2D should simply be able to start making glVertex(...) calls using data coordinates and have them display correctly (and be correctly affected by adjustments to the axis).

Author:
ulman

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
GlimpseDataPainter2D()
           
 
Method Summary
abstract  void paintTo(javax.media.opengl.GL gl, GlimpseBounds bounds, Axis2D axis)
           
 void paintTo(GlimpseContext context, GlimpseBounds bounds, Axis2D axis)
           
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainter2D
paintTo
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
dispose, isDisposed, isVisible, paintTo, setErrorHandling, setLookAndFeel, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlimpseDataPainter2D

public GlimpseDataPainter2D()
Method Detail

paintTo

public abstract void paintTo(javax.media.opengl.GL gl,
                             GlimpseBounds bounds,
                             Axis2D axis)

paintTo

public void paintTo(GlimpseContext context,
                    GlimpseBounds bounds,
                    Axis2D axis)
Specified by:
paintTo in class GlimpsePainter2D


Copyright © 2012 Metron, Inc.. All Rights Reserved.