dsdl.geometry.registry
LabelRegistry
Source code in /Users/bin/anaconda3/envs/dsdl/lib/python3.10/site-packages/dsdl/geometry/registry.py
__contains__(item)
Whether the current Registry
object contains a given object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
item(str |
or dsdl.geometry.Label
|
The object or the registry name to be quried. |
required |
Returns:
Type | Description |
---|---|
Whether the current |
Source code in /Users/bin/anaconda3/envs/dsdl/lib/python3.10/site-packages/dsdl/geometry/registry.py
__init__()
clear()
get(registry_name)
Get the Label
object when given the registry name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
The registry name to be queried. |
required |
Returns:
Type | Description |
---|---|
dsdl.geometry.Label
|
The |
Source code in /Users/bin/anaconda3/envs/dsdl/lib/python3.10/site-packages/dsdl/geometry/registry.py
registry(label)
Register a given Label
objects into the current Registry
object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
label(dsdl.geometry.Label) |
The |
required |
Source code in /Users/bin/anaconda3/envs/dsdl/lib/python3.10/site-packages/dsdl/geometry/registry.py
Registry
Source code in /Users/bin/anaconda3/envs/dsdl/lib/python3.10/site-packages/dsdl/geometry/registry.py
name
property
Returns:
Type | Description |
---|---|
The name of the current |
__init__(name)
A collection to register given dsdl.types.Struct
classes or dsdl.geometry.ClassDomain
classes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
The name of the current |
required |
Source code in /Users/bin/anaconda3/envs/dsdl/lib/python3.10/site-packages/dsdl/geometry/registry.py
clear()
get(name)
Get the Struct
class when given the registry name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
The registry name to be queried. |
required |
Returns:
Type | Description |
---|---|
dsdl.types.Struct or dsdl.geometry.ClassDomain
|
The |
Source code in /Users/bin/anaconda3/envs/dsdl/lib/python3.10/site-packages/dsdl/geometry/registry.py
names_contained()
Return all the registered classes' names in the current Registry
object.
register(name, cls)
Register a given Struct
or ClassDomain
class into the current Registry
object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name(str) |
The registry name of the given |
required | |
cls(dsdl.types.Struct |
or dsdl.geometry.ClassDomain
|
The |
required |