File size: 1,197 Bytes
985c397 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | # SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any, Final
from Base.PyObjectBase import PyObjectBase
from Base.Metadata import constmethod, export
@export(
Include="Mod/TechDraw/App/Cosmetic.h",
Namespace="TechDraw",
Constructor=True,
Delete=True,
)
class CosmeticVertex(PyObjectBase):
"""
CosmeticVertex specifies an extra (cosmetic) vertex in Views
Author: WandererFan (wandererfan@gmail.com)
License: LGPL-2.1-or-later
"""
@constmethod
def clone(self) -> Any:
"""Create a clone of this CosmeticVertex"""
...
@constmethod
def copy(self) -> Any:
"""Create a copy of this CosmeticVertex"""
...
Tag: Final[str]
"""Gives the tag of the CosmeticVertex as string."""
Point: Any
"""Gives the position of this CosmeticVertex as vector."""
Show: bool
"""Show/hide the vertex."""
Color: Any # type: tuple[float, float, float, float]]
"""set/return the vertex's colour using a tuple (rgba)."""
Size: Any
"""set/return the vertex's radius in mm."""
Style: Any
"""set/return the vertex's style as integer."""
|