Core: Generation of python bindings for Techdraw (#22565)
* first working interfaces.. * adding the rest. * updated all pyi files. * running black for formatting. * removing unused imports * removing empty comments * fixing typing declarations. * removing inline comments. * fixing pyObjectBase in CosmeticEdgePy * removing erroneous tags. * running black. * fixing CenterLinePy * fixing import issues. * Fixing tuple. * Enabling CosmeticEdge compilation. * fixing comments, removing unused imports. * fixing ordering
This commit is contained in:
31
src/Mod/TechDraw/App/DrawBrokenViewPy.pyi
Normal file
31
src/Mod/TechDraw/App/DrawBrokenViewPy.pyi
Normal file
@@ -0,0 +1,31 @@
|
||||
from typing import Any
|
||||
|
||||
from Base.Metadata import export
|
||||
from TechDraw.DrawViewPart import DrawViewPart
|
||||
|
||||
@export(
|
||||
Father="DrawViewPartPy",
|
||||
Name="DrawBrokenViewPy",
|
||||
Twin="DrawBrokenView",
|
||||
TwinPointer="DrawBrokenView",
|
||||
Include="Mod/TechDraw/App/DrawBrokenView.h",
|
||||
Namespace="TechDraw",
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPartPy.h",
|
||||
FatherNamespace="TechDraw",
|
||||
)
|
||||
class DrawBrokenViewPy(DrawViewPart):
|
||||
"""
|
||||
Feature for creating and manipulating Technical Drawing broken views
|
||||
"""
|
||||
|
||||
def mapPoint3dToView(self) -> Any:
|
||||
"""point2d = mapPoint3dToView(point3d) - returns the position of the 3d point within the broken view."""
|
||||
...
|
||||
|
||||
def mapPoint2dFromView(self) -> Any:
|
||||
"""point2d = mapPoint2dFromView(point3d) - returns the position of the 2d point within an unbroken view."""
|
||||
...
|
||||
|
||||
def getCompressedCenter(self) -> Any:
|
||||
"""point3d = getCompressedCenter() - returns the geometric center of the source shapes after break cuts and gap compression."""
|
||||
...
|
||||
Reference in New Issue
Block a user