Class MultiSpectralDisplay
java.lang.Object
edu.wisc.ssec.mcidasv.display.hydra.MultiSpectralDisplay
- All Implemented Interfaces:
EventListener
,DisplayListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JComboBox
private final String
ID of the selector that controls the displayed channel.private static int
private HashMap
<DataReference, ConstantMap[]> private MultiSpectralData
private DirectDataChoice
private static final String
private LocalDisplay
private HydraControl
private List
<DataReference> private Gridded1DSet
private RealType
private HashMap
<String, DataReference> private FlatField
private DisplayableData
private boolean
private float[]
private float[]
private static final org.slf4j.Logger
private XYDisplay
private RealType
private final Map
<String, MultiSpectralDisplay.DragLine> The map of selector IDs to selectors.private FlatField
private RealType
private ViewManager
private float
private ScalarMap
private ScalarMap
-
Constructor Summary
ConstructorsConstructorDescriptionMultiSpectralDisplay
(HydraControl control) MultiSpectralDisplay
(DirectDataChoice dataChoice) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRef
(DataReference thing, Color color) private FlatField
changeRangeType
(FlatField image, RealType newRangeType) createSelector
(String id, Color color) createSelector
(String id, ConstantMap[] color) void
boolean
int
McIDAS Inquiry #2535-3141 Get multispectral data as a string for CSV filesprivate static RealType
getDomainType
(FlatField spectrum) getImageDataFrom
(float channel) static RealType
getRangeType
(FlatField spectrum) getSelector
(String id) float
float
private static float[]
getXRange
(Gridded1DSet domain) boolean
void
private void
init()
static ConstantMap[]
makeColorMap
(Color color) void
void
removeRef
(DataReference thing) removeSelector
(String id) void
reorderDataRefsById
(List<String> dataRefIds) void
setDisplayControl
(HydraControl control) private static void
setDisplayMasterAttributes
(XYDisplay master) Providesmaster
some sensible default attributes.void
setSelectorValue
(String id, float value) boolean
setWaveNumber
(float val) void
void
updateControlSelector
(String id, float value) void
updateRef
(DataReference thing, Color color)
-
Field Details
-
logger
-
DISP_NAME
- See Also:
-
cnt
-
dataChoice
-
viewManager
-
initialRangeX
-
initialRangeY
-
domainType
-
rangeType
-
uniqueRangeType
-
xmap
-
ymap
-
display
-
image
-
spectrum
-
imageExpired
-
data
-
waveNumber
-
displayedThings
-
idToRef
-
colorMaps
-
displayControl
-
imageDisplay
-
master
-
domainSet
-
bandSelectComboBox
-
channelSelector
ID of the selector that controls the displayed channel. -
selectors
The map of selector IDs to selectors.
-
-
Constructor Details
-
MultiSpectralDisplay
- Throws:
VisADException
RemoteException
-
MultiSpectralDisplay
- Throws:
VisADException
RemoteException
-
-
Method Details
-
getImageData
-
getImageDataFrom
-
changeRangeType
private FlatField changeRangeType(FlatField image, RealType newRangeType) throws VisADException, RemoteException - Throws:
VisADException
RemoteException
-
getMaster
-
getDisplay
-
getDisplayComponent
-
getDomainType
-
getRangeType
-
getViewManager
-
getMultiSpectralData
-
getDomainSet
-
init
- Throws:
VisADException
RemoteException
-
getDataAsString
McIDAS Inquiry #2535-3141 Get multispectral data as a string for CSV files- Returns:
- data as a comma separated string
-
getBandSelectComboBox
-
setDisplayControl
-
displayChanged
- Specified by:
displayChanged
in interfaceDisplayListener
- Throws:
VisADException
RemoteException
-
getImageDisplay
-
getWaveNumber
-
getChannelIndex
- Throws:
Exception
-
refreshDisplay
- Throws:
VisADException
RemoteException
-
hasNullData
-
showChannelSelector
-
hideChannelSelector
-
createSelector
- Throws:
Exception
-
createSelector
public MultiSpectralDisplay.DragLine createSelector(String id, ConstantMap[] color) throws Exception - Throws:
Exception
-
getSelector
-
getSelectorValue
-
setSelectorValue
- Throws:
VisADException
RemoteException
-
updateControlSelector
-
removeSelector
-
getSelectors
-
displayingChannel
- Returns:
- Whether or not the channel selector is being displayed.
-
removeRef
- Throws:
VisADException
RemoteException
-
addRef
- Throws:
VisADException
RemoteException
-
updateRef
- Throws:
VisADException
RemoteException
-
reorderDataRefsById
-
setWaveNumber
-
makeColorMap
- Returns:
- The ConstantMap representation of
color
. - Throws:
VisADException
RemoteException
-
setDisplayMasterAttributes
private static void setDisplayMasterAttributes(XYDisplay master) throws VisADException, RemoteException Providesmaster
some sensible default attributes.- Throws:
VisADException
RemoteException
-
getXRange
- Returns:
- The minimum and maximum values found on the x-axis.
-
getRangeType
-
getDomainType
-