| 1 |
from Base.Metadata import export, class_declarations |
| 2 |
from Base.PyObjectBase import PyObjectBase |
| 3 |
from typing import Any, overload |
| 4 |
|
| 5 |
|
| 6 |
@export( |
| 7 |
Constructor=True, |
| 8 |
Delete=True, |
| 9 |
) |
| 10 |
@class_declarations( |
| 11 |
"""public: |
| 12 |
static Base::Color toColor(PyObject* value); |
| 13 |
""" |
| 14 |
) |
| 15 |
class Material(PyObjectBase): |
| 16 |
""" |
| 17 |
App.Material class. |
| 18 |
|
| 19 |
Author: Werner Mayer ([email protected]) |
| 20 |
Licence: LGPL |
| 21 |
UserDocu: This is the Material class |
| 22 |
""" |
| 23 |
|
| 24 |
@overload |
| 25 |
def __init__(self, *args: Any, **kwargs: Any) -> None: |
| 26 |
... |
| 27 |
|
| 28 |
def set(self, string: str) -> None: |
| 29 |
""" |
| 30 |
Set(string) -- Set the material. |
| 31 |
|
| 32 |
The material must be one of the following values: |
| 33 |
Brass, Bronze, Copper, Gold, Pewter, Plaster, Plastic, Silver, Steel, Stone, Shiny plastic, |
| 34 |
Satin, Metalized, Neon GNC, Chrome, Aluminium, Obsidian, Neon PHC, Jade, Ruby or Emerald. |
| 35 |
""" |
| 36 |
... |
| 37 |
|
| 38 |
AmbientColor: Any = ... |
| 39 |
"""Ambient color""" |
| 40 |
|
| 41 |
DiffuseColor: Any = ... |
| 42 |
"""Diffuse color""" |
| 43 |
|
| 44 |
EmissiveColor: Any = ... |
| 45 |
"""Emissive color""" |
| 46 |
|
| 47 |
SpecularColor: Any = ... |
| 48 |
"""Specular color""" |
| 49 |
|
| 50 |
Shininess: float = 0.0 |
| 51 |
"""Shininess""" |
| 52 |
|
| 53 |
Transparency: float = 0.0 |
| 54 |
"""Transparency""" |