Skip to contents

Weight class

Weight class

Details

Definition for the Weight class.

See also

Public fields

id

character value.

name

character value.

variable

Variable object.

pane

character name.

visible

logical value.

invisible

numeric date/time.

loaded

logical value.

hidden

logical value.

downloadable

logical value.

status

logical value.

current

numeric value.

factor

numeric value.

min_factor

numeric minimum factor value.

max_factor

numeric maximum factor value.

step_factor

numeric step factor value.

Methods


Method new()

Create a new Weight object.

Usage

Weight$new(
  id,
  name,
  variable,
  pane,
  visible,
  invisible,
  loaded,
  hidden,
  downloadable,
  status,
  current,
  factor,
  min_factor,
  max_factor,
  step_factor
)

Arguments

id

character value.

name

character value.

variable

Variable object.

pane

character value.

visible

logical value.

invisible

numeric date/time value.

loaded

logical value.

hidden

logical value.

downloadable

logical value.

status

logical value.

current

logical value.

factor

numeric initial factor value.

min_factor

numeric minimum factor value.

max_factor

numeric maximum factor value.

step_factor

numeric step factor value.

Returns

A new Weight object.


Method print()

Print the object.

Usage

Weight$print(...)

Arguments

...

not used.


Method repr()

Generate a character summarizing the representation of the object.

Usage

Weight$repr(start = "[", end = "]")

Arguments

start

character symbol used to start the setting list. Defaults to "[".

end

character symbol used to start the setting list. Defaults to "]".

Returns

character value.


Method get_layer_name()

Get layer names.

Usage

Weight$get_layer_name()

Returns

character vector.


Method get_layer_index()

Get layer index values.

Usage

Weight$get_layer_index()

Returns

character vector.


Method get_layer_pane()

Get layer pane class.

Usage

Weight$get_layer_pane()

Returns

character vector.


Method get_id()

Get weight identifier.

Usage

Weight$get_id()

Returns

character vector.


Method get_visible()

Get visible.

Usage

Weight$get_visible()

Returns

logical value.


Method get_invisible()

Get invisible.

Usage

Weight$get_invisible()

Returns

numeric date/time value.


Method get_loaded()

Get loaded.

Usage

Weight$get_loaded()

Returns

logical value.


Method get_hidden()

Get hidden.

Usage

Weight$get_hidden()

Returns

logical value.


Method get_downloadable()

Get downloadable.

Usage

Weight$get_downloadable()

Returns

logical value.


Method get_status()

Get status.

Usage

Weight$get_status()

Returns

logical value.


Method get_current()

Get current.

Usage

Weight$get_current()

Returns

logical value.


Method get_factor()

Get factor.

Usage

Weight$get_factor()

Returns

numeric value.


Method get_data()

Get the data.

Usage

Weight$get_data()

Returns

sf::st_as_sf() or terra::rast() object.


Method set_new_pane()

Set new pane.

Usage

Weight$set_new_pane(id, index)

Arguments

id

character unique identifier.

index

character variable index.

Returns

character value.


Method get_setting()

Get setting.

Usage

Weight$get_setting(name)

Arguments

name

character setting name. Available options are "status" "factor", "current", or "visible".

Returns

Value.


Method set_visible()

Set visible.

Usage

Weight$set_visible(value)

Arguments

value

logical new value.


Method set_invisible()

Set invisible.

Usage

Weight$set_invisible(value)

Arguments

value

numeric date/time value.


Method set_loaded()

Set loaded.

Usage

Weight$set_loaded(value)

Arguments

value

logical new value.


Method set_status()

Set status.

Usage

Weight$set_status(value)

Arguments

value

logical new value.


Method set_factor()

Set factor.

Usage

Weight$set_factor(value)

Arguments

value

numeric new value.


Method set_current()

Set current.

Usage

Weight$set_current(value)

Arguments

value

numeric new value.


Method set_setting()

Set setting.

Usage

Weight$set_setting(name, value)

Arguments

name

character setting name. Available options are "status" "factor", "current", or `"visible"“.

value

ANY new value.


Method get_solution_settings_widget_data()

Get data for displaying the theme in a solutionSettings() widget.

Usage

Weight$get_solution_settings_widget_data()

Returns

list with widget data.


Method get_map_manager_widget_data()

Get data for displaying the theme in a mapManager() widget.

Usage

Weight$get_map_manager_widget_data()

Returns

list with widget data.


Method export()

Export settings.

Usage

Weight$export()

Returns

list object.


Method render_on_map()

Render on map.

Usage

Weight$render_on_map(x, zindex)

Arguments

x

leaflet::leaflet() object.

zindex

numeric z-index for ordering.

Returns

leaflet::leaflet() object.


Method update_on_map()

Render on map.

Usage

Weight$update_on_map(x, zindex)

Arguments

x

leaflet::leafletProxy() object.

zindex

numeric z-index for ordering.

Returns

leaflet::leafletProxy() object.


Method clone()

The objects of this class are cloneable with this method.

Usage

Weight$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.