Layers - Functions

TFire.add_layerMethod
add_layer(collection::Collection,  output_type::Type{T};
                    settings::Settings=Settings()) where T <: AssetLayer

Adds layers to collection. Which layers are added/updated determined by logic in function layerstoadd.

If settings are provided they override the settings in the collection for all layers included

source
TFire.has_unique_settingsMethod
has_unique_settings(settings::Settings, slc::Vector{Vector{Type}})

Returns true if only one of the provided layers for each batch of layers has associated settings.

source
TFire.has_unique_settingsMethod
has_unique_settings(settings::Settings, slc::Vector{Type})

Returns true if only one of the provided layers has associated settings.

source
TFire.layers_affected_by_changed_settingsMethod
layers_affected_by_changed_settings(settings::Settings, settings_used::Settings,
                                        layers::Vector{Type})

Returns a vector with all layers where changes have occured in settings and their superlayers. The order of the input vector of layers is kept.

source
TFire.layers_overMethod
layers_over(layer_type::Type{T}) where T <: AssetLayer

Returns the two vectors (layersabstract, layersconcrete) where layersabstract includes all abstract superlayers to layertype in descending order. layersconcrete is a vector in descending order where every asset is a vector of possible concrete superlayers to layertype.

source
TFire.layers_to_addMethod
layers_to_add(collection::Collection,  output_type::Type{T}) where T <: AssetLayer

Returns a vector with the layer types that should be added to collection in ascending order.

The function handles the following logic; All layers that has to be added/remade up to output_type should be included. Layers (including all sublayers) should be redone if settings for that layer has changed. In the case were several parallell concrete layers exists settings must be exclusive.

source
TFire.unique_settingsMethod
unique_settings(settings::Settings, slc::Vector{Vector{Type}})

Returns a vector of the types that has unique settings. Should only be called if hasuniquesettings is true.

source
TFire.unique_settingsMethod
unique_settings(settings::Settings, slc::Vector{Type})

Returns the type that has unique settings. Should only be called if hasuniquesettings is true.

source
TFire.LayerRepaintingTraitMethod
LayerRepaintingTrait(::Type{<:AssetLayer})

Gets the repainting trait of the given AssetLayer subtype. Returns either Repainting() or NonRepainting(). This determines whether the layer will repaint underlying data when new data is added.

source