Files
create/src/Mod/Material/App/ModelProperty.pyi
2025-03-26 12:18:02 +01:00

52 lines
1.1 KiB
Python

from Base.Metadata import export, constmethod
from Base.BaseClass import BaseClass
from typing import Final
@export(
Include="Mod/Material/App/Model.h",
Namespace="Materials",
Constructor=True,
Delete=True,
)
class ModelProperty(BaseClass):
"""
Material property descriptions.
Author: DavidCarter (dcarter@davidcarter.ca)
Licence: LGPL
"""
Name: str = ...
"""Property name."""
DisplayName: str = ...
"""Property display friendly name."""
Type: str = ...
"""Property type."""
Units: str = ...
"""Property units category."""
URL: str = ...
"""URL to a detailed description of the property."""
Description: str = ...
"""Property description."""
Columns: Final[list] = ...
"""List of array columns."""
Inheritance: Final[str] = ...
"""UUID of the model in which the property is defined."""
Inherited: Final[bool] = ...
"""True if the property is inherited."""
def addColumn(self) -> None:
"""
Add a model property column.
"""
...