[bindings] Code formatting
This commit is contained in:
@@ -6,12 +6,7 @@ from Base.Metadata import export
|
||||
from Base.BaseClass import BaseClass
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/MaterialFilter.h",
|
||||
Namespace="Materials",
|
||||
Constructor=True,
|
||||
Delete=True
|
||||
)
|
||||
@export(Include="Mod/Material/App/MaterialFilter.h", Namespace="Materials", Constructor=True, Delete=True)
|
||||
class MaterialFilterOptions(BaseClass):
|
||||
"""
|
||||
Material filtering options.
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/MaterialLibrary.h",
|
||||
Namespace="Materials",
|
||||
|
||||
@@ -6,11 +6,8 @@ from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict, overload
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/MaterialManager.h",
|
||||
Namespace="Materials",
|
||||
Constructor=True
|
||||
)
|
||||
|
||||
@export(Include="Mod/Material/App/MaterialManager.h", Namespace="Materials", Constructor=True)
|
||||
class MaterialManager(BaseClass):
|
||||
"""
|
||||
Material descriptions.
|
||||
@@ -71,4 +68,4 @@ class MaterialManager(BaseClass):
|
||||
"""
|
||||
Refreshes the material tree. Use sparingly as this is an expensive operation.
|
||||
"""
|
||||
...
|
||||
...
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export
|
||||
from ModelProperty import ModelProperty
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/Materials.h",
|
||||
Namespace="Materials",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict, overload
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/Model.h",
|
||||
Namespace="Materials",
|
||||
@@ -19,49 +20,49 @@ class Model(BaseClass):
|
||||
Author: DavidCarter (dcarter@davidcarter.ca)
|
||||
Licence: LGPL
|
||||
"""
|
||||
|
||||
|
||||
LibraryName: Final[str] = ""
|
||||
"""Model library name."""
|
||||
|
||||
|
||||
LibraryRoot: Final[str] = ""
|
||||
"""Model library path."""
|
||||
|
||||
|
||||
LibraryIcon: Final[bytes] = ""
|
||||
"""Model icon."""
|
||||
|
||||
|
||||
Name: str = ""
|
||||
"""Model name."""
|
||||
|
||||
|
||||
Type: str = ""
|
||||
"""Model type."""
|
||||
|
||||
|
||||
Directory: str = ""
|
||||
"""Model directory."""
|
||||
|
||||
|
||||
UUID: Final[str] = ""
|
||||
"""Unique model identifier."""
|
||||
|
||||
|
||||
Description: str = ""
|
||||
"""Description of the model."""
|
||||
|
||||
|
||||
URL: str = ""
|
||||
"""URL to a detailed description of the model."""
|
||||
|
||||
|
||||
DOI: str = ""
|
||||
"""Digital Object Identifier (see https://doi.org/)"""
|
||||
|
||||
|
||||
Inherited: Final[List[str]] = []
|
||||
"""List of inherited models identified by UUID."""
|
||||
|
||||
|
||||
Properties: Final[Dict[str, str]] = {}
|
||||
"""Dictionary of model properties."""
|
||||
|
||||
|
||||
def addInheritance(self) -> None:
|
||||
"""
|
||||
Add an inherited model.
|
||||
"""
|
||||
...
|
||||
|
||||
|
||||
def addProperty(self) -> None:
|
||||
"""
|
||||
Add a model property.
|
||||
|
||||
@@ -6,11 +6,8 @@ from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, List, Dict
|
||||
|
||||
@export(
|
||||
Include="Mod/Material/App/ModelManager.h",
|
||||
Namespace="Materials",
|
||||
Constructor=True
|
||||
)
|
||||
|
||||
@export(Include="Mod/Material/App/ModelManager.h", Namespace="Materials", Constructor=True)
|
||||
class ModelManager(BaseClass):
|
||||
"""
|
||||
Material model descriptions.
|
||||
@@ -28,13 +25,13 @@ class ModelManager(BaseClass):
|
||||
Models: Final[Dict] = ...
|
||||
"""List of model libraries."""
|
||||
|
||||
def getModel(self) -> ...:
|
||||
def getModel(self) ->...:
|
||||
"""
|
||||
Get a model object by specifying its UUID
|
||||
"""
|
||||
...
|
||||
|
||||
def getModelByPath(self) -> ...:
|
||||
def getModelByPath(self) ->...:
|
||||
"""
|
||||
Get a model object by specifying its path
|
||||
"""
|
||||
|
||||
@@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final
|
||||
|
||||
|
||||
@export(
|
||||
PythonName="Material.UUIDs",
|
||||
Twin="ModelUUIDs",
|
||||
|
||||
@@ -6,6 +6,7 @@ from Metadata import export, constmethod, forward_declarations, class_declaratio
|
||||
from Base.BaseClass import BaseClass
|
||||
from typing import Final, overload
|
||||
|
||||
|
||||
@export(
|
||||
Twin="MaterialTreeWidget",
|
||||
TwinPointer="MaterialTreeWidget",
|
||||
|
||||
Reference in New Issue
Block a user