Image utilities.
- Source:
Namespaces
- CCUtil
part of lowLevelApi
.
Methods
-
<static> getPrimePlot( [plotId])
Get plot object with the given plot id, when plotId is not included, active plot is returned.
-
Get plot object with the given plot id, when plotId is not included, active plot is returned.
Parameters:
Name Type Argument Description plotIdstring <optional>
the plotId, optional
- Source:
Returns:
- Type
- WebPlot
-
<static> getSelectedRegion(drawLayerId)
get the region description of the selected region from the specified drawing layer
-
Parameters:
Name Type Description drawLayerIdstring id of the drawing layer
- Source:
Returns:
description of the selected region
- Type
- string
-
<static> initAutoReadout(ReadoutComponent, props)
initialize the auto readout. Must be call once at the begging to get the popup readout running.
-
Parameters:
Name Type Description ReadoutComponentobject either a PopupMouseReadoutMinimal or PopupMouseReadoutFull
propsobject a list of the properties
- Source:
-
<static> serializeSimpleRangeValues(stretchType, lowerValue, upperValue, algorithm)
-
Parameters:
Name Type Description stretchTypethe type of stretch may be 'Percent', 'Absolute', 'Sigma'
lowerValuelower value of stretch, based on stretchType
upperValueupper value of stretch, based on stretchType
algorithmthe stretch algorithm to use, may be 'Linear', 'Log', 'LogLog', 'Equal', 'Squared', 'Sqrt'
- Source:
-
<static> setDrawLayerDefaults(drawLayerTypeId, defaults)
Set a defaults object on for a draw layer type.
-
Set a defaults object on for a draw layer type. The following draw layers are supported: 'ACTIVE_TARGET_TYPE', 'CATALOG_TYPE'
Parameters:
Name Type Description drawLayerTypeIdstring defaultsDrawingDef - Source:
- See:
-
- DrawingDef
- DrawSymbol
Example
firefly.util.image.setDrawLayerDefaults('ACTIVE_TARGET_TYPE', {symbol:'x', color:'pink', size:15}); or firefly util.image.setDrawLayerDefaults('CATALOG_TYPE', {symbol:'cross', color:'red'});