molsysviewer.layers.Layer#

class molsysviewer.layers.Layer(view, tag, *, kind=None, meta=None)[source]#

Wrapper for a non-structural visual layer (shapes, overlays) addressed by tag.

Parameters:
  • view (Any)

  • tag (str)

  • kind (str | None)

  • meta (Optional[Dict[str, Any]])

__init__(view, tag, *, kind=None, meta=None)[source]#
Parameters:
  • view (Any)

  • tag (str)

  • kind (str | None)

  • meta (Dict[str, Any] | None)

Return type:

None

Methods

__init__(view, tag, *[, kind, meta])

delete()

Remove this layer and its visuals.

hide()

Hide this layer (all contained visuals).

set_tag(new_tag)

Change this layer's tag (and update the registry).

show()

Show this layer (all contained visuals).