EnvironmentLayer
- class EnvironmentLayer
-
- property name
The name of the environment layer.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- property visibility
The environment layer visibility.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- duplicate()
Duplicate this environment layer.
- Returns
The duplicated environment layer.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- remove()
Delete this environment layer.
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- assign_environment(surface, env)
Assign an
Environment
to the givenSurface
into the currentEnvironmentLayer
.- Parameters
surface (Surface) -- Surface on which to assign the environment.
env (Environment) -- Environment to assign.
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- assign_global_environment(env)
Define the global
Environment
into the currentEnvironmentLayer
.- Parameters
env (Environment) -- New global
Environment
.- Raises
ReadOnlyError -- If
Database
is in read only mode.
- remove_environment_assignment(surface)
Remove the environment assignment on the given
Surface
.- Parameters
surface (Surface) -- Surface on which to remove the environment.
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- remove_global_environment()
Remove the global environment into the current
EnvironmentLayer
.- Raises
ReadOnlyError -- If
Database
is in read only mode.
- get_environment_assignment(surface)
Get the environment assignment on the given
Surface
if it exists. ReturnNone
if not.- Parameters
surface (Surface) -- Surface on which to get the material assignment.
- Returns
The
Environment
assigned to the givenSurface
. Returns nullptr if no environment is assigned.- Return type
Environment or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- get_global_environment()
Get the global
Environment
asigned into the currentEnvironmentLayer
.- Returns
The global
Environment
assigned into the currentEnvironmentLayer
. ReturnNone
if no globalEnvironment
if assigned.- Return type
Environment or None
- Raises
ReadOnlyError -- If
Database
is in read only mode.