File size: 1,211 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 | # SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Final, TypeAlias
from Base.PyObjectBase import PyObjectBase
from Base.Metadata import export
from Base import Vector
PyCXXVector: TypeAlias = Vector # Dirty trick to workaround current generator limitations
@export(
Include="Mod/TechDraw/App/Cosmetic.h",
Namespace="TechDraw",
FatherInclude="Base/GeometryPyCXX.h",
Constructor=True,
Delete=True,
)
class CosmeticEdge(PyObjectBase):
"""
CosmeticEdge specifies an extra (cosmetic) edge in Views
Author: WandererFan (wandererfan@gmail.com)
License: LGPL-2.1-or-later
"""
Tag: Final[str]
"""Gives the tag of the CosmeticEdge as string."""
Start: PyCXXVector
"""Gives the position of one end of this CosmeticEdge as vector."""
End: PyCXXVector
"""Gives the position of one end of this CosmeticEdge as vector."""
Center: PyCXXVector
"""Gives the position of center point of this CosmeticEdge as vector."""
Radius: float
"""Gives the radius of CosmeticEdge in mm."""
Format: dict
"""The appearance attributes (style, weight, color, visible) for this CosmeticEdge."""
|