Files
create/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi
PaddleStroke fe534bcf99 Assembly: Isolate joint components during selection and edit. (#23680)
* Core: Add signalBeforeOpenTransaction

* Assembly: Isolate

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update src/App/AutoTransaction.cpp

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2025-10-02 21:07:06 -05:00

68 lines
1.9 KiB
Python

from typing import Any
from Base.Metadata import export
from Gui.ViewProvider import ViewProvider
@export(Include="Mod/Assembly/Gui/ViewProviderAssembly.h", Namespace="AssemblyGui")
class ViewProviderAssembly(ViewProvider):
"""
This is the ViewProviderAssembly class
Author: Ondsel (development@ondsel.com)
License: LGPL-2.1-or-later
"""
def isInEditMode(self) -> Any:
"""
Return true if the assembly object is currently in edit mode.
isInEditMode() -> bool"""
...
def getDragger(self) -> Any:
"""
Return the assembly dragger coin object.
getDragger() -> SoTransformDragger
Returns: dragger coin object of the assembly"""
...
def isolateComponents(
self, components: List[DocumentObject] | Tuple[DocumentObject, ...], mode: int
) -> None:
"""
Temporarily isolates a given set of components in the 3D view.
Other components are faded or hidden based on the specified mode.
Args:
components (List[DocumentObject] | Tuple[DocumentObject, ...]):
A list or tuple of DocumentObjects to isolate.
mode (int): An integer specifying the isolation mode:
- 0: Transparent
- 1: Wireframe
- 2: Hidden
"""
...
def clearIsolate(self) -> None:
"""
Restores the visual state of all components, clearing any active isolation.
"""
...
EnableMovement: bool
"""Enable moving the parts by clicking and dragging."""
MoveOnlyPreselected: bool
"""If enabled, only the preselected object will move."""
MoveInCommand: bool
"""If enabled, each move will be wrapped in a command."""
DraggerVisibility: bool
"""Show or hide the assembly dragger."""
DraggerPlacement: Any
"""Placement of the assembly dragger object."""