Class HeatMapPainter
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.core.painter.texture.ShadedTexturePainter
-
- com.metsci.glimpse.core.painter.texture.HeatMapPainter
-
- All Implemented Interfaces:
GlimpsePainter
- Direct Known Subclasses:
TaggedHeatMapPainter
public class HeatMapPainter extends ShadedTexturePainter
A simplified facade toShadedTexturePainter
which applies a color scale (adjustable via anAxis1D
to a double[][] rectangular array of data stored as an OpenGL texture in order to display a two dimensional heat map.- Author:
- ulman
-
-
Constructor Summary
Constructors Constructor Description HeatMapPainter(Axis1D colorAxis)
HeatMapPainter(Tag colormapMinTag, Tag colormapMaxTag)
HeatMapPainter(HeatMapProgram program)
HeatMapPainter(DoubleSupplier colormapMinFn, DoubleSupplier colormapMaxFn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorTexture1D
getColorScale()
FloatTextureProjected2D
getData()
Projection
getProjection()
void
setAlpha(float alpha)
void
setColorScale(ColorTexture1D texture)
void
setData(FloatTextureProjected2D texture)
void
setDiscardAbove(boolean discard)
void
setDiscardBelow(boolean discard)
void
setDiscardNaN(boolean discard)
void
setProgram(DrawableTextureProgram program)
void
setUseColormapAlpha(boolean useColormapAlpha)
-
Methods inherited from class com.metsci.glimpse.core.painter.texture.ShadedTexturePainter
addDrawableTexture, addDrawableTexture, addNonDrawableTexture, addNonDrawableTexture, addNonDrawableTexture, doDispose, doPaintTo, removeAllDrawableTextures, removeAllNonDrawableTextures, removeDrawableTexture, removeNonDrawableTexture, removeNonDrawableTexture
-
Methods inherited from class com.metsci.glimpse.core.painter.base.GlimpsePainterBase
dispose, getAxis1D, getAxis2D, getBounds, getGL3, isDisposed, isVisible, paintTo, requireAxis1D, requireAxis2D, setLookAndFeel, setVisible
-
-
-
-
Constructor Detail
-
HeatMapPainter
public HeatMapPainter(Axis1D colorAxis)
-
HeatMapPainter
public HeatMapPainter(DoubleSupplier colormapMinFn, DoubleSupplier colormapMaxFn)
-
HeatMapPainter
public HeatMapPainter(HeatMapProgram program)
-
-
Method Detail
-
setProgram
public void setProgram(DrawableTextureProgram program)
- Overrides:
setProgram
in classShadedTexturePainter
-
setData
public void setData(FloatTextureProjected2D texture)
-
setUseColormapAlpha
public void setUseColormapAlpha(boolean useColormapAlpha)
-
setDiscardNaN
public void setDiscardNaN(boolean discard)
-
setDiscardBelow
public void setDiscardBelow(boolean discard)
-
setDiscardAbove
public void setDiscardAbove(boolean discard)
-
setAlpha
public void setAlpha(float alpha)
-
setColorScale
public void setColorScale(ColorTexture1D texture)
-
getData
public FloatTextureProjected2D getData()
-
getProjection
public Projection getProjection()
-
getColorScale
public ColorTexture1D getColorScale()
-
-