Class MultiSpectralDisplay
java.lang.Object
edu.wisc.ssec.mcidasv.display.hydra.MultiSpectralDisplay
- All Implemented Interfaces:
EventListener,DisplayListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JComboBoxprivate final StringID of the selector that controls the displayed channel.private static intprivate HashMap<DataReference, ConstantMap[]> private MultiSpectralDataprivate DirectDataChoiceprivate static final Stringprivate LocalDisplayprivate HydraControlprivate List<DataReference> private Gridded1DSetprivate RealTypeprivate HashMap<String, DataReference> private FlatFieldprivate DisplayableDataprivate booleanprivate float[]private float[]private static final org.slf4j.Loggerprivate XYDisplayprivate RealTypeprivate final Map<String, MultiSpectralDisplay.DragLine> The map of selector IDs to selectors.private FlatFieldprivate RealTypeprivate ViewManagerprivate floatprivate ScalarMapprivate ScalarMap -
Constructor Summary
ConstructorsConstructorDescriptionMultiSpectralDisplay(HydraControl control) MultiSpectralDisplay(DirectDataChoice dataChoice) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRef(DataReference thing, Color color) private FlatFieldchangeRangeType(FlatField image, RealType newRangeType) createSelector(String id, Color color) createSelector(String id, ConstantMap[] color) voidbooleanintMcIDAS Inquiry #2535-3141 Get multispectral data as a string for CSV filesprivate static RealTypegetDomainType(FlatField spectrum) getImageDataFrom(float channel) static RealTypegetRangeType(FlatField spectrum) getSelector(String id) floatfloatprivate static float[]getXRange(Gridded1DSet domain) booleanvoidprivate voidinit()static ConstantMap[]makeColorMap(Color color) voidvoidremoveRef(DataReference thing) removeSelector(String id) voidreorderDataRefsById(List<String> dataRefIds) voidsetDisplayControl(HydraControl control) private static voidsetDisplayMasterAttributes(XYDisplay master) Providesmastersome sensible default attributes.voidsetSelectorValue(String id, float value) booleansetWaveNumber(float val) voidvoidupdateControlSelector(String id, float value) voidupdateRef(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:
VisADExceptionRemoteException
-
MultiSpectralDisplay
- Throws:
VisADExceptionRemoteException
-
-
Method Details
-
getImageData
-
getImageDataFrom
-
changeRangeType
private FlatField changeRangeType(FlatField image, RealType newRangeType) throws VisADException, RemoteException - Throws:
VisADExceptionRemoteException
-
getMaster
-
getDisplay
-
getDisplayComponent
-
getDomainType
-
getRangeType
-
getViewManager
-
getMultiSpectralData
-
getDomainSet
-
init
- Throws:
VisADExceptionRemoteException
-
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:
displayChangedin interfaceDisplayListener- Throws:
VisADExceptionRemoteException
-
getImageDisplay
-
getWaveNumber
-
getChannelIndex
- Throws:
Exception
-
refreshDisplay
- Throws:
VisADExceptionRemoteException
-
hasNullData
-
showChannelSelector
-
hideChannelSelector
-
createSelector
- Throws:
Exception
-
createSelector
public MultiSpectralDisplay.DragLine createSelector(String id, ConstantMap[] color) throws Exception - Throws:
Exception
-
getSelector
-
getSelectorValue
-
setSelectorValue
- Throws:
VisADExceptionRemoteException
-
updateControlSelector
-
removeSelector
-
getSelectors
-
displayingChannel
- Returns:
- Whether or not the channel selector is being displayed.
-
removeRef
- Throws:
VisADExceptionRemoteException
-
addRef
- Throws:
VisADExceptionRemoteException
-
updateRef
- Throws:
VisADExceptionRemoteException
-
reorderDataRefsById
-
setWaveNumber
-
makeColorMap
- Returns:
- The ConstantMap representation of
color. - Throws:
VisADExceptionRemoteException
-
setDisplayMasterAttributes
private static void setDisplayMasterAttributes(XYDisplay master) throws VisADException, RemoteException Providesmastersome sensible default attributes.- Throws:
VisADExceptionRemoteException
-
getXRange
- Returns:
- The minimum and maximum values found on the x-axis.
-
getRangeType
-
getDomainType
-