Skip to content

table

TableEntity #

Bases: AssetEntity

The table entity.

Attributes:

Name Type Description
asset_path Path

Path of the asset file

Source code in cogip/entities/table.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class TableEntity(AssetEntity):
    """
    The table entity.

    Attributes:
        asset_path: Path of the asset file
    """

    asset_path: Path = Path("assets/table2024.dae")

    def __init__(self, parent: Qt3DCore.QEntity | None = None):
        """
        Class constructor.

        Inherits [AssetEntity][cogip.entities.asset.AssetEntity].
        """
        super().__init__(self.asset_path, parent=parent)
        self._parent = parent

__init__(parent=None) #

Class constructor.

Inherits AssetEntity.

Source code in cogip/entities/table.py
18
19
20
21
22
23
24
25
def __init__(self, parent: Qt3DCore.QEntity | None = None):
    """
    Class constructor.

    Inherits [AssetEntity][cogip.entities.asset.AssetEntity].
    """
    super().__init__(self.asset_path, parent=parent)
    self._parent = parent