File size: 1,665 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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | # 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/CenterLine.h",
Namespace="TechDraw",
Constructor=True,
Delete=True,
)
class CenterLine(PyObjectBase):
"""
CenterLine specifies additional mark up edges in a View
Author: WandererFan (wandererfan@gmail.com)
License: LGPL-2.1-or-later
"""
@constmethod
def clone(self) -> Any:
"""Create a clone of this centerline"""
...
@constmethod
def copy(self) -> Any:
"""Create a copy of this centerline"""
...
Tag: Final[str]
"""Gives the tag of the CenterLine as string."""
Type: Final[int]
"""0 - face, 1 - 2 line, 2 - 2 point."""
Mode: int
"""0 - vert/ 1 - horiz/ 2 - aligned."""
Format: dict[str, Any]
"""The appearance attributes (style, color, weight, visible) for this CenterLine."""
HorizShift: float
"""The left/right offset for this CenterLine."""
VertShift: float
"""The up/down offset for this CenterLine."""
Rotation: float
"""The rotation of the Centerline in degrees."""
Extension: float
"""The additional length to be added to this CenterLine."""
Flip: bool
"""Reverse the order of points for 2 point CenterLine."""
Edges: list[Any]
"""The names of source edges for this CenterLine."""
Faces: list[Any]
"""The names of source Faces for this CenterLine."""
Points: list[Any]
"""The names of source Points for this CenterLine."""
|