OverlayGroup¶
-
class
OverlayGroup¶ -
-
property
name¶ The name of the group.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
list_overlays()¶ List the overlays of this group.
-
duplicate()¶ Duplicate this overlay group.
- Returns
The duplicated group.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
remove(force = False)¶ Delete a overlay group
Note
By default, only empty groups can be deleted (
NotEmptyErroris raised otherwise), useforceto force deletion of non empty groups.- Parameters
force (bool) -- Force the deletion of the group even if it contains overlays.
- Raises
NotEmptyError -- If
forceisFalseand the group contains overlays.ReadOnlyError -- If
Databaseis in read only mode.
-
create_overlay(name)¶ Create a new overlay.
- Parameters
name (str) -- The name of the new overlay.
- Returns
The newly created overlay.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property