Class SpectralLibraryController
java.lang.Object
org.esa.snap.rcp.spectrallibrary.controller.SpectralLibraryController
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionSpectralLibraryController(SpectralLibraryViewModel vm, PreviewPanel previewPanel) SpectralLibraryController(org.esa.snap.speclib.api.SpectralLibraryService service, org.esa.snap.speclib.io.SpectralLibraryIO io, SpectralLibraryViewModel vm, PreviewPanel previewPanel) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAttributeToActiveLibrary(org.esa.snap.speclib.model.AttributeDef def, org.esa.snap.speclib.model.AttributeValue fillValue) voidaddProfilesAsVectorLayer(Product product, List<UUID> profileIds, String layerName) voidvoidapplySpectralNoiseReduction(UUID libraryId, List<UUID> profileIds, SpectralNoiseSettings settings, SpectralNoiseReductionProfilesDialog.SaveMode saveMode, String nameSuffix, String newLibraryName) voidapplySpectralResampling(UUID libraryId, List<UUID> profileIds, SpectralResamplingSettings settings, SpectralResamplingProfilesDialog.SaveMode saveMode, String nameSuffix, String newLibraryName) voidorg.esa.snap.speclib.model.SpectralLibrarycreateLibraryFromBands(String name, List<Band> bands) booleandeleteLibrary(UUID id) booleanvoidextractPreviewAtCursor(Product product, org.esa.snap.speclib.model.SpectralAxis axis, String yUnit, List<Band> bands, int x, int y, int level, Set<String> selectedBandNames, String namePrefix) voidextractPreviewFromGeometrySources(Product product, org.esa.snap.speclib.model.SpectralAxis axis, String yUnit, List<Band> bands, List<SpectralLibraryController.GeometryPreviewSource> sources, int level, Set<String> selectedBandNames, String namePrefix) voidextractPreviewFromPins(Product product, org.esa.snap.speclib.model.SpectralAxis axis, String yUnit, List<Band> bands, List<Placemark> pins, int level, Set<String> selectedBandNames, String namePrefix) voidextractPreviewFromPixels(Product product, org.esa.snap.speclib.model.SpectralAxis axis, String yUnit, List<Band> bands, List<PixelPos> pixels, int level, Set<String> selectedBandNames, String namePrefix) Optional<org.esa.snap.speclib.model.SpectralLibrary> importLibraryFromFile(File file) voidinit()voidrefresh()voidvoidvoidremoveLibraryProfiles(UUID libraryId, List<UUID> profileIds) intremovePreviewProfilesForChangedGeometryFeatures(Product product, String vectorDataNodeName, Map<String, String> currentGeometryWktsByFeatureId) intremovePreviewProfilesForGeometryFeatures(Product product, String vectorDataNodeName, Set<String> featureIds) intremovePreviewProfilesForPin(Product product, String placemarkName) intremovePreviewProfilesForProduct(Product product) intremovePreviewProfilesForVectorDataNode(Product product, VectorDataNode vectorDataNode) booleanrenameLibrary(UUID id, String newName) voidrenameProfileInActiveLibrary(UUID profileId, String newName) voidsetActiveLibrary(UUID id) voidsetAttributeInActiveLibrary(UUID profileId, String key, org.esa.snap.speclib.model.AttributeValue value) voidsetPreviewProfilesLimited(List<org.esa.snap.speclib.model.SpectralProfile> allProfiles)
-
Constructor Details
-
SpectralLibraryController
-
SpectralLibraryController
public SpectralLibraryController(org.esa.snap.speclib.api.SpectralLibraryService service, org.esa.snap.speclib.io.SpectralLibraryIO io, SpectralLibraryViewModel vm, PreviewPanel previewPanel)
-
-
Method Details
-
init
public void init() -
refresh
public void refresh() -
reloadLibraries
public void reloadLibraries() -
refreshActiveLibraryProfiles
public void refreshActiveLibraryProfiles() -
addSelectedPreviewToLibrary
public void addSelectedPreviewToLibrary() -
addAllPreviewToLibrary
public void addAllPreviewToLibrary() -
createLibraryFromBands
-
deleteLibrary
-
renameLibrary
-
setActiveLibrary
-
removeLibraryProfiles
-
setPreviewProfilesLimited
-
addAttributeToActiveLibrary
public void addAttributeToActiveLibrary(org.esa.snap.speclib.model.AttributeDef def, org.esa.snap.speclib.model.AttributeValue fillValue) -
renameProfileInActiveLibrary
-
setAttributeInActiveLibrary
-
clearPreview
public void clearPreview() -
removePreviewProfilesForProduct
-
removePreviewProfilesForGeometryFeatures
-
removePreviewProfilesForChangedGeometryFeatures
-
removePreviewProfilesForVectorDataNode
-
removePreviewProfilesForPin
-
extractPreviewFromPins
-
extractPreviewAtCursor
-
extractPreviewFromPixels
-
extractPreviewFromGeometrySources
-
exportActiveLibraryToFile
-
importLibraryFromFile
-
addProfilesAsVectorLayer
-
applySpectralNoiseReduction
public void applySpectralNoiseReduction(UUID libraryId, List<UUID> profileIds, SpectralNoiseSettings settings, SpectralNoiseReductionProfilesDialog.SaveMode saveMode, String nameSuffix, String newLibraryName) -
applySpectralResampling
public void applySpectralResampling(UUID libraryId, List<UUID> profileIds, SpectralResamplingSettings settings, SpectralResamplingProfilesDialog.SaveMode saveMode, String nameSuffix, String newLibraryName)
-