Class SkyTileRenderer
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.SkyTileRenderer
-
public abstract class SkyTileRenderer extends java.lang.Object
Defines the strategy for rendering HEALPix tiles to a graphics context.- Since:
- 16 Sep 2016
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description SkyTileRenderer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static SkyTileRenderer
createRenderer(SkySurface surface, Rotation rotation, int viewLevel, double binFactor)
Returns a SkyTileRenderer suitable for use on a given sky surface.abstract void
extendAuxRange(Ranger ranger, BinList.Result binResult)
Modifies the range of aux values found within a given surface.static void
paintBins(java.awt.Graphics g, BinList.Result binResult, double binFactor, SkySurface surface, SkyPixer skyPixer, Shader shader, Scaler scaler)
Given a prepared data structure, paints the results it represents onto a graphics context appropriate for this drawing.abstract void
renderBins(java.awt.Graphics g, BinList.Result binResult, Shader shader, Scaler scaler)
Performs the rendering of a prepared bin list on a graphics surface.
-
-
-
Method Detail
-
extendAuxRange
public abstract void extendAuxRange(Ranger ranger, BinList.Result binResult)
Modifies the range of aux values found within a given surface.- Parameters:
ranger
- range object to be modifiedbinResult
- tile bin contents
-
renderBins
public abstract void renderBins(java.awt.Graphics g, BinList.Result binResult, Shader shader, Scaler scaler)
Performs the rendering of a prepared bin list on a graphics surface.- Parameters:
g
- graphics contextbinResult
- histogram containing sky pixel valuesshader
- colour shadingscaler
- value scaling
-
createRenderer
public static SkyTileRenderer createRenderer(SkySurface surface, Rotation rotation, int viewLevel, double binFactor)
Returns a SkyTileRenderer suitable for use on a given sky surface.- Parameters:
surface
- sky surfacerotation
- view rotation stateviewLevel
- HEALPix level for viewbinFactor
- factor by which all bin values should be multiplied- Returns:
- tile renderer
-
paintBins
public static void paintBins(java.awt.Graphics g, BinList.Result binResult, double binFactor, SkySurface surface, SkyPixer skyPixer, Shader shader, Scaler scaler)
Given a prepared data structure, paints the results it represents onto a graphics context appropriate for this drawing.- Parameters:
g
- graphics contextbinResult
- histogram containing sky pixel valuesbinFactor
- factor by which all bin values must be multipliedsurface
- plot surfaceskyPixer
- maps sky positions to HEALPix indicesshader
- colour shadingscaler
- value scaling
-
-