File size: 1,572 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 | # SPDX-License-Identifier: LGPL-2.1-or-later
from Base.Metadata import export
from Base.BaseClass import BaseClass
from typing import Any, Final, Tuple
@export(
Include="Gui/Selection/SelectionObject.h",
Delete=True,
)
class SelectionObject(BaseClass):
"""
This class represents selections made by the user. It holds information about the object, document and sub-element of the selection.
Author: Juergen Riegel (FreeCAD@juergen-riegel.net)
Licence: LGPL
"""
def remove(self) -> None:
"""
Remove this selection item from the selection.
--
This object becomes invalid.
"""
...
def isObjectTypeOf(self, type: Any, /) -> bool:
"""
Test for a certain father class.
"""
...
ObjectName: Final[str] = ""
"""Name of the selected object"""
SubElementNames: Final[Tuple[str, ...]] = ()
"""Name of the selected sub-element if any"""
FullName: Final[str] = ""
"""Name of the selected object"""
TypeName: Final[str] = ""
"""Type name of the selected object"""
DocumentName: Final[str] = ""
"""Name of the document of the selected object"""
Document: Final[Any] = ...
"""Document of the selected object"""
Object: Final[Any] = ...
"""Selected object"""
SubObjects: Final[Tuple[Any, ...]] = ()
"""Selected sub-element, if any"""
PickedPoints: Final[Tuple[Any, ...]] = ()
"""Picked points for selection"""
HasSubObjects: Final[bool] = False
"""Selected sub-element, if any"""
|