py3dtiles.tileset.extension.batch_table_hierarchy_extension module

class py3dtiles.tileset.extension.batch_table_hierarchy_extension.BatchTableHierarchy[source]

Bases: BaseExtension

Batch Table Hierarchy (BTH) is a BaseExtension of a Batch Table.

add_class(class_name: str, property_names: list[str]) HierarchyClass[source]
classmethod from_dict(extension_dict: dict[str, Any]) BatchTableHierarchy[source]

Creates an instance of the default extension class BaseExtension. This instance will store all attributes in a single field.

Parameters:

extension_dict – a dict containing all attributes of the extension (keys and values).

Returns:

a BaseExtension instance.

get_instance_parent_indexes(instance: HierarchyInstance) list[int][source]
to_dict() dict[str, Any][source]
Returns:

a dict containing all attributes of the extension (keys and values).

class py3dtiles.tileset.extension.batch_table_hierarchy_extension.HierarchyClass(name: str, property_names: list[str])[source]

Bases: object

add_instance(properties: dict[str, Any], parents: list[int | HierarchyInstance] | None = None) HierarchyInstance[source]
to_dict() HierarchyClassDictType[source]
class py3dtiles.tileset.extension.batch_table_hierarchy_extension.HierarchyInstance(properties: dict[str, Any] | None = None, parents: list[int | HierarchyInstance] | None = None)[source]

Bases: object