Database¶
-
class
Database¶ -
-
property
active_material_group¶ The active material group.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_texture_group¶ The active texture group.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_background_group¶ The active background group.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_environment_group¶ The active environment group.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_overlay_group¶ The active overlay group.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_postprocess_group¶ The active postprocess group.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_sensor_group¶ The active sensor group.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_material¶ The active material.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_background¶ The active background.
- Type
Background or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_environment¶ The active environment.
- Type
Environment or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_overlay¶ The active overlay.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_postprocess¶ The active postprocess.
- Type
Postprocess or None
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
property
active_sensor¶ The active sensor.
- Type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
save()¶ Save the database.
- Returns
Trueif successful.- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
save_and_clean(save_cache)¶ Save and clean the database.
- Parameters
save_cache (bool) -- Whether to save the cache or not.
- Returns
Trueif successful.- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
save_as(filename, save_cache)¶ Save the database to another file.
-
close()¶ Close the database
-
find_camera(id)¶ Find a camera by id.
-
list_cameras(recursive = True)¶ List the cameras of the database.
-
create_camera(group = None)¶ Create a camera.
- Parameters
group (CameraGroup or None) -- Group of the new camera, or
Noneto put the camera at the root of the hierarchy.- Returns
The new camera.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_camera_group(id)¶ Find a camera group by id.
- Parameters
id (str) -- Camera group id to find.
- Returns
The camera group found or
Noneif not found.- Return type
CameraGroup or None
-
list_camera_groups(recursive = True)¶ List the camera groups of the database.
-
create_camera_group(name, parent_group = None)¶ Create a camera group.
- Parameters
name (str) -- Name of the new group.
parent_group (CameraGroup or None) -- Parent group of the new group, or
Noneto put the group at the root of the hierarchy.
- Returns
The new group.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_model(id)¶ Find a model by id.
-
list_models()¶ List the models of the database.
-
create_material_group(name)¶ Create a new material group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_material_group(id)¶ Find a material group by id.
-
list_material_groups()¶ List the material groups of the database.
- Returns
The list of material groups in the database.
- Return type
-
create_texture_group(name)¶ Create a new texture group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_texture_group(id)¶ Find a texture group by id.
- Parameters
id (str) -- Texture group id to find.
- Returns
The texture group found or
Noneif not found.- Return type
TextureGroup or None
-
list_texture_groups()¶ List the texture groups of the database.
- Returns
The list of texture groups in the database.
- Return type
-
create_background_group(name)¶ Create a new background group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_background_group(id)¶ Find a background group by id.
-
list_background_groups()¶ List the background groups of the database.
- Returns
The list of background groups in the database.
- Return type
-
create_environment_group(name)¶ Create a new environment group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_environment_group(id)¶ Find a environment group by id.
-
list_environment_groups()¶ List the environment groups of the database.
- Returns
The list of environment groups in the database.
- Return type
-
create_overlay_group(name)¶ Create a new overlay group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_overlay_group(id)¶ Find a overlay group by id.
- Parameters
id (str) -- Overlay group id to find.
- Returns
The overlay group found or
Noneif not found.- Return type
OverlayGroup or None
-
list_overlay_groups()¶ List the overlay groups of the database.
- Returns
The list of overlay groups in the database.
- Return type
-
create_postprocess_group(name)¶ Create a new postprocess group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_postprocess_group(id)¶ Find a postprocess group by id.
-
list_postprocess_groups()¶ List the postprocess groups of the database.
- Returns
The list of postprocess groups in the database.
- Return type
-
create_sensor_group(name)¶ Create a new sensor group.
- Parameters
name (str) -- Name of the group.
- Returns
The newly created group.
- Return type
- Raises
ReadOnlyError -- If
Databaseis in read only mode.
-
find_sensor_group(id)¶ Find a sensor group by id.
- Parameters
id (str) -- Sensor group id to find.
- Returns
The sensor group found or
Noneif not found.- Return type
SensorGroup or None
-
list_sensor_groups()¶ List the sensor groups of the database.
- Returns
The list of sensor groups in the database.
- Return type
-
property