Class SkyTileRenderer
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.SkyTileRenderer
Defines the strategy for rendering HEALPix tiles to a graphics context.
- Since:
- 16 Sep 2016
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
(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
(Graphics g, BinList.Result binResult, Shader shader, Scaler scaler) Performs the rendering of a prepared bin list on a graphics surface.
-
Constructor Details
-
SkyTileRenderer
public SkyTileRenderer()
-
-
Method Details
-
extendAuxRange
Modifies the range of aux values found within a given surface.- Parameters:
ranger
- range object to be modifiedbinResult
- tile bin contents
-
renderBins
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(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
-