Class SpectralLibraryController

java.lang.Object
org.esa.snap.rcp.spectrallibrary.controller.SpectralLibraryController

public class SpectralLibraryController extends Object
  • Constructor Details

  • 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

      public org.esa.snap.speclib.model.SpectralLibrary createLibraryFromBands(String name, List<Band> bands)
    • deleteLibrary

      public boolean deleteLibrary(UUID id)
    • renameLibrary

      public boolean renameLibrary(UUID id, String newName)
    • setActiveLibrary

      public void setActiveLibrary(UUID id)
    • removeLibraryProfiles

      public void removeLibraryProfiles(UUID libraryId, List<UUID> profileIds)
    • setPreviewProfilesLimited

      public void setPreviewProfilesLimited(List<org.esa.snap.speclib.model.SpectralProfile> allProfiles)
    • addAttributeToActiveLibrary

      public void addAttributeToActiveLibrary(org.esa.snap.speclib.model.AttributeDef def, org.esa.snap.speclib.model.AttributeValue fillValue)
    • renameProfileInActiveLibrary

      public void renameProfileInActiveLibrary(UUID profileId, String newName)
    • setAttributeInActiveLibrary

      public void setAttributeInActiveLibrary(UUID profileId, String key, org.esa.snap.speclib.model.AttributeValue value)
    • clearPreview

      public void clearPreview()
    • removePreviewProfilesForProduct

      public int removePreviewProfilesForProduct(Product product)
    • removePreviewProfilesForGeometryFeatures

      public int removePreviewProfilesForGeometryFeatures(Product product, String vectorDataNodeName, Set<String> featureIds)
    • removePreviewProfilesForChangedGeometryFeatures

      public int removePreviewProfilesForChangedGeometryFeatures(Product product, String vectorDataNodeName, Map<String,String> currentGeometryWktsByFeatureId)
    • removePreviewProfilesForVectorDataNode

      public int removePreviewProfilesForVectorDataNode(Product product, VectorDataNode vectorDataNode)
    • removePreviewProfilesForPin

      public int removePreviewProfilesForPin(Product product, String placemarkName)
    • extractPreviewFromPins

      public void extractPreviewFromPins(Product product, org.esa.snap.speclib.model.SpectralAxis axis, String yUnit, List<Band> bands, List<Placemark> pins, int level, Set<String> selectedBandNames, String namePrefix)
    • extractPreviewAtCursor

      public void extractPreviewAtCursor(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)
    • extractPreviewFromPixels

      public void extractPreviewFromPixels(Product product, org.esa.snap.speclib.model.SpectralAxis axis, String yUnit, List<Band> bands, List<PixelPos> pixels, int level, Set<String> selectedBandNames, String namePrefix)
    • extractPreviewFromGeometrySources

      public void extractPreviewFromGeometrySources(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)
    • exportActiveLibraryToFile

      public boolean exportActiveLibraryToFile(File file)
    • importLibraryFromFile

      public Optional<org.esa.snap.speclib.model.SpectralLibrary> importLibraryFromFile(File file)
    • addProfilesAsVectorLayer

      public void addProfilesAsVectorLayer(Product product, List<UUID> profileIds, String layerName)
    • 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)