Class SurfaceMaskLayers
java.lang.Object
cz.fidentis.analyst.data.surfacemask.SurfaceMaskLayers
Manages multiple layers for surface masks, allowing for addition, removal,
and selection of layers.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new SurfaceMaskLayerManager with an empty list of layers. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a newSurfaceMask2D
as a layer.static Layer
Create new LayerGets the current active layer.Gets the list of all layers managed by this manager.void
removeLayer
(Layer layer) Remove layer from list of layersvoid
setCurrentLayer
(Layer layer) Sets the current layer
-
Constructor Details
-
SurfaceMaskLayers
public SurfaceMaskLayers()Initializes a new SurfaceMaskLayerManager with an empty list of layers.
-
-
Method Details
-
createLayer
Create new Layer- Returns:
- new Layer
-
addLayer
Adds a newSurfaceMask2D
as a layer. -
getCurrentLayer
Gets the current active layer.- Returns:
- The current
Layer
, or null if there are no layers.
-
setCurrentLayer
Sets the current layer- Parameters:
layer
- to be set as current.
-
getLayers
Gets the list of all layers managed by this manager.- Returns:
- A list of layers.
-
removeLayer
Remove layer from list of layers- Parameters:
layer
- to be removed
-