Class SurfaceMaskLayers

java.lang.Object
cz.fidentis.analyst.data.surfacemask.SurfaceMaskLayers

public class SurfaceMaskLayers extends Object
Manages multiple layers for surface masks, allowing for addition, removal, and selection of layers.
  • Constructor Details

    • SurfaceMaskLayers

      public SurfaceMaskLayers()
      Initializes a new SurfaceMaskLayerManager with an empty list of layers.
  • Method Details

    • createLayer

      public static Layer createLayer()
      Create new Layer
      Returns:
      new Layer
    • addLayer

      public void addLayer(Layer layer)
      Adds a new SurfaceMask2D as a layer.
    • getCurrentLayer

      public Layer getCurrentLayer()
      Gets the current active layer.
      Returns:
      The current Layer, or null if there are no layers.
    • setCurrentLayer

      public void setCurrentLayer(Layer layer)
      Sets the current layer
      Parameters:
      layer - to be set as current.
    • getLayers

      public List<Layer> getLayers()
      Gets the list of all layers managed by this manager.
      Returns:
      A list of layers.
    • removeLayer

      public void removeLayer(Layer layer)
      Remove layer from list of layers
      Parameters:
      layer - to be removed