From 4a17d628a7e78ee65467465795461dda248f4f04 Mon Sep 17 00:00:00 2001 From: Ian 'z0r0' Abreu Date: Sun, 31 Aug 2025 15:19:25 -0400 Subject: [PATCH 01/10] Finalizing Python interface bindings for assembly --- .../{AssemblyLinkPy.pyi => AssemblyLink.pyi} | 8 +- src/Mod/Assembly/App/AssemblyLinkPy.xml | 24 --- ...ssemblyObjectPy.pyi => AssemblyObject.pyi} | 13 +- src/Mod/Assembly/App/AssemblyObjectPy.xml | 182 ------------------ src/Mod/Assembly/App/BomGroup.pyi | 9 + src/Mod/Assembly/App/BomGroupPy.pyi | 18 -- src/Mod/Assembly/App/BomGroupPy.xml | 19 -- .../App/{BomObjectPy.pyi => BomObject.pyi} | 9 +- src/Mod/Assembly/App/BomObjectPy.xml | 19 -- src/Mod/Assembly/App/CMakeLists.txt | 36 ++-- src/Mod/Assembly/App/JointGroup.pyi | 9 + src/Mod/Assembly/App/JointGroupPy.pyi | 18 -- src/Mod/Assembly/App/JointGroupPy.xml | 19 -- src/Mod/Assembly/App/SimulationGroup.pyi | 9 + src/Mod/Assembly/App/SimulationGroupPy.pyi | 18 -- src/Mod/Assembly/App/SimulationGroupPy.xml | 19 -- src/Mod/Assembly/App/ViewGroup.pyi | 9 + src/Mod/Assembly/App/ViewGroupPy.pyi | 18 -- src/Mod/Assembly/App/ViewGroupPy.xml | 19 -- src/Mod/Assembly/Gui/CMakeLists.txt | 5 +- ...ssemblyPy.pyi => ViewProviderAssembly.pyi} | 13 +- .../Assembly/Gui/ViewProviderAssemblyPy.xml | 68 ------- .../templates/templateClassPyExport.py | 1 + 23 files changed, 60 insertions(+), 502 deletions(-) rename src/Mod/Assembly/App/{AssemblyLinkPy.pyi => AssemblyLink.pyi} (62%) delete mode 100644 src/Mod/Assembly/App/AssemblyLinkPy.xml rename src/Mod/Assembly/App/{AssemblyObjectPy.pyi => AssemblyObject.pyi} (92%) delete mode 100644 src/Mod/Assembly/App/AssemblyObjectPy.xml create mode 100644 src/Mod/Assembly/App/BomGroup.pyi delete mode 100644 src/Mod/Assembly/App/BomGroupPy.pyi delete mode 100644 src/Mod/Assembly/App/BomGroupPy.xml rename src/Mod/Assembly/App/{BomObjectPy.pyi => BomObject.pyi} (65%) delete mode 100644 src/Mod/Assembly/App/BomObjectPy.xml create mode 100644 src/Mod/Assembly/App/JointGroup.pyi delete mode 100644 src/Mod/Assembly/App/JointGroupPy.pyi delete mode 100644 src/Mod/Assembly/App/JointGroupPy.xml create mode 100644 src/Mod/Assembly/App/SimulationGroup.pyi delete mode 100644 src/Mod/Assembly/App/SimulationGroupPy.pyi delete mode 100644 src/Mod/Assembly/App/SimulationGroupPy.xml create mode 100644 src/Mod/Assembly/App/ViewGroup.pyi delete mode 100644 src/Mod/Assembly/App/ViewGroupPy.pyi delete mode 100644 src/Mod/Assembly/App/ViewGroupPy.xml rename src/Mod/Assembly/Gui/{ViewProviderAssemblyPy.pyi => ViewProviderAssembly.pyi} (74%) delete mode 100644 src/Mod/Assembly/Gui/ViewProviderAssemblyPy.xml diff --git a/src/Mod/Assembly/App/AssemblyLinkPy.pyi b/src/Mod/Assembly/App/AssemblyLink.pyi similarity index 62% rename from src/Mod/Assembly/App/AssemblyLinkPy.pyi rename to src/Mod/Assembly/App/AssemblyLink.pyi index 14f4b03e11..f78aa8e613 100644 --- a/src/Mod/Assembly/App/AssemblyLinkPy.pyi +++ b/src/Mod/Assembly/App/AssemblyLink.pyi @@ -5,16 +5,10 @@ from Base.Metadata import export from App.Part import Part @export( - Father="PartPy", - Name="AssemblyLinkPy", - Twin="AssemblyLink", - TwinPointer="AssemblyLink", Include="Mod/Assembly/App/AssemblyLink.h", Namespace="Assembly", - FatherInclude="App/PartPy.h", - FatherNamespace="App", ) -class AssemblyLinkPy(Part): +class AssemblyLink(Part): """ This class handles document objects in Assembly """ diff --git a/src/Mod/Assembly/App/AssemblyLinkPy.xml b/src/Mod/Assembly/App/AssemblyLinkPy.xml deleted file mode 100644 index e21a050895..0000000000 --- a/src/Mod/Assembly/App/AssemblyLinkPy.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - This class handles document objects in Assembly - - - - A list of all joints this assembly link has. - - - - - - diff --git a/src/Mod/Assembly/App/AssemblyObjectPy.pyi b/src/Mod/Assembly/App/AssemblyObject.pyi similarity index 92% rename from src/Mod/Assembly/App/AssemblyObjectPy.pyi rename to src/Mod/Assembly/App/AssemblyObject.pyi index 8d971b7d94..29e9014607 100644 --- a/src/Mod/Assembly/App/AssemblyObjectPy.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -4,17 +4,8 @@ from Base.Metadata import constmethod, export from App.Part import Part -@export( - Father="PartPy", - Name="AssemblyObjectPy", - Twin="AssemblyObject", - TwinPointer="AssemblyObject", - Include="Mod/Assembly/App/AssemblyObject.h", - Namespace="Assembly", - FatherInclude="App/PartPy.h", - FatherNamespace="App", -) -class AssemblyObjectPy(Part): +@export(Include="Mod/Assembly/App/AssemblyObject.h", Namespace="Assembly") +class AssemblyObject(Part): """ This class handles document objects in Assembly """ diff --git a/src/Mod/Assembly/App/AssemblyObjectPy.xml b/src/Mod/Assembly/App/AssemblyObjectPy.xml deleted file mode 100644 index 335da8064b..0000000000 --- a/src/Mod/Assembly/App/AssemblyObjectPy.xml +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - This class handles document objects in Assembly - - - - -Solve the assembly and update part placements. - -solve(enableRedo=False) -> int - -Args: -enableRedo: Whether the solve save the initial position of parts -to enable undoing it even without a transaction. -Defaults to `False` ie the solve cannot be undone if called -outside of a transaction. - -Returns: -0 in case of success, otherwise the following codes in this order of -priority: --6 if no parts are fixed. --4 if over-constrained, --3 if conflicting constraints, --5 if malformed constraints --1 if solver error, --2 if redundant constraints. - - - - - - -Generate the simulation. - -solve(simulationObject) -> int - -Args: -simulationObject: The simulation Object. - -Returns: -0 in case of success, otherwise the following codes in this order of -priority: --6 if no parts are fixed. --4 if over-constrained, --3 if conflicting constraints, --5 if malformed constraints --1 if solver error, --2 if redundant constraints. - - - - - - -Update entire assembly to frame number specified. - -updateForFrame(index) - -Args: index of frame. - -Returns: None - - - - - - -numberOfFrames() - -Args: None - -Returns: Number of frames - - - - - - -Undo the last solve of the assembly and return part placements to their initial position. - -undoSolve() - -Returns: None - - - - - - -Makes sure that LinkGroups or sub-assemblies have identity placements. - -ensureIdentityPlacements() - -Returns: None - - - - - - -Clear the registered undo positions. - -clearUndo() - -Returns: None - - - - - - -Check if a part is connected to the ground through joints. - -isPartConnected(obj) -> bool - -Args: document object to check. - -Returns: True if part is connected to ground - - - - - - -Check if a joint is connecting a part to the ground. - -isJointConnectingPartToGround(joint, propName) -> bool - -Args: -- joint: document object of the joint to check. -- propName: string 'Part1' or 'Part2' of the joint. - -Returns: True if part is connected to ground - - - - - - -Check if a part has a grounded joint. - -isPartGrounded(obj) -> bool - -Args: -- obj: document object of the part to check. - -Returns: True if part has grounded joint - - - - - - -Export the assembly in a text format called ASMT. - -exportAsASMT(fileName:str) - -Args: -fileName: The name of the file where the ASMT will be exported. - - - - - - A list of all joints this assembly has. - - - - - - diff --git a/src/Mod/Assembly/App/BomGroup.pyi b/src/Mod/Assembly/App/BomGroup.pyi new file mode 100644 index 0000000000..eec7081082 --- /dev/null +++ b/src/Mod/Assembly/App/BomGroup.pyi @@ -0,0 +1,9 @@ +from Base.Metadata import export + +from App.DocumentObjectGroup import DocumentObjectGroup + +@export(Include="Mod/Assembly/App/BomGroup.h", Namespace="Assembly") +class BomGroup(DocumentObjectGroup): + """ + This class is a group subclass for boms. + """ diff --git a/src/Mod/Assembly/App/BomGroupPy.pyi b/src/Mod/Assembly/App/BomGroupPy.pyi deleted file mode 100644 index 7ce2066a83..0000000000 --- a/src/Mod/Assembly/App/BomGroupPy.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from Base.Metadata import export - -from App.DocumentObjectGroup import DocumentObjectGroup - -@export( - Father="DocumentObjectGroupPy", - Name="BomGroupPy", - Twin="BomGroup", - TwinPointer="BomGroup", - Include="Mod/Assembly/App/BomGroup.h", - Namespace="Assembly", - FatherInclude="App/DocumentObjectGroupPy.h", - FatherNamespace="App", -) -class BomGroupPy(DocumentObjectGroup): - """ - This class is a group subclass for boms. - """ diff --git a/src/Mod/Assembly/App/BomGroupPy.xml b/src/Mod/Assembly/App/BomGroupPy.xml deleted file mode 100644 index 2a5c48abf6..0000000000 --- a/src/Mod/Assembly/App/BomGroupPy.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - This class is a group subclass for boms. - - - - - diff --git a/src/Mod/Assembly/App/BomObjectPy.pyi b/src/Mod/Assembly/App/BomObject.pyi similarity index 65% rename from src/Mod/Assembly/App/BomObjectPy.pyi rename to src/Mod/Assembly/App/BomObject.pyi index a1847ab68d..fb0581b921 100644 --- a/src/Mod/Assembly/App/BomObjectPy.pyi +++ b/src/Mod/Assembly/App/BomObject.pyi @@ -2,16 +2,11 @@ from Base.Metadata import export from Spreadsheet.Sheet import Sheet @export( - Father="SheetPy", - Name="BomObjectPy", - Twin="BomObject", - TwinPointer="BomObject", Include="Mod/Assembly/App/BomObject.h", - Namespace="Assembly", FatherInclude="Mod/Spreadsheet/App/SheetPy.h", - FatherNamespace="Spreadsheet", + Namespace="Assembly", ) -class BomObjectPy(Sheet): +class BomObject(Sheet): """ This class is the BOM object of assemblies, it derives from Spreadsheet::Sheet. """ diff --git a/src/Mod/Assembly/App/BomObjectPy.xml b/src/Mod/Assembly/App/BomObjectPy.xml deleted file mode 100644 index b329fcc984..0000000000 --- a/src/Mod/Assembly/App/BomObjectPy.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - This class is the BOM object of assemblies, it derives from Spreadsheet::Sheet. - - - - - diff --git a/src/Mod/Assembly/App/CMakeLists.txt b/src/Mod/Assembly/App/CMakeLists.txt index 6d944a784c..eb5882bf40 100644 --- a/src/Mod/Assembly/App/CMakeLists.txt +++ b/src/Mod/Assembly/App/CMakeLists.txt @@ -14,37 +14,29 @@ set(Assembly_LIBS OndselSolver ) -generate_from_xml(AssemblyObjectPy) -generate_from_xml(AssemblyLinkPy) -generate_from_xml(BomObjectPy) -generate_from_xml(BomGroupPy) -generate_from_xml(JointGroupPy) -generate_from_xml(ViewGroupPy) -generate_from_xml(SimulationGroupPy) - -generate_from_py_(AssemblyObjectPy) -generate_from_py_(AssemblyLinkPy) -generate_from_py_(BomObjectPy) -generate_from_py_(BomGroupPy) -generate_from_py_(JointGroupPy) -generate_from_py_(ViewGroupPy) -generate_from_py_(SimulationGroupPy) +generate_from_py(AssemblyObject) +generate_from_py(AssemblyLink) +generate_from_py(BomObject) +generate_from_py(BomGroup) +generate_from_py(JointGroup) +generate_from_py(ViewGroup) +generate_from_py(SimulationGroup) SET(Python_SRCS - AssemblyObjectPy.xml + AssemblyObject.pyi AssemblyObjectPyImp.cpp - AssemblyLinkPy.xml + AssemblyLink.pyi AssemblyLinkPyImp.cpp - BomObjectPy.xml + BomObject.pyi BomObjectPyImp.cpp - BomGroupPy.xml + BomGroup.pyi BomGroupPyImp.cpp - JointGroupPy.xml + JointGroup.pyi JointGroupPyImp.cpp - ViewGroupPy.xml + ViewGroup.pyi ViewGroupPyImp.cpp - SimulationGroupPy.xml + SimulationGroup.pyi SimulationGroupPyImp.cpp ) SOURCE_GROUP("Python" FILES ${Python_SRCS}) diff --git a/src/Mod/Assembly/App/JointGroup.pyi b/src/Mod/Assembly/App/JointGroup.pyi new file mode 100644 index 0000000000..f44a008fe3 --- /dev/null +++ b/src/Mod/Assembly/App/JointGroup.pyi @@ -0,0 +1,9 @@ +from Base.Metadata import export + +from App.DocumentObjectGroup import DocumentObjectGroup + +@export(Include="Mod/Assembly/App/JointGroup.h", Namespace="Assembly") +class JointGroup(DocumentObjectGroup): + """ + This class is a group subclass for joints. + """ diff --git a/src/Mod/Assembly/App/JointGroupPy.pyi b/src/Mod/Assembly/App/JointGroupPy.pyi deleted file mode 100644 index 89388781aa..0000000000 --- a/src/Mod/Assembly/App/JointGroupPy.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from Base.Metadata import export - -from App.DocumentObjectGroup import DocumentObjectGroup - -@export( - Father="DocumentObjectGroupPy", - Name="JointGroupPy", - Twin="JointGroup", - TwinPointer="JointGroup", - Include="Mod/Assembly/App/JointGroup.h", - Namespace="Assembly", - FatherInclude="App/DocumentObjectGroupPy.h", - FatherNamespace="App", -) -class JointGroupPy(DocumentObjectGroup): - """ - This class is a group subclass for joints. - """ diff --git a/src/Mod/Assembly/App/JointGroupPy.xml b/src/Mod/Assembly/App/JointGroupPy.xml deleted file mode 100644 index d3b8555461..0000000000 --- a/src/Mod/Assembly/App/JointGroupPy.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - This class is a group subclass for joints. - - - - - diff --git a/src/Mod/Assembly/App/SimulationGroup.pyi b/src/Mod/Assembly/App/SimulationGroup.pyi new file mode 100644 index 0000000000..56d1fcf155 --- /dev/null +++ b/src/Mod/Assembly/App/SimulationGroup.pyi @@ -0,0 +1,9 @@ +from Base.Metadata import export + +from App.DocumentObjectGroup import DocumentObjectGroup + +@export(Include="Mod/Assembly/App/SimulationGroup.h", Namespace="Assembly") +class SimulationGroup(DocumentObjectGroup): + """ + This class is a group subclass for joints. + """ diff --git a/src/Mod/Assembly/App/SimulationGroupPy.pyi b/src/Mod/Assembly/App/SimulationGroupPy.pyi deleted file mode 100644 index fc1c82a0e0..0000000000 --- a/src/Mod/Assembly/App/SimulationGroupPy.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from Base.Metadata import export - -from App.DocumentObjectGroup import DocumentObjectGroup - -@export( - Father="DocumentObjectGroupPy", - Name="SimulationGroupPy", - Twin="SimulationGroup", - TwinPointer="SimulationGroup", - Include="Mod/Assembly/App/SimulationGroup.h", - Namespace="Assembly", - FatherInclude="App/DocumentObjectGroupPy.h", - FatherNamespace="App", -) -class SimulationGroupPy(DocumentObjectGroup): - """ - This class is a group subclass for joints. - """ diff --git a/src/Mod/Assembly/App/SimulationGroupPy.xml b/src/Mod/Assembly/App/SimulationGroupPy.xml deleted file mode 100644 index cab1c61da8..0000000000 --- a/src/Mod/Assembly/App/SimulationGroupPy.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - This class is a group subclass for joints. - - - - - diff --git a/src/Mod/Assembly/App/ViewGroup.pyi b/src/Mod/Assembly/App/ViewGroup.pyi new file mode 100644 index 0000000000..9a4eb0e1a2 --- /dev/null +++ b/src/Mod/Assembly/App/ViewGroup.pyi @@ -0,0 +1,9 @@ +from Base.Metadata import export + +from App.DocumentObjectGroup import DocumentObjectGroup + +@export(Include="Mod/Assembly/App/ViewGroup.h", Namespace="Assembly") +class ViewGroup(DocumentObjectGroup): + """ + This class is a group subclass for joints. + """ diff --git a/src/Mod/Assembly/App/ViewGroupPy.pyi b/src/Mod/Assembly/App/ViewGroupPy.pyi deleted file mode 100644 index 5229d081ce..0000000000 --- a/src/Mod/Assembly/App/ViewGroupPy.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from Base.Metadata import export - -from App.DocumentObjectGroup import DocumentObjectGroup - -@export( - Father="DocumentObjectGroupPy", - Name="ViewGroupPy", - Twin="ViewGroup", - TwinPointer="ViewGroup", - Include="Mod/Assembly/App/ViewGroup.h", - Namespace="Assembly", - FatherInclude="App/DocumentObjectGroupPy.h", - FatherNamespace="App", -) -class ViewGroupPy(DocumentObjectGroup): - """ - This class is a group subclass for joints. - """ diff --git a/src/Mod/Assembly/App/ViewGroupPy.xml b/src/Mod/Assembly/App/ViewGroupPy.xml deleted file mode 100644 index 69446cba20..0000000000 --- a/src/Mod/Assembly/App/ViewGroupPy.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - This class is a group subclass for joints. - - - - - diff --git a/src/Mod/Assembly/Gui/CMakeLists.txt b/src/Mod/Assembly/Gui/CMakeLists.txt index 534ec90174..a20ee18c82 100644 --- a/src/Mod/Assembly/Gui/CMakeLists.txt +++ b/src/Mod/Assembly/Gui/CMakeLists.txt @@ -22,8 +22,7 @@ qt_add_resources(AssemblyResource_SRCS Resources/Assembly.qrc ${Assembly_TR_QRC} SOURCE_GROUP("Resources" FILES ${AssemblyResource_SRCS}) -generate_from_xml(ViewProviderAssemblyPy) -generate_from_py_(ViewProviderAssemblyPy) +generate_from_py(ViewProviderAssembly) set(AssemblyGui_UIC_SRCS TaskAssemblyCreateBom.ui @@ -35,7 +34,7 @@ set(AssemblyGui_UIC_SRCS ) SET(Python_SRCS - ViewProviderAssemblyPy.xml + ViewProviderAssembly.pyi ViewProviderAssemblyPyImp.cpp ) SOURCE_GROUP("Python" FILES ${Python_SRCS}) diff --git a/src/Mod/Assembly/Gui/ViewProviderAssemblyPy.pyi b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi similarity index 74% rename from src/Mod/Assembly/Gui/ViewProviderAssemblyPy.pyi rename to src/Mod/Assembly/Gui/ViewProviderAssembly.pyi index 4739c4f7b8..6775edbd23 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssemblyPy.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -4,17 +4,8 @@ from Base.Metadata import export from Gui.ViewProvider import ViewProvider -@export( - Father="ViewProviderPy", - Name="ViewProviderAssemblyPy", - Twin="ViewProviderAssembly", - TwinPointer="ViewProviderAssembly", - Include="Mod/Assembly/Gui/ViewProviderAssembly.h", - Namespace="AssemblyGui", - FatherInclude="Gui/ViewProviderPy.h", - FatherNamespace="Gui", -) -class ViewProviderAssemblyPy(ViewProvider): +@export(Include="Mod/Assembly/Gui/ViewProviderAssembly.h", Namespace="AssemblyGui") +class ViewProviderAssembly(ViewProvider): """ This is the ViewProviderAssembly class """ diff --git a/src/Mod/Assembly/Gui/ViewProviderAssemblyPy.xml b/src/Mod/Assembly/Gui/ViewProviderAssemblyPy.xml deleted file mode 100644 index 34db07a03d..0000000000 --- a/src/Mod/Assembly/Gui/ViewProviderAssemblyPy.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - This is the ViewProviderAssembly class - - - - - - Return true if the assembly object is currently in edit mode. - - isInEditMode() -> bool - - - - - - - Return the assembly dragger coin object. - - getDragger() -> SoTransformDragger - - Returns: dragger coin object of the assembly - - - - - - Enable moving the parts by clicking and dragging. - - - - - - If enabled, only the preselected object will move. - - - - - - If enabled, each move will be wrapped in a command. - - - - - - Show or hide the assembly dragger. - - - - - - Placement of the assembly dragger object. - - - - - diff --git a/src/Tools/bindings/templates/templateClassPyExport.py b/src/Tools/bindings/templates/templateClassPyExport.py index 3f9bb112a9..ffaac1c5a7 100644 --- a/src/Tools/bindings/templates/templateClassPyExport.py +++ b/src/Tools/bindings/templates/templateClassPyExport.py @@ -40,6 +40,7 @@ class TemplateClassPyExport(template.ModelTemplate): if self.is_python and not self.export.ModuleName in [ "Base", "App", + "Assembly", "Gui", "Part", "PartDesign", From 283e60d1d230b13de275626b14c8660b563b14d2 Mon Sep 17 00:00:00 2001 From: Ian 'z0r0' Abreu Date: Sun, 31 Aug 2025 15:24:02 -0400 Subject: [PATCH 02/10] Finalizing Python interface bindings for CAM. --- src/Mod/CAM/App/{AreaPy.pyi => Area.pyi} | 8 +- src/Mod/CAM/App/AreaPy.xml | 131 ------------------ src/Mod/CAM/App/CMakeLists.txt | 46 +++--- .../CAM/App/{CommandPy.pyi => Command.pyi} | 8 +- src/Mod/CAM/App/CommandPy.xml | 56 -------- .../{FeatureAreaPy.pyi => FeatureArea.pyi} | 8 +- src/Mod/CAM/App/FeatureAreaPy.xml | 36 ----- ...CompoundPy.pyi => FeaturePathCompound.pyi} | 9 +- src/Mod/CAM/App/FeaturePathCompoundPy.xml | 28 ---- src/Mod/CAM/App/{PathPy.pyi => Path.pyi} | 8 +- src/Mod/CAM/App/PathPy.xml | 91 ------------ .../CAM/App/{VoronoiPy.pyi => Voronoi.pyi} | 9 +- .../{VoronoiCellPy.pyi => VoronoiCell.pyi} | 9 +- src/Mod/CAM/App/VoronoiCellPy.xml | 77 ---------- .../{VoronoiEdgePy.pyi => VoronoiEdge.pyi} | 9 +- src/Mod/CAM/App/VoronoiEdgePy.xml | 125 ----------------- src/Mod/CAM/App/VoronoiPy.xml | 108 --------------- ...{VoronoiVertexPy.pyi => VoronoiVertex.pyi} | 9 +- src/Mod/CAM/App/VoronoiVertexPy.xml | 56 -------- src/Mod/CAM/PathSimulator/App/CMakeLists.txt | 5 +- .../App/{PathSimPy.pyi => PathSim.pyi} | 7 +- src/Mod/CAM/PathSimulator/App/PathSimPy.xml | 66 --------- .../AppGL/{CAMSimPy.pyi => CAMSim.pyi} | 7 +- src/Mod/CAM/PathSimulator/AppGL/CAMSimPy.xml | 70 ---------- .../CAM/PathSimulator/AppGL/CMakeLists.txt | 6 +- .../templates/templateClassPyExport.py | 1 + 26 files changed, 36 insertions(+), 957 deletions(-) rename src/Mod/CAM/App/{AreaPy.pyi => Area.pyi} (94%) delete mode 100644 src/Mod/CAM/App/AreaPy.xml rename src/Mod/CAM/App/{CommandPy.pyi => Command.pyi} (86%) delete mode 100644 src/Mod/CAM/App/CommandPy.xml rename src/Mod/CAM/App/{FeatureAreaPy.pyi => FeatureArea.pyi} (76%) delete mode 100644 src/Mod/CAM/App/FeatureAreaPy.xml rename src/Mod/CAM/App/{FeaturePathCompoundPy.pyi => FeaturePathCompound.pyi} (68%) delete mode 100644 src/Mod/CAM/App/FeaturePathCompoundPy.xml rename src/Mod/CAM/App/{PathPy.pyi => Path.pyi} (92%) delete mode 100644 src/Mod/CAM/App/PathPy.xml rename src/Mod/CAM/App/{VoronoiPy.pyi => Voronoi.pyi} (90%) rename src/Mod/CAM/App/{VoronoiCellPy.pyi => VoronoiCell.pyi} (83%) delete mode 100644 src/Mod/CAM/App/VoronoiCellPy.xml rename src/Mod/CAM/App/{VoronoiEdgePy.pyi => VoronoiEdge.pyi} (89%) delete mode 100644 src/Mod/CAM/App/VoronoiEdgePy.xml delete mode 100644 src/Mod/CAM/App/VoronoiPy.xml rename src/Mod/CAM/App/{VoronoiVertexPy.pyi => VoronoiVertex.pyi} (72%) delete mode 100644 src/Mod/CAM/App/VoronoiVertexPy.xml rename src/Mod/CAM/PathSimulator/App/{PathSimPy.pyi => PathSim.pyi} (88%) delete mode 100644 src/Mod/CAM/PathSimulator/App/PathSimPy.xml rename src/Mod/CAM/PathSimulator/AppGL/{CAMSimPy.pyi => CAMSim.pyi} (90%) delete mode 100644 src/Mod/CAM/PathSimulator/AppGL/CAMSimPy.xml diff --git a/src/Mod/CAM/App/AreaPy.pyi b/src/Mod/CAM/App/Area.pyi similarity index 94% rename from src/Mod/CAM/App/AreaPy.pyi rename to src/Mod/CAM/App/Area.pyi index 6c2a62ca2d..28048bbe7f 100644 --- a/src/Mod/CAM/App/AreaPy.pyi +++ b/src/Mod/CAM/App/Area.pyi @@ -4,19 +4,13 @@ from Base.BaseClass import BaseClass from Base.Metadata import export @export( - Father="BaseClassPy", - Name="AreaPy", - Twin="Area", - TwinPointer="Area", Include="Mod/CAM/App/Area.h", Namespace="Path", - FatherInclude="Base/BaseClassPy.h", - FatherNamespace="Base", ReadOnly=["Sections", "Shapes"], Constructor=True, Delete=True, ) -class AreaPy(BaseClass): +class Area(BaseClass): """ FreeCAD python wrapper of libarea diff --git a/src/Mod/CAM/App/AreaPy.xml b/src/Mod/CAM/App/AreaPy.xml deleted file mode 100644 index 32ecad002f..0000000000 --- a/src/Mod/CAM/App/AreaPy.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - -FreeCAD python wrapper of libarea - -Path.Area(key=value ...) - -The constructor accepts the same parameters as setParams(...) to configure the object -All arguments are optional. - - - - - - - - - - setPlane(shape): Set the working plane. - -The supplied shape does not need to be planar. Area will try to find planar -sub-shape (face, wire or edge). If more than one planar sub-shape is found, it -will prefer the top plane parallel to XY0 plane. If no working plane are set, -Area will try to find a working plane from the added children shape using the -same algorithm - - - - - getShape(index=-1,rebuild=False): Return the resulting shape - - -* index (-1): the index of the section. -1 means all sections. No effect on planar shape. - - -* rebuild: clean the internal cache and rebuild - - - - - Make an offset of the shape. - - - - - Generate pocket toolpath of the shape. - - - - - Make a list of area holding the sectioned children shapes on given heights. - - - - - Gets the area cleared when a tool of the specified diameter follows the gcode represented in the path, ignoring cleared space above zmax and path segments that don't affect space within the x/y space of bbox. - - - - - Rest machining: Gets the area left to be machined, assuming some of this area has already been cleared by previous tool paths. - - - - - Convert the Area object to a TopoShape. - - - - - Set algorithm parameters. - - - - - Static method to set the default parameters of all following Path.Area, plus the following additional parameters. - - - - - Static method to return the current default parameters. - - - - - Returns a list of supported parameters and their descriptions. - - - - - Get current algorithm parameters as a dictionary. - - - - - Abort the current operation. - - - - - List of sections in this area. - - - - - - The current workplane. If no plane is set, it is derived from the added shapes. - - - - - - A list of tuple: [(shape,op), ...] containing the added shapes together with their operation code - - - - - diff --git a/src/Mod/CAM/App/CMakeLists.txt b/src/Mod/CAM/App/CMakeLists.txt index 616896c5a6..d8aee8962e 100644 --- a/src/Mod/CAM/App/CMakeLists.txt +++ b/src/Mod/CAM/App/CMakeLists.txt @@ -21,44 +21,34 @@ set(Path_LIBS FreeCADApp ) -generate_from_xml(CommandPy) -generate_from_xml(PathPy) -generate_from_xml(FeaturePathCompoundPy) -generate_from_xml(AreaPy) -generate_from_xml(FeatureAreaPy) -generate_from_xml(VoronoiPy) -generate_from_xml(VoronoiCellPy) -generate_from_xml(VoronoiEdgePy) -generate_from_xml(VoronoiVertexPy) - -generate_from_py_(CommandPy) -generate_from_py_(PathPy) -generate_from_py_(FeaturePathCompoundPy) -generate_from_py_(AreaPy) -generate_from_py_(FeatureAreaPy) -generate_from_py_(VoronoiPy) -generate_from_py_(VoronoiCellPy) -generate_from_py_(VoronoiEdgePy) -generate_from_py_(VoronoiVertexPy) +generate_from_py(Command) +generate_from_py(Path) +generate_from_py(FeaturePathCompound) +generate_from_py(Area) +generate_from_py(FeatureArea) +generate_from_py(Voronoi) +generate_from_py(VoronoiCell) +generate_from_py(VoronoiEdge) +generate_from_py(VoronoiVertex) SET(Python_SRCS - CommandPy.xml + Command.pyi CommandPyImp.cpp - PathPy.xml + Path.pyi PathPyImp.cpp - FeaturePathCompoundPy.xml + FeaturePathCompound.pyi FeaturePathCompoundPyImp.cpp - AreaPy.xml + Area.pyi AreaPyImp.cpp - FeatureAreaPy.xml + FeatureArea.pyi FeatureAreaPyImp.cpp - VoronoiPy.xml + Voronoi.pyi VoronoiPyImp.cpp - VoronoiCellPy.xml + VoronoiCell.pyi VoronoiCellPyImp.cpp - VoronoiEdgePy.xml + VoronoiEdge.pyi VoronoiEdgePyImp.cpp - VoronoiVertexPy.xml + VoronoiVertex.pyi VoronoiVertexPyImp.cpp ) diff --git a/src/Mod/CAM/App/CommandPy.pyi b/src/Mod/CAM/App/Command.pyi similarity index 86% rename from src/Mod/CAM/App/CommandPy.pyi rename to src/Mod/CAM/App/Command.pyi index e9350af99b..15775ff52a 100644 --- a/src/Mod/CAM/App/CommandPy.pyi +++ b/src/Mod/CAM/App/Command.pyi @@ -3,19 +3,13 @@ from Base.Persistence import Persistence from Base.Placement import Placement @export( - Father="PersistencePy", - Name="CommandPy", - Twin="Command", - TwinPointer="Command", Include="Mod/CAM/App/Command.h", Namespace="Path", - FatherInclude="Base/PersistencePy.h", - FatherNamespace="Base", Delete=True, Constructor=True, ) @class_declarations("mutable Py::Dict parameters_copy_dict;") -class CommandPy(Persistence): +class Command(Persistence): """ Command([name],[parameters]): Represents a basic Gcode command name (optional) is the name of the command, ex. G1 diff --git a/src/Mod/CAM/App/CommandPy.xml b/src/Mod/CAM/App/CommandPy.xml deleted file mode 100644 index 0c933c2334..0000000000 --- a/src/Mod/CAM/App/CommandPy.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - Command([name],[parameters]): Represents a basic Gcode command -name (optional) is the name of the command, ex. G1 -parameters (optional) is a dictionary containing string:number -pairs, or a placement, or a vector - - - - The name of the command - - - - - - The parameters of the command - - - - - - The coordinates of the endpoint of the command - - - - - - toGCode(): returns a GCode representation of the command - - - - - setFromGCode(): sets the path from the contents of the given GCode string - - - - - transform(Placement): returns a copy of this command transformed by the given placement - - - mutable Py::Dict parameters_copy_dict; - - diff --git a/src/Mod/CAM/App/FeatureAreaPy.pyi b/src/Mod/CAM/App/FeatureArea.pyi similarity index 76% rename from src/Mod/CAM/App/FeatureAreaPy.pyi rename to src/Mod/CAM/App/FeatureArea.pyi index 0a20e8c859..aa335f268a 100644 --- a/src/Mod/CAM/App/FeatureAreaPy.pyi +++ b/src/Mod/CAM/App/FeatureArea.pyi @@ -5,16 +5,10 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject @export( - Father="DocumentObjectPy", - Name="FeatureAreaPy", - Twin="FeatureArea", - TwinPointer="FeatureArea", Include="Mod/CAM/App/FeatureArea.h", Namespace="Path", - FatherInclude="App/DocumentObjectPy.h", - FatherNamespace="App", ) -class FeatureAreaPy(DocumentObject): +class FeatureArea(DocumentObject): """ This class handles Path Area features """ diff --git a/src/Mod/CAM/App/FeatureAreaPy.xml b/src/Mod/CAM/App/FeatureAreaPy.xml deleted file mode 100644 index aeef6162e6..0000000000 --- a/src/Mod/CAM/App/FeatureAreaPy.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - This class handles Path Area features - - - - Return a copy of the encapsulated Python Area object. - - - - - setParams(key=value...): Convenient function to configure this feature. - -Same usage as Path.Area.setParams(). This function stores the parameters in the properties. - - - - - The current workplane. If no plane is set, it is derived from the added shapes. - - - - - - diff --git a/src/Mod/CAM/App/FeaturePathCompoundPy.pyi b/src/Mod/CAM/App/FeaturePathCompound.pyi similarity index 68% rename from src/Mod/CAM/App/FeaturePathCompoundPy.pyi rename to src/Mod/CAM/App/FeaturePathCompound.pyi index 7e0833a5a1..46b3f57256 100644 --- a/src/Mod/CAM/App/FeaturePathCompoundPy.pyi +++ b/src/Mod/CAM/App/FeaturePathCompound.pyi @@ -5,16 +5,11 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject @export( - Father="DocumentObjectPy", - Name="FeaturePathCompoundPy", - Twin="FeaturePathCompound", - TwinPointer="FeatureCompound", Include="Mod/CAM/App/FeaturePathCompound.h", + TwinPointer="FeatureCompound", Namespace="Path", - FatherInclude="App/DocumentObjectPy.h", - FatherNamespace="App", ) -class FeaturePathCompoundPy(DocumentObject): +class FeaturePathCompound(DocumentObject): """ This class handles Path Compound features """ diff --git a/src/Mod/CAM/App/FeaturePathCompoundPy.xml b/src/Mod/CAM/App/FeaturePathCompoundPy.xml deleted file mode 100644 index 886c471f8e..0000000000 --- a/src/Mod/CAM/App/FeaturePathCompoundPy.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - This class handles Path Compound features - - - - Add an object to the group - - - - - Remove an object from the group - - - - - diff --git a/src/Mod/CAM/App/PathPy.pyi b/src/Mod/CAM/App/Path.pyi similarity index 92% rename from src/Mod/CAM/App/PathPy.pyi rename to src/Mod/CAM/App/Path.pyi index e5d9f405e4..9e4c222114 100644 --- a/src/Mod/CAM/App/PathPy.pyi +++ b/src/Mod/CAM/App/Path.pyi @@ -4,19 +4,15 @@ from Base.Metadata import constmethod, export from Base.Persistence import Persistence @export( - Father="PersistencePy", - Name="PathPy", + Include="Mod/CAM/App/Path.h", Twin="Toolpath", TwinPointer="Toolpath", - Include="Mod/CAM/App/Path.h", Namespace="Path", - FatherInclude="Base/PersistencePy.h", - FatherNamespace="Base", ReadOnly=["Length", "Size", "BoundBox"], Delete=True, Constructor=True, ) -class PathPy(Persistence): +class Path(Persistence): """ Path([commands]): Represents a basic Gcode path commands (optional) is a list of Path commands diff --git a/src/Mod/CAM/App/PathPy.xml b/src/Mod/CAM/App/PathPy.xml deleted file mode 100644 index d0d6dac98c..0000000000 --- a/src/Mod/CAM/App/PathPy.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - Path([commands]): Represents a basic Gcode path -commands (optional) is a list of Path commands - - - - the total length of this path in mm - - - - - - the number of commands in this path - - - - - - the list of commands of this path - - - - - - the center position for all rotational parameters - - - - - - the extent of this path - - - - - - adds a command or a list of commands at the end of the path - - - - - insertCommand(Command,[int]): -adds a command at the given position or at the end of the path - - - - - deleteCommand([int]): -deletes the command found at the given position or from the end of the path - - - - - sets the contents of the path from a gcode string - - - - - returns a gcode string representing the path - - - - - returns a copy of this path - - - - - return the cycle time estimation for this path in s - - - - - - diff --git a/src/Mod/CAM/App/VoronoiPy.pyi b/src/Mod/CAM/App/Voronoi.pyi similarity index 90% rename from src/Mod/CAM/App/VoronoiPy.pyi rename to src/Mod/CAM/App/Voronoi.pyi index 9e9852d57d..8273feddd4 100644 --- a/src/Mod/CAM/App/VoronoiPy.pyi +++ b/src/Mod/CAM/App/Voronoi.pyi @@ -4,19 +4,12 @@ from Base.BaseClass import BaseClass from Base.Metadata import constmethod, export @export( - Father="BaseClassPy", - Name="VoronoiPy", - PythonName="Path.Voronoi.Diagram", - Twin="Voronoi", - TwinPointer="Voronoi", Include="Mod/CAM/App/Voronoi.h", Namespace="Path", - FatherInclude="Base/BaseClassPy.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class VoronoiPy(BaseClass): +class Voronoi(BaseClass): """ Voronoi([segments]): Create voronoi for given collection of line segments """ diff --git a/src/Mod/CAM/App/VoronoiCellPy.pyi b/src/Mod/CAM/App/VoronoiCell.pyi similarity index 83% rename from src/Mod/CAM/App/VoronoiCellPy.pyi rename to src/Mod/CAM/App/VoronoiCell.pyi index 6978cf942f..91e4ff5f40 100644 --- a/src/Mod/CAM/App/VoronoiCellPy.pyi +++ b/src/Mod/CAM/App/VoronoiCell.pyi @@ -4,20 +4,13 @@ from Base.BaseClass import BaseClass from Base.Metadata import constmethod, export @export( - Father="BaseClassPy", - Name="VoronoiCellPy", - Twin="VoronoiCell", - PythonName="Path.Voronoi.Cell", - TwinPointer="VoronoiCell", Include="Mod/CAM/App/VoronoiCell.h", Namespace="Path", - FatherInclude="Base/BaseClassPy.h", - FatherNamespace="Base", Constructor=True, RichCompare=True, Delete=True, ) -class VoronoiCellPy(BaseClass): +class VoronoiCell(BaseClass): """ Cell of a Voronoi diagram """ diff --git a/src/Mod/CAM/App/VoronoiCellPy.xml b/src/Mod/CAM/App/VoronoiCellPy.xml deleted file mode 100644 index 45643bd857..0000000000 --- a/src/Mod/CAM/App/VoronoiCellPy.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - Cell of a Voronoi diagram - - - - Internal id of the element. - - - - - - Assigned color of the receiver. - - - - - - Returns the index of the cell's source - - - - - - Returns the cell's category as an integer - - - - - - Returns the cell's category as a string - - - - - - Incident edge of the cell - if exists - - - - - - Returns true if the cell contains a point site - - - - - Returns true if the cell contains a segment site - - - - - Returns true if the cell doesn't have an incident edge - - - - - Returns the Source for the cell - - - - diff --git a/src/Mod/CAM/App/VoronoiEdgePy.pyi b/src/Mod/CAM/App/VoronoiEdge.pyi similarity index 89% rename from src/Mod/CAM/App/VoronoiEdgePy.pyi rename to src/Mod/CAM/App/VoronoiEdge.pyi index 6ff72bf7a9..828747880e 100644 --- a/src/Mod/CAM/App/VoronoiEdgePy.pyi +++ b/src/Mod/CAM/App/VoronoiEdge.pyi @@ -4,20 +4,13 @@ from Base.BaseClass import BaseClass from Base.Metadata import constmethod, export @export( - Father="BaseClassPy", - Name="VoronoiEdgePy", - Twin="VoronoiEdge", - TwinPointer="VoronoiEdge", - PythonName="Path.Voronoi.Edge", Include="Mod/CAM/App/VoronoiEdge.h", Namespace="Path", - FatherInclude="Base/BaseClassPy.h", - FatherNamespace="Base", RichCompare=True, Constructor=True, Delete=True, ) -class VoronoiEdgePy(BaseClass): +class VoronoiEdge(BaseClass): """ Edge of a Voronoi diagram """ diff --git a/src/Mod/CAM/App/VoronoiEdgePy.xml b/src/Mod/CAM/App/VoronoiEdgePy.xml deleted file mode 100644 index a554957cc2..0000000000 --- a/src/Mod/CAM/App/VoronoiEdgePy.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - Edge of a Voronoi diagram - - - - Internal id of the element. - - - - - - Assigned color of the receiver. - - - - - - cell the edge belongs to - - - - - - Begin and End voronoi vertex - - - - - - CCW next edge within voronoi cell - - - - - - CCW previous edge within voronoi cell - - - - - - Rotated CCW next edge within voronoi cell - - - - - - Rotated CCW previous edge within voronoi cell - - - - - - Twin edge - - - - - - Returns true if both vertices are finite - - - - - Returns true if the end vertex is infinite - - - - - Returns true if edge is straight - - - - - Returns true if edge is curved - - - - - Returns false if edge goes through endpoint of the segment site - - - - - Returns true if edge goes through endpoint of the segment site - - - - - Returns true if the point is on the segment - - - - - Returns a shape for the edge - - - - - Returns the distance of the vertices to the input source - - - - - Returns the angle (in degree) of the segments if the edge was formed by two segments - - - - diff --git a/src/Mod/CAM/App/VoronoiPy.xml b/src/Mod/CAM/App/VoronoiPy.xml deleted file mode 100644 index c54b4cccd0..0000000000 --- a/src/Mod/CAM/App/VoronoiPy.xml +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - Voronoi([segments]): Create voronoi for given collection of line segments - - - - List of all cells of the voronoi diagram - - - - - - List of all edges of the voronoi diagram - - - - - - List of all vertices of the voronoi diagram - - - - - - Return number of cells - - - - - Return number of edges - - - - - Return number of vertices - - - - - addPoint(vector|vector2d) add given point to input collection - - - - - addSegment(vector|vector2d, vector|vector2d) add given segment to input collection - - - - - constructs the voronoi diagram from the input collections - - - - - assign given color to all exterior edges and vertices - - - - - assign given color to all twins of edges (which one is considered a twin is arbitrary) - - - - - assign given color to all edges sourced by two segments almost in line with each other (optional angle in degrees) - - - - - assign color 0 to all elements with the given color - - - - - Get list of all input points. - - - - - Return number of input points - - - - - Get list of all input segments. - - - - - Return number of input segments - - - - diff --git a/src/Mod/CAM/App/VoronoiVertexPy.pyi b/src/Mod/CAM/App/VoronoiVertex.pyi similarity index 72% rename from src/Mod/CAM/App/VoronoiVertexPy.pyi rename to src/Mod/CAM/App/VoronoiVertex.pyi index b36e3159df..71339eade5 100644 --- a/src/Mod/CAM/App/VoronoiVertexPy.pyi +++ b/src/Mod/CAM/App/VoronoiVertex.pyi @@ -4,20 +4,13 @@ from Base.BaseClass import BaseClass from Base.Metadata import constmethod, export @export( - Father="BaseClassPy", - Name="VoronoiVertexPy", - PythonName="Path.Voronoi.Vertex", - Twin="VoronoiVertex", - TwinPointer="VoronoiVertex", Include="Mod/CAM/App/VoronoiVertex.h", Namespace="Path", - FatherInclude="Base/BaseClassPy.h", - FatherNamespace="Base", Constructor=True, RichCompare=True, Delete=True, ) -class VoronoiVertexPy(BaseClass): +class VoronoiVertex(BaseClass): """ Vertex of a Voronoi diagram """ diff --git a/src/Mod/CAM/App/VoronoiVertexPy.xml b/src/Mod/CAM/App/VoronoiVertexPy.xml deleted file mode 100644 index a04cba6e1b..0000000000 --- a/src/Mod/CAM/App/VoronoiVertexPy.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - Vertex of a Voronoi diagram - - - - Internal id of the element. - - - - - - Assigned color of the receiver. - - - - - - X position - - - - - - Y position - - - - - - Y position - - - - - - Returns a Vector - or None if not possible - - - - diff --git a/src/Mod/CAM/PathSimulator/App/CMakeLists.txt b/src/Mod/CAM/PathSimulator/App/CMakeLists.txt index 0a7bd99782..7f76df0187 100644 --- a/src/Mod/CAM/PathSimulator/App/CMakeLists.txt +++ b/src/Mod/CAM/PathSimulator/App/CMakeLists.txt @@ -14,7 +14,7 @@ set(PathSimulator_LIBS ) SET(Python_SRCS - PathSimPy.xml + PathSim.pyi PathSimPyImp.cpp ) @@ -30,8 +30,7 @@ SET(PathSimulator_SRCS ${Python_SRCS} ) -generate_from_xml(PathSimPy) -generate_from_py_(PathSimPy) +generate_from_py(PathSim) SOURCE_GROUP("Python" FILES ${Python_SRCS}) diff --git a/src/Mod/CAM/PathSimulator/App/PathSimPy.pyi b/src/Mod/CAM/PathSimulator/App/PathSim.pyi similarity index 88% rename from src/Mod/CAM/PathSimulator/App/PathSimPy.pyi rename to src/Mod/CAM/PathSimulator/App/PathSim.pyi index b85b022a89..0acd15b51d 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSimPy.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -4,19 +4,14 @@ from Base.BaseClass import BaseClass from Base.Metadata import export @export( - Father="BaseClassPy", - Name="PathSimPy", - Twin="PathSim", - TwinPointer="PathSim", FatherInclude="Base/BaseClassPy.h", - FatherNamespace="Base", Include="Mod/CAM/PathSimulator/App/PathSim.h", Namespace="PathSimulator", ReadOnly=["Tool"], Constructor=True, Delete=True, ) -class PathSimPy(BaseClass): +class PathSim(BaseClass): """ FreeCAD python wrapper of PathSimulator diff --git a/src/Mod/CAM/PathSimulator/App/PathSimPy.xml b/src/Mod/CAM/PathSimulator/App/PathSimPy.xml deleted file mode 100644 index a6ebbc2cb9..0000000000 --- a/src/Mod/CAM/PathSimulator/App/PathSimPy.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - FreeCAD python wrapper of PathSimulator - -PathSimulator.PathSim(): - -Create a path simulator object - - - - - BeginSimulation(stock, resolution): - -Start a simulation process on a box shape stock with given resolution - - - - - - SetToolShape(shape): - -Set the shape of the tool to be used for simulation - - - - - - - GetResultMesh(): - - Return the current mesh result of the simulation. - - - - - - - - ApplyCommand(placement, command): - - Apply a single path command on the stock starting from placement. - - - - - - - Return current simulation tool. - - - - - diff --git a/src/Mod/CAM/PathSimulator/AppGL/CAMSimPy.pyi b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi similarity index 90% rename from src/Mod/CAM/PathSimulator/AppGL/CAMSimPy.pyi rename to src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi index 083ea1bc1c..ee479a4f82 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSimPy.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -5,18 +5,13 @@ from Base.Metadata import export from Metadata import no_args @export( - Father="BaseClassPy", - Name="CAMSimPy", - Twin="CAMSim", - TwinPointer="CAMSim", Include="Mod/CAM/PathSimulator/AppGL/CAMSim.h", FatherInclude="Base/BaseClassPy.h", - FatherNamespace="Base", Namespace="CAMSimulator", Constructor=True, Delete=True, ) -class CAMSimPy(BaseClass): +class CAMSim(BaseClass): """ FreeCAD python wrapper of CAMSimulator diff --git a/src/Mod/CAM/PathSimulator/AppGL/CAMSimPy.xml b/src/Mod/CAM/PathSimulator/AppGL/CAMSimPy.xml deleted file mode 100644 index fe3117b3a7..0000000000 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSimPy.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - FreeCAD python wrapper of CAMSimulator - - CAMSimulator.CAMSim(): - - Create a path simulator object - - - - - - BeginSimulation(stock, resolution): - - Start a simulation process on a box shape stock with given resolution - - - - - - - ResetSimulation(): - - Clear the simulation and all gcode commands - - - - - - - AddTool(shape, toolnumber, diameter, resolution): - - Set the shape of the tool to be used for simulation - - - - - - - SetBaseShape(shape, resolution): - - Set the shape of the base object of the job - - - - - - - AddCommand(command): - - Add a path command to the simulation. - - - - - diff --git a/src/Mod/CAM/PathSimulator/AppGL/CMakeLists.txt b/src/Mod/CAM/PathSimulator/AppGL/CMakeLists.txt index d8ec1ed88b..97d9a120ff 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CMakeLists.txt +++ b/src/Mod/CAM/PathSimulator/AppGL/CMakeLists.txt @@ -16,7 +16,7 @@ set(CAMSimulator_LIBS ) SET(CAMSimulator_SRCS_Python - CAMSimPy.xml + CAMSim.pyi CAMSimPyImp.cpp ) @@ -66,9 +66,7 @@ SET(CAMSimulator_SRCS_Core TextureLoader.h ) - -generate_from_xml(CAMSimPy) -generate_from_py_(CAMSimPy) +generate_from_py(CAMSim) SOURCE_GROUP("Module" FILES ${CAMSimulator_SRCS_Module}) SOURCE_GROUP("Python" FILES ${CAMSimulator_SRCS_Python}) diff --git a/src/Tools/bindings/templates/templateClassPyExport.py b/src/Tools/bindings/templates/templateClassPyExport.py index ffaac1c5a7..8fb6948400 100644 --- a/src/Tools/bindings/templates/templateClassPyExport.py +++ b/src/Tools/bindings/templates/templateClassPyExport.py @@ -41,6 +41,7 @@ class TemplateClassPyExport(template.ModelTemplate): "Base", "App", "Assembly", + "CAM", "Gui", "Part", "PartDesign", From e8ea685e1b3cb7b8121d209616bd33a2ceea6bba Mon Sep 17 00:00:00 2001 From: Ian 'z0r0' Abreu Date: Sun, 31 Aug 2025 15:27:21 -0400 Subject: [PATCH 03/10] Finalizing Python interface bindings for Fem. --- src/Mod/Fem/App/CMakeLists.txt | 26 +- .../Fem/App/{FemMeshPy.pyi => FemMesh.pyi} | 6 +- src/Mod/Fem/App/FemMeshPy.xml | 391 ------------------ ...chFilterPy.pyi => FemPostBranchFilter.pyi} | 6 +- src/Mod/Fem/App/FemPostBranchFilterPy.xml | 37 -- ...{FemPostFilterPy.pyi => FemPostFilter.pyi} | 6 +- src/Mod/Fem/App/FemPostFilterPy.xml | 63 --- ...{FemPostObjectPy.pyi => FemPostObject.pyi} | 8 +- src/Mod/Fem/App/FemPostObjectPy.xml | 35 -- ...PostPipelinePy.pyi => FemPostPipeline.pyi} | 6 +- src/Mod/Fem/App/FemPostPipelinePy.xml | 82 ---- src/Mod/Fem/Gui/CMakeLists.txt | 21 +- ...ntPy.pyi => ViewProviderFemConstraint.pyi} | 8 +- .../Fem/Gui/ViewProviderFemConstraintPy.xml | 49 --- ...rFemMeshPy.pyi => ViewProviderFemMesh.pyi} | 8 +- src/Mod/Fem/Gui/ViewProviderFemMeshPy.xml | 79 ---- ...erPy.pyi => ViewProviderFemPostFilter.pyi} | 5 +- .../Fem/Gui/ViewProviderFemPostFilterPy.xml | 29 -- ...Py.pyi => ViewProviderFemPostPipeline.pyi} | 8 +- .../Fem/Gui/ViewProviderFemPostPipelinePy.xml | 29 -- .../templates/templateClassPyExport.py | 1 + 21 files changed, 29 insertions(+), 874 deletions(-) rename src/Mod/Fem/App/{FemMeshPy.pyi => FemMesh.pyi} (98%) delete mode 100755 src/Mod/Fem/App/FemMeshPy.xml rename src/Mod/Fem/App/{FemPostBranchFilterPy.pyi => FemPostBranchFilter.pyi} (81%) delete mode 100644 src/Mod/Fem/App/FemPostBranchFilterPy.xml rename src/Mod/Fem/App/{FemPostFilterPy.pyi => FemPostFilter.pyi} (92%) delete mode 100644 src/Mod/Fem/App/FemPostFilterPy.xml rename src/Mod/Fem/App/{FemPostObjectPy.pyi => FemPostObject.pyi} (87%) delete mode 100644 src/Mod/Fem/App/FemPostObjectPy.xml rename src/Mod/Fem/App/{FemPostPipelinePy.pyi => FemPostPipeline.pyi} (93%) delete mode 100644 src/Mod/Fem/App/FemPostPipelinePy.xml rename src/Mod/Fem/Gui/{ViewProviderFemConstraintPy.pyi => ViewProviderFemConstraint.pyi} (76%) delete mode 100644 src/Mod/Fem/Gui/ViewProviderFemConstraintPy.xml rename src/Mod/Fem/Gui/{ViewProviderFemMeshPy.pyi => ViewProviderFemMesh.pyi} (83%) delete mode 100644 src/Mod/Fem/Gui/ViewProviderFemMeshPy.xml rename src/Mod/Fem/Gui/{ViewProviderFemPostFilterPy.pyi => ViewProviderFemPostFilter.pyi} (80%) delete mode 100644 src/Mod/Fem/Gui/ViewProviderFemPostFilterPy.xml rename src/Mod/Fem/Gui/{ViewProviderFemPostPipelinePy.pyi => ViewProviderFemPostPipeline.pyi} (61%) delete mode 100644 src/Mod/Fem/Gui/ViewProviderFemPostPipelinePy.xml diff --git a/src/Mod/Fem/App/CMakeLists.txt b/src/Mod/Fem/App/CMakeLists.txt index 0622345b51..1dc92677f1 100644 --- a/src/Mod/Fem/App/CMakeLists.txt +++ b/src/Mod/Fem/App/CMakeLists.txt @@ -49,12 +49,11 @@ else() endif() -generate_from_xml(FemMeshPy) -generate_from_py_(FemMeshPy) +generate_from_py(FemMesh) SET(Python_SRCS - FemMeshPy.xml + FemMesh.pyi FemMeshPyImp.cpp HypothesisPy.cpp HypothesisPy.h @@ -64,24 +63,19 @@ SET(Python_SRCS if(BUILD_FEM_VTK) SET(Python_SRCS ${Python_SRCS} - FemPostObjectPy.xml + FemPostObject.pyi FemPostObjectPyImp.cpp - FemPostPipelinePy.xml + FemPostPipeline.pyi FemPostPipelinePyImp.cpp - FemPostFilterPy.xml + FemPostFilter.pyi FemPostFilterPyImp.cpp - FemPostBranchFilterPy.xml + FemPostBranchFilter.pyi FemPostBranchFilterPyImp.cpp ) - generate_from_xml(FemPostObjectPy) - generate_from_xml(FemPostPipelinePy) - generate_from_xml(FemPostFilterPy) - generate_from_xml(FemPostBranchFilterPy) - - generate_from_py_(FemPostObjectPy) - generate_from_py_(FemPostPipelinePy) - generate_from_py_(FemPostFilterPy) - generate_from_py_(FemPostBranchFilterPy) + generate_from_py(FemPostObject) + generate_from_py(FemPostPipeline) + generate_from_py(FemPostFilter) + generate_from_py(FemPostBranchFilter) endif(BUILD_FEM_VTK) SOURCE_GROUP("Python" FILES ${Python_SRCS}) diff --git a/src/Mod/Fem/App/FemMeshPy.pyi b/src/Mod/Fem/App/FemMesh.pyi similarity index 98% rename from src/Mod/Fem/App/FemMeshPy.pyi rename to src/Mod/Fem/App/FemMesh.pyi index e648678403..bc0f770c43 100644 --- a/src/Mod/Fem/App/FemMeshPy.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -5,17 +5,13 @@ from Base.Metadata import constmethod, export from App.ComplexGeoData import ComplexGeoData @export( - Father="ComplexGeoDataPy", - Name="FemMeshPy", - Twin="FemMesh", - TwinPointer="FemMesh", Include="Mod/Fem/App/FemMesh.h", Namespace="Fem", FatherInclude="App/ComplexGeoDataPy.h", FatherNamespace="Data", Constructor=True, ) -class FemMeshPy(ComplexGeoData): +class FemMesh(ComplexGeoData): """ FemMesh class """ diff --git a/src/Mod/Fem/App/FemMeshPy.xml b/src/Mod/Fem/App/FemMeshPy.xml deleted file mode 100755 index e3f11ca5e8..0000000000 --- a/src/Mod/Fem/App/FemMeshPy.xml +++ /dev/null @@ -1,391 +0,0 @@ - - - - - - FemMesh class - - - - Set the Part shape to mesh - - - - - Update the internal mesh structure - - - - - Add hypothesis - - - - - Set some standard hypotheses for the whole shape - - - - - Add a node by setting (x,y,z). - - - - - Add an edge by setting two node indices. - - - - - Add list of edges by list of node indices and list of nodes per edge. - - - - - Add a face by setting three node indices. - - - - - Add list of faces by list of node indices and list of nodes per face. - - - - - Add a quad by setting four node indices. - - - - - Add a volume by setting an arbitrary number of node indices. - - - - - Add list of volumes by list of node indices and list of nodes per volume. - - - - - Read in a various FEM mesh file formats. - read(file.endingToExportTo) - supported formats: DAT, INP, MED, STL, UNV, VTK, Z88 - - - - - Write out various FEM mesh file formats. - write(file.endingToExportTo) - supported formats: BDF, DAT, INP, MED, STL, UNV, VTK, Z88 - - - - - - Write out as ABAQUS inp - writeABAQUS(file, int elemParam, bool groupParam, str volVariant, str faceVariant, str edgeVariant) - - elemParam: - 0: All elements - 1: Highest elements only - 2: FEM elements only (only edges not belonging to faces and faces not belonging to volumes) - - groupParam: - True: Write group data - False: Do not write group data - - volVariant: Volume elements - "standard": Tetra4 -> C3D4, Penta6 -> C3D6, Hexa8 -> C3D8, Tetra10 -> C3D10, Penta15 -> C3D15, Hexa20 -> C3D20 - "reduced": Hexa8 -> C3D8R, Hexa20 -> C3D20R - "incompatible": Hexa8 -> C3D8I - "modified": Tetra10 -> C3D10T - "fluid": Tetra4 -> F3D4, Penta6 -> F3D6, Hexa8 -> F3D8 - - faceVariant: Face elements - "shell": Tria3 -> S3, Quad4 -> S4, Tria6 -> S6, Quad8 -> S8 - "shell reduced": Tria3 -> S3, Quad4 -> S4R, Tria6 -> S6, Quad8 -> S8R - "membrane": Tria3 -> M3D3, Quad4 -> M3D4, Tria6 -> M3D6, Quad8 -> M3D8 - "membrane reduced": Tria3 -> M3D3, Quad4 -> M3D4R, Tria6 -> M3D6, Quad8 -> M3D8R - "stress": Tria3 -> CPS3, Quad4 -> CPS4, Tria6 -> CPS6, Quad8 -> CPS8 - "stress reduced": Tria3 -> CPS3, Quad4 -> CPS4R, Tria6 -> CPS6, Quad8 -> CPS8R - "strain": Tria3 -> CPE3, Quad4 -> CPE4, Tria6 -> CPE6, Quad8 -> CPE8 - "strain reduced": Tria3 -> CPE3, Quad4 -> CPE4R, Tria6 -> CPE6, Quad8 -> CPE8R - "axisymmetric": Tria3 -> CAX3, Quad4 -> CAX4, Tria6 -> CAX6, Quad8 -> CAX8 - "axisymmetric reduced": Tria3 -> CAX3, Quad4 -> CAX4R, Tria6 -> CAX6, Quad8 -> CAX8R - - edgeVariant: Edge elements - "beam": Seg2 -> B31, Seg3 -> B32 - "beam reduced": Seg2 -> B31R, Seg3 -> B32R - "truss": Seg2 -> T3D2, eg3 -> T3D3 - "network": Seg3 -> D - - Elements are selected according to CalculiX availability. - For example if volume variant "modified" is selected, Tetra10 mesh - elements are assigned to C3D10T and remain elements uses "standard". - Axisymmetric, plane strain and plane stress elements expect nodes in the plane z=0. - - - - - Use a Placement object to perform a translation or rotation - - - - - Make a copy of this FEM mesh. - - - - - Return a list of face IDs which belong to a TopoFace - - - - - Return a list of edge IDs which belong to a TopoEdge - - - - - Return a dict of volume IDs and face IDs which belong to a TopoFace - - - - - Return a dict of volume IDs and ccx face numbers which belong to a TopoFace - - - - - Get the node position vector by a Node-ID - - - - - Return a list of node IDs which belong to a TopoSolid - - - - - Return a list of node IDs which belong to a TopoFace - - - - - Return a list of node IDs which belong to a TopoEdge - - - - - Return a list of node IDs which belong to a TopoVertex - - - - - Return a tuple of node IDs to a given element ID - - - - - Return a tuple of specific element IDs associated to a given node ID - - - - - Return a string of group name to a given group ID - - - - - Return a string of group element type to a given group ID - - - - - Return a tuple of ElementIDs to a given group ID - - - - - Add a group to mesh with specific name and type - addGroup(name, typestring, [id]) - name: string - typestring: "All", "Node", "Edge", "Face", "Volume", "0DElement", "Ball" - id: int - Optional id is used to force specific id for group, but does - not work, yet. - - - - - - Add a tuple of ElementIDs to a given group ID - addGroupElements(groupid, list_of_elements) - groupid: int - list_of_elements: list of int - Notice that the elements have to be in the mesh. - - - - - - Remove a group with a given group ID - removeGroup(groupid) - groupid: int - Returns boolean. - - - - - - Return the element type of a given ID - - - - - Return a tuple of IDs to a given element type - - - - - Dictionary of Nodes by ID (int ID:Vector()) - - - - - - Number of nodes in the Mesh. - - - - - - Tuple of edge IDs - - - - - - Tuple of edge IDs which does not belong to any face (and thus not belong to any volume too) - - - - - - Number of edges in the Mesh. - - - - - - Tuple of face IDs - - - - - - Tuple of face IDs which does not belong to any volume - - - - - - Number of Faces in the Mesh. - - - - - - Number of Triangles in the Mesh. - - - - - - Number of Quadrangles in the Mesh. - - - - - - Number of Quadrangles in the Mesh. - - - - - - Tuple of volume IDs - - - - - - Number of Volumes in the Mesh. - - - - - - Number of Tetras in the Mesh. - - - - - - Number of Hexas in the Mesh. - - - - - - Number of Pyramids in the Mesh. - - - - - - Number of Prisms in the Mesh. - - - - - - Number of Polyhedrons in the Mesh. - - - - - - Number of SubMeshs in the Mesh. - - - - - - Number of Groups in the Mesh. - - - - - - Tuple of Group IDs. - - - - - - Volume of the mesh. - - - - - diff --git a/src/Mod/Fem/App/FemPostBranchFilterPy.pyi b/src/Mod/Fem/App/FemPostBranchFilter.pyi similarity index 81% rename from src/Mod/Fem/App/FemPostBranchFilterPy.pyi rename to src/Mod/Fem/App/FemPostBranchFilter.pyi index b6b2c45f20..014f4dc4d9 100644 --- a/src/Mod/Fem/App/FemPostBranchFilterPy.pyi +++ b/src/Mod/Fem/App/FemPostBranchFilter.pyi @@ -5,16 +5,12 @@ from Base.Metadata import export from Fem.FemPostFilter import FemPostFilter @export( - Father="FemPostFilterPy", - Name="FemPostBranchFilterPy", - Twin="FemPostBranchFilter", - TwinPointer="FemPostBranchFilter", Include="Mod/Fem/App/FemPostBranchFilter.h", Namespace="Fem", FatherInclude="Mod/Fem/App/FemPostFilterPy.h", FatherNamespace="Fem", ) -class FemPostBranchFilterPy(FemPostFilter): +class FemPostBranchFilter(FemPostFilter): """ The FemPostBranch class. """ diff --git a/src/Mod/Fem/App/FemPostBranchFilterPy.xml b/src/Mod/Fem/App/FemPostBranchFilterPy.xml deleted file mode 100644 index c288488672..0000000000 --- a/src/Mod/Fem/App/FemPostBranchFilterPy.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - The FemPostBranch class. - - - - Returns all filters, that this pipeline uses (non recursive, result does not contain branch child filters) - - - - - Recomputes all children of the pipeline - - - - - Get the last post-processing object - - - - - Check if this pipeline holds a given post-processing object - - - - diff --git a/src/Mod/Fem/App/FemPostFilterPy.pyi b/src/Mod/Fem/App/FemPostFilter.pyi similarity index 92% rename from src/Mod/Fem/App/FemPostFilterPy.pyi rename to src/Mod/Fem/App/FemPostFilter.pyi index 784afe9779..b80d4fd709 100644 --- a/src/Mod/Fem/App/FemPostFilterPy.pyi +++ b/src/Mod/Fem/App/FemPostFilter.pyi @@ -5,16 +5,12 @@ from Base.Metadata import export from Fem.FemPostObject import FemPostObject @export( - Father="FemPostObjectPy", - Name="FemPostFilterPy", - Twin="FemPostFilter", - TwinPointer="FemPostFilter", Include="Mod/Fem/App/FemPostFilter.h", Namespace="Fem", FatherInclude="Mod/Fem/App/FemPostObjectPy.h", FatherNamespace="Fem", ) -class FemPostFilterPy(FemPostObject): +class FemPostFilter(FemPostObject): """ The FemPostFilter class. """ diff --git a/src/Mod/Fem/App/FemPostFilterPy.xml b/src/Mod/Fem/App/FemPostFilterPy.xml deleted file mode 100644 index 3fe0e4fd88..0000000000 --- a/src/Mod/Fem/App/FemPostFilterPy.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - The FemPostFilter class. - - - - Registers a new vtk filter pipeline for data processing. Arguments are (name, source algorithm, target algorithm). - - - - - Sets the filter pipeline that shall be used for data processing. Argument is the name of the filter pipeline to activate. - - - - - Returns the postprocessing group the filter is in (e.g. a pipeline or branch object). None is returned if not in any. - - - - - -Returns the dataset available at the filter's input. -Note: Can lead to a full recompute of the whole pipeline, hence best to call this only in "execute", where the user expects long calculation cycles. - - - - - - -Returns the names of all vector fields available on this filter's input. -Note: Can lead to a full recompute of the whole pipeline, hence best to call this only in "execute", where the user expects long calculation cycles. - - - - - - -Returns the names of all scalar fields available on this filter's input. -Note: Can lead to a full recompute of the whole pipeline, hence best to call this only in "execute", where the user expects long calculation cycles. - - - - - - -Returns the filters vtk algorithm currently used as output (the one generating the Data field). Note that the output algorithm may change depending on filter settings. - - - " - - diff --git a/src/Mod/Fem/App/FemPostObjectPy.pyi b/src/Mod/Fem/App/FemPostObject.pyi similarity index 87% rename from src/Mod/Fem/App/FemPostObjectPy.pyi rename to src/Mod/Fem/App/FemPostObject.pyi index b37a02302e..8d7d8452b9 100644 --- a/src/Mod/Fem/App/FemPostObjectPy.pyi +++ b/src/Mod/Fem/App/FemPostObject.pyi @@ -5,16 +5,12 @@ from Base.Metadata import export from App.GeoFeature import GeoFeature @export( - Father="GeoFeaturePy", - Name="FemPostObjectPy", - Twin="FemPostObject", - TwinPointer="FemPostObject", Include="Mod/Fem/App/FemPostObject.h", Namespace="Fem", - FatherInclude="App/GeoFeaturePy.h", FatherNamespace="App", + FatherInclude="App/GeoFeaturePy.h", ) -class FemPostObjectPy(GeoFeature): +class FemPostObject(GeoFeature): """ The FemPostObject class. """ diff --git a/src/Mod/Fem/App/FemPostObjectPy.xml b/src/Mod/Fem/App/FemPostObjectPy.xml deleted file mode 100644 index 8f5603234b..0000000000 --- a/src/Mod/Fem/App/FemPostObjectPy.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - The FemPostObject class. - - - - writeVTK(filename) -> None - -Write data object to VTK file. - -filename: str - File extension is automatically detected from data type. - - - - - getDataset() -> vtkDataSet - -Returns the current output dataset. For normal filters this is equal to the objects Data property output. However, a pipelines Data property could store multiple frames, and hence Data can be of type vtkCompositeData, which is not a vtkDataset. To simplify implementations this function always returns a vtkDataSet, and for a pipeline it will be the dataset of the currently selected frame. Note that the returned value could be None, if no data is set at all. - - - - - diff --git a/src/Mod/Fem/App/FemPostPipelinePy.pyi b/src/Mod/Fem/App/FemPostPipeline.pyi similarity index 93% rename from src/Mod/Fem/App/FemPostPipelinePy.pyi rename to src/Mod/Fem/App/FemPostPipeline.pyi index 67923666e3..296595a901 100644 --- a/src/Mod/Fem/App/FemPostPipelinePy.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -5,16 +5,12 @@ from Base.Metadata import export from Fem.FemPostObject import FemPostObject @export( - Father="FemPostObjectPy", - Name="FemPostPipelinePy", - Twin="FemPostPipeline", - TwinPointer="FemPostPipeline", Include="Mod/Fem/App/FemPostPipeline.h", Namespace="Fem", FatherInclude="Mod/Fem/App/FemPostObjectPy.h", FatherNamespace="Fem", ) -class FemPostPipelinePy(FemPostObject): +class FemPostPipeline(FemPostObject): """ The FemPostPipeline class. """ diff --git a/src/Mod/Fem/App/FemPostPipelinePy.xml b/src/Mod/Fem/App/FemPostPipelinePy.xml deleted file mode 100644 index ab15496be9..0000000000 --- a/src/Mod/Fem/App/FemPostPipelinePy.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - The FemPostPipeline class. - - - - -read(filepath) -read([filepaths], [values], unit, frame_type) - -Reads in a single vtk file or creates a multiframe result by reading in multiple result files. If multiframe is wanted, 4 argumenhts are needed: -1. List of result files each being one frame, -2. List of values valid for each frame (e.g. [s] if time data), -3. the unit of the value as FreeCAD.Units.Unit, -4. the Description of the frame type - - - - - - scale the points of a loaded vtk file - - - - - -load(result_object) -load([result_objects], [values], unit, frame_type) - -Load a single result object or create a multiframe result by loading multiple result frames. If multiframe is wanted, 4 argumenhts are needed: -1. List of result files each being one frame, -2. List of values valid for each frame (e.g. [s] if time data), -3. the unit of the value as FreeCAD.Units.Unit, -4. the Description of the frame type - - - - - - Returns all filters, that this pipeline uses (non recursive, result does not contain branch child filters) - - - - - Recomputes all children of the pipeline - - - - - Get the last post-processing object - - - - - Check if this pipeline holds a given post-processing object - - - - - Change name of data arrays - - - - - -Returns the pipeline vtk algorithm, which generates the data passed to the pipelines filters. Note that the output algorithm may change depending on pipeline settings. - - - " - - diff --git a/src/Mod/Fem/Gui/CMakeLists.txt b/src/Mod/Fem/Gui/CMakeLists.txt index c514f78d9d..a4350ee4bb 100755 --- a/src/Mod/Fem/Gui/CMakeLists.txt +++ b/src/Mod/Fem/Gui/CMakeLists.txt @@ -33,28 +33,23 @@ set(FemGui_LIBS PartGui ) -generate_from_xml(ViewProviderFemConstraintPy) -generate_from_xml(ViewProviderFemMeshPy) -generate_from_xml(ViewProviderFemPostPipelinePy) -generate_from_xml(ViewProviderFemPostFilterPy) - -generate_from_py_(ViewProviderFemConstraintPy) -generate_from_py_(ViewProviderFemMeshPy) -generate_from_py_(ViewProviderFemPostPipelinePy) -generate_from_py_(ViewProviderFemPostFilterPy) +generate_from_py(ViewProviderFemConstraint) +generate_from_py(ViewProviderFemMesh) +generate_from_py(ViewProviderFemPostPipeline) +generate_from_py(ViewProviderFemPostFilter) SET(Python_SRCS - ViewProviderFemConstraintPy.xml + ViewProviderFemConstraint.pyi ViewProviderFemConstraintPyImp.cpp - ViewProviderFemMeshPy.xml + ViewProviderFemMesh.pyi ViewProviderFemMeshPyImp.cpp ) if(BUILD_FEM_VTK) set(Python_SRCS ${Python_SRCS} - ViewProviderFemPostPipelinePy.xml + ViewProviderFemPostPipeline.pyi ViewProviderFemPostPipelinePyImp.cpp - ViewProviderFemPostFilterPy.xml + ViewProviderFemPostFilter.pyi ViewProviderFemPostFilterPyImp.cpp ) endif(BUILD_FEM_VTK) diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintPy.pyi b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi similarity index 76% rename from src/Mod/Fem/Gui/ViewProviderFemConstraintPy.pyi rename to src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi index 71416fd783..607b3b30a8 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintPy.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi @@ -5,16 +5,10 @@ from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject @export( - Father="ViewProviderGeometryObjectPy", - Name="ViewProviderFemConstraintPy", - Twin="ViewProviderFemConstraint", - TwinPointer="ViewProviderFemConstraint", Include="Mod/Fem/Gui/ViewProviderFemConstraint.h", Namespace="FemGui", - FatherInclude="Gui/ViewProviderGeometryObjectPy.h", - FatherNamespace="Gui", ) -class ViewProviderFemConstraintPy(ViewProviderGeometryObject): +class ViewProviderFemConstraint(ViewProviderGeometryObject): """ This is the ViewProviderFemConstraint class """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintPy.xml b/src/Mod/Fem/Gui/ViewProviderFemConstraintPy.xml deleted file mode 100644 index c679c82b89..0000000000 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintPy.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - This is the ViewProviderFemConstraint class - - - - loadSymbol(filename) -> None - -Load constraint symbol from Open Inventor file. -The file structure should be as follows: -A separator containing a separator with the symbol used in -multiple copies at points on the surface and an optional -separator with a symbol excluded from multiple copies. - -filename : str - Open Inventor file. - - - - - A pivy SoSeparator with the nodes of the constraint symbols - - - - - - A pivy SoSeparator with the nodes of the constraint extra symbols - - - - - - Apply rotation on copies of the constraint symbol - - - - - diff --git a/src/Mod/Fem/Gui/ViewProviderFemMeshPy.pyi b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi similarity index 83% rename from src/Mod/Fem/Gui/ViewProviderFemMeshPy.pyi rename to src/Mod/Fem/Gui/ViewProviderFemMesh.pyi index 0e007384f0..67dde061fd 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMeshPy.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi @@ -5,16 +5,10 @@ from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject @export( - Father="ViewProviderGeometryObjectPy", - Name="ViewProviderFemMeshPy", - Twin="ViewProviderFemMesh", - TwinPointer="ViewProviderFemMesh", Include="Mod/Fem/Gui/ViewProviderFemMesh.h", Namespace="FemGui", - FatherInclude="Gui/ViewProviderGeometryObjectPy.h", - FatherNamespace="Gui", ) -class ViewProviderFemMeshPy(ViewProviderGeometryObject): +class ViewProviderFemMesh(ViewProviderGeometryObject): """ ViewProviderFemMesh class """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemMeshPy.xml b/src/Mod/Fem/Gui/ViewProviderFemMeshPy.xml deleted file mode 100644 index e887c882bb..0000000000 --- a/src/Mod/Fem/Gui/ViewProviderFemMeshPy.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - ViewProviderFemMesh class - - - - - - - - - Reset color set by method setNodeColorByScalars. - - - - - Reset displacements set by method setNodeDisplacementByVectors. - - - - - Reset highlighted nodes. - - - - - Sets mesh node colors using element list and value list. - - - - - - - - - - Postprocessing color of the nodes. The faces between the nodes get interpolated. - - - - - - Postprocessing color of the elements. All faces of the element get the same color. - - - - - - Postprocessing color of the nodes. The faces between the nodes get interpolated. - - - - - - List of nodes which get highlighted. - - - - - - List of elements and faces which are actually shown. These are all surface faces of the mesh. - - - - - diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFilterPy.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi similarity index 80% rename from src/Mod/Fem/Gui/ViewProviderFemPostFilterPy.pyi rename to src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi index dff8b94df8..253eedfb10 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilterPy.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi @@ -5,16 +5,13 @@ from Base.Metadata import export from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject @export( - Father="ViewProviderDocumentObjectPy", - Name="ViewProviderFemPostFilterPy", Twin="ViewProviderFemPostObject", TwinPointer="ViewProviderFemPostObject", Include="Mod/Fem/Gui/ViewProviderFemPostObject.h", Namespace="FemGui", FatherInclude="Gui/ViewProviderDocumentObjectPy.h", - FatherNamespace="Gui", ) -class ViewProviderFemPostFilterPy(ViewProviderDocumentObject): +class ViewProviderFemPostFilter(ViewProviderDocumentObject): """ ViewProviderFemPostPipeline class """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFilterPy.xml b/src/Mod/Fem/Gui/ViewProviderFemPostFilterPy.xml deleted file mode 100644 index 9a41e8e972..0000000000 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilterPy.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - ViewProviderFemPostPipeline class - - - - Returns the display option task panel for a post processing edit task dialog. - - - - - Returns the data extraction task panel for a post processing edit task dialog. - - - - diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostPipelinePy.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi similarity index 61% rename from src/Mod/Fem/Gui/ViewProviderFemPostPipelinePy.pyi rename to src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi index 0300860b21..5882dce89c 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipelinePy.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi @@ -5,16 +5,10 @@ from Base.Metadata import export from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject @export( - Father="ViewProviderDocumentObjectPy", - Name="ViewProviderFemPostPipelinePy", - Twin="ViewProviderFemPostPipeline", - TwinPointer="ViewProviderFemPostPipeline", Include="Mod/Fem/Gui/ViewProviderFemPostPipeline.h", Namespace="FemGui", - FatherInclude="Gui/ViewProviderDocumentObjectPy.h", - FatherNamespace="Gui", ) -class ViewProviderFemPostPipelinePy(ViewProviderDocumentObject): +class ViewProviderFemPostPipeline(ViewProviderDocumentObject): """ ViewProviderFemPostPipeline class """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostPipelinePy.xml b/src/Mod/Fem/Gui/ViewProviderFemPostPipelinePy.xml deleted file mode 100644 index ad42ced3c4..0000000000 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipelinePy.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - ViewProviderFemPostPipeline class - - - - Scales values of given result mesh field by given factor - - - - - Update coloring of pipeline and its childs - - - - diff --git a/src/Tools/bindings/templates/templateClassPyExport.py b/src/Tools/bindings/templates/templateClassPyExport.py index 8fb6948400..860a9a762a 100644 --- a/src/Tools/bindings/templates/templateClassPyExport.py +++ b/src/Tools/bindings/templates/templateClassPyExport.py @@ -42,6 +42,7 @@ class TemplateClassPyExport(template.ModelTemplate): "App", "Assembly", "CAM", + "Fem", "Gui", "Part", "PartDesign", From ca435629b887e09f7d52db905e227aa399ea5799 Mon Sep 17 00:00:00 2001 From: Ian 'z0r0' Abreu Date: Sun, 31 Aug 2025 15:34:03 -0400 Subject: [PATCH 04/10] Finalizing Python interface bindings for Import, Measure, Mesh, Points. --- src/Mod/Import/App/CMakeLists.txt | 5 +- .../App/{StepShapePy.pyi => StepShape.pyi} | 8 +- src/Mod/Import/App/StepShapePy.xml | 30 - src/Mod/Measure/App/CMakeLists.txt | 11 +- .../{MeasureBasePy.pyi => MeasureBase.pyi} | 8 +- src/Mod/Measure/App/MeasureBasePy.xml | 20 - .../{MeasurementPy.pyi => Measurement.pyi} | 8 +- src/Mod/Measure/App/MeasurementPy.xml | 79 --- src/Mod/Measure/Gui/CMakeLists.txt | 5 +- .../{QuickMeasurePy.pyi => QuickMeasure.pyi} | 8 +- src/Mod/Measure/Gui/QuickMeasurePy.xml | 19 - src/Mod/Mesh/App/CMakeLists.txt | 26 +- src/Mod/Mesh/App/{EdgePy.pyi => Edge.pyi} | 8 +- src/Mod/Mesh/App/EdgePy.xml | 90 --- src/Mod/Mesh/App/{FacetPy.pyi => Facet.pyi} | 8 +- src/Mod/Mesh/App/FacetPy.xml | 139 ---- src/Mod/Mesh/App/{MeshPy.pyi => Mesh.pyi} | 4 +- .../{MeshFeaturePy.pyi => MeshFeature.pyi} | 5 +- src/Mod/Mesh/App/MeshFeaturePy.xml | 104 --- .../App/{MeshPointPy.pyi => MeshPoint.pyi} | 8 +- src/Mod/Mesh/App/MeshPointPy.xml | 78 --- src/Mod/Mesh/App/MeshPy.xml | 621 ------------------ src/Mod/Mesh/Gui/CMakeLists.txt | 5 +- ...roviderMeshPy.pyi => ViewProviderMesh.pyi} | 8 +- src/Mod/Mesh/Gui/ViewProviderMeshPy.xml | 49 -- src/Mod/Points/App/CMakeLists.txt | 5 +- .../Points/App/{PointsPy.pyi => Points.pyi} | 3 +- src/Mod/Points/App/PointsPy.xml | 75 --- .../templates/templateClassPyExport.py | 4 + 29 files changed, 37 insertions(+), 1404 deletions(-) rename src/Mod/Import/App/{StepShapePy.pyi => StepShape.pyi} (70%) delete mode 100644 src/Mod/Import/App/StepShapePy.xml rename src/Mod/Measure/App/{MeasureBasePy.pyi => MeasureBase.pyi} (50%) delete mode 100644 src/Mod/Measure/App/MeasureBasePy.xml rename src/Mod/Measure/App/{MeasurementPy.pyi => Measurement.pyi} (88%) delete mode 100644 src/Mod/Measure/App/MeasurementPy.xml rename src/Mod/Measure/Gui/{QuickMeasurePy.pyi => QuickMeasure.pyi} (55%) delete mode 100644 src/Mod/Measure/Gui/QuickMeasurePy.xml rename src/Mod/Mesh/App/{EdgePy.pyi => Edge.pyi} (89%) delete mode 100644 src/Mod/Mesh/App/EdgePy.xml rename src/Mod/Mesh/App/{FacetPy.pyi => Facet.pyi} (93%) delete mode 100644 src/Mod/Mesh/App/FacetPy.xml rename src/Mod/Mesh/App/{MeshPy.pyi => Mesh.pyi} (99%) rename src/Mod/Mesh/App/{MeshFeaturePy.pyi => MeshFeature.pyi} (95%) delete mode 100644 src/Mod/Mesh/App/MeshFeaturePy.xml rename src/Mod/Mesh/App/{MeshPointPy.pyi => MeshPoint.pyi} (86%) delete mode 100644 src/Mod/Mesh/App/MeshPointPy.xml delete mode 100644 src/Mod/Mesh/App/MeshPy.xml rename src/Mod/Mesh/Gui/{ViewProviderMeshPy.pyi => ViewProviderMesh.pyi} (77%) delete mode 100644 src/Mod/Mesh/Gui/ViewProviderMeshPy.xml rename src/Mod/Points/App/{PointsPy.pyi => Points.pyi} (97%) delete mode 100644 src/Mod/Points/App/PointsPy.xml diff --git a/src/Mod/Import/App/CMakeLists.txt b/src/Mod/Import/App/CMakeLists.txt index 823aae31da..10baab56f6 100644 --- a/src/Mod/Import/App/CMakeLists.txt +++ b/src/Mod/Import/App/CMakeLists.txt @@ -29,7 +29,7 @@ SET(Import_SRCS ReaderIges.h ReaderStep.cpp ReaderStep.h - StepShapePy.xml + StepShape.pyi StepShape.h StepShape.cpp StepShapePyImp.cpp @@ -76,8 +76,7 @@ SET(SCL_Resources ) SOURCE_GROUP("SCL" FILES ${SCL_Resources}) -generate_from_xml(StepShapePy) -generate_from_py_(StepShapePy) +generate_from_py(StepShape) add_library(Import SHARED ${Import_SRCS}) target_link_libraries(Import ${Import_LIBS}) diff --git a/src/Mod/Import/App/StepShapePy.pyi b/src/Mod/Import/App/StepShape.pyi similarity index 70% rename from src/Mod/Import/App/StepShapePy.pyi rename to src/Mod/Import/App/StepShape.pyi index 5a0b319c94..924e514c49 100644 --- a/src/Mod/Import/App/StepShapePy.pyi +++ b/src/Mod/Import/App/StepShape.pyi @@ -4,18 +4,12 @@ from Base.Metadata import export from Base.PyObjectBase import PyObjectBase @export( - Father="PyObjectBase", - Name="StepShapePy", - Twin="StepShape", - TwinPointer="StepShape", Include="Mod/Import/App/StepShape.h", Namespace="Import", - FatherInclude="Base/PyObjectBase.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class StepShapePy(PyObjectBase): +class StepShape(PyObjectBase): """ StepShape in Import This class gives a interface to retrieve TopoShapes out of an loaded STEP file of any kind. diff --git a/src/Mod/Import/App/StepShapePy.xml b/src/Mod/Import/App/StepShapePy.xml deleted file mode 100644 index 9605bc1e52..0000000000 --- a/src/Mod/Import/App/StepShapePy.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - StepShape in a Import - StepShape in Import -This class gives a interface to retrieve TopoShapes out of an loaded STEP file of any kind. - - - - - method read() -Read a STEP file into memory and make it accessible - - - - - - diff --git a/src/Mod/Measure/App/CMakeLists.txt b/src/Mod/Measure/App/CMakeLists.txt index c10dfd202a..75f30bbe6c 100644 --- a/src/Mod/Measure/App/CMakeLists.txt +++ b/src/Mod/Measure/App/CMakeLists.txt @@ -10,16 +10,13 @@ set(Measure_LIBS FreeCADApp ) -generate_from_xml(MeasurementPy) -generate_from_xml(MeasureBasePy) - -generate_from_py_(MeasurementPy) -generate_from_py_(MeasureBasePy) +generate_from_py(Measurement) +generate_from_py(MeasureBase) SET(Python_SRCS - MeasurementPy.xml + Measurement.pyi MeasurementPyImp.cpp - MeasureBasePy.xml + MeasureBase.pyi MeasureBasePyImp.cpp ) SOURCE_GROUP("Python" FILES ${Python_SRCS}) diff --git a/src/Mod/Measure/App/MeasureBasePy.pyi b/src/Mod/Measure/App/MeasureBase.pyi similarity index 50% rename from src/Mod/Measure/App/MeasureBasePy.pyi rename to src/Mod/Measure/App/MeasureBase.pyi index 6337c2b977..8a54897167 100644 --- a/src/Mod/Measure/App/MeasureBasePy.pyi +++ b/src/Mod/Measure/App/MeasureBase.pyi @@ -3,17 +3,11 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject @export( - Father="DocumentObjectPy", - Name="MeasureBasePy", - Twin="MeasureBase", - TwinPointer="MeasureBase", Include="Mod/Measure/App/MeasureBase.h", Namespace="Measure", - FatherInclude="App/DocumentObjectPy.h", - FatherNamespace="App", Constructor=True, ) -class MeasureBasePy(DocumentObject): +class MeasureBase(DocumentObject): """ User documentation here """ diff --git a/src/Mod/Measure/App/MeasureBasePy.xml b/src/Mod/Measure/App/MeasureBasePy.xml deleted file mode 100644 index c56bf805d1..0000000000 --- a/src/Mod/Measure/App/MeasureBasePy.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - User documentation here - - Developer documentation here - - - diff --git a/src/Mod/Measure/App/MeasurementPy.pyi b/src/Mod/Measure/App/Measurement.pyi similarity index 88% rename from src/Mod/Measure/App/MeasurementPy.pyi rename to src/Mod/Measure/App/Measurement.pyi index 5aee411fff..33d6843c2c 100644 --- a/src/Mod/Measure/App/MeasurementPy.pyi +++ b/src/Mod/Measure/App/Measurement.pyi @@ -4,17 +4,11 @@ from Base.BaseClass import BaseClass from Base.Metadata import export @export( - Father="BaseClassPy", - Name="MeasurementPy", - Twin="Measurement", - TwinPointer="Measurement", Include="Mod/Measure/App/Measurement.h", Namespace="Measure", - FatherInclude="Base/BaseClassPy.h", - FatherNamespace="Base", Constructor=True, ) -class MeasurementPy(BaseClass): +class Measurement(BaseClass): """ Make a measurement """ diff --git a/src/Mod/Measure/App/MeasurementPy.xml b/src/Mod/Measure/App/MeasurementPy.xml deleted file mode 100644 index d6a994409d..0000000000 --- a/src/Mod/Measure/App/MeasurementPy.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - Make a measurement - - - - add a geometric reference - - - - - does Measurement have links to 3D geometry - - - - - measure the difference between references to obtain resultant vector - - - - - measure the difference between references to obtain resultant vector - - - - - measure the length of the references - - - - - measure the volume of the references - - - - - measure the area of the references - - - - - measure the line-Line Distance of the references. Returns 0 if references are not 2 lines. - - - - - measure the plane-plane distance of the references. Returns 0 if references are not 2 planes. - - - - - measure the angle between two edges - - - - - measure the radius of an arc or circle edge - - - - - measure the center of mass for selected volumes - - - - diff --git a/src/Mod/Measure/Gui/CMakeLists.txt b/src/Mod/Measure/Gui/CMakeLists.txt index 3650f0cb7b..594a2a1c73 100644 --- a/src/Mod/Measure/Gui/CMakeLists.txt +++ b/src/Mod/Measure/Gui/CMakeLists.txt @@ -28,8 +28,7 @@ SET(MeasureGui_UIC_SRCS DlgPrefsMeasureAppearanceImp.ui ) -generate_from_xml(QuickMeasurePy) -generate_from_py_(QuickMeasurePy) +generate_from_py(QuickMeasure) SET(MeasureGui_SRCS ${CMAKE_SOURCE_DIR}/src/Mod/Measure/InitGui.py @@ -39,7 +38,7 @@ SET(MeasureGui_SRCS Resources/Measure.qrc PreCompiled.cpp PreCompiled.h - QuickMeasurePy.xml + QuickMeasure.pyi QuickMeasurePyImp.cpp QuickMeasure.cpp QuickMeasure.h diff --git a/src/Mod/Measure/Gui/QuickMeasurePy.pyi b/src/Mod/Measure/Gui/QuickMeasure.pyi similarity index 55% rename from src/Mod/Measure/Gui/QuickMeasurePy.pyi rename to src/Mod/Measure/Gui/QuickMeasure.pyi index d87878eaf8..68dfbd0fe9 100644 --- a/src/Mod/Measure/Gui/QuickMeasurePy.pyi +++ b/src/Mod/Measure/Gui/QuickMeasure.pyi @@ -2,18 +2,12 @@ from Base.Metadata import export from Base.PyObjectBase import PyObjectBase @export( - Father="PyObjectBase", - Name="QuickMeasurePy", - Twin="QuickMeasure", - TwinPointer="QuickMeasure", Include="Mod/Measure/Gui/QuickMeasure.h", Namespace="MeasureGui", - FatherInclude="Base/PyObjectBase.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class QuickMeasurePy(PyObjectBase): +class QuickMeasure(PyObjectBase): """ Selection Observer for the QuickMeasure label. """ diff --git a/src/Mod/Measure/Gui/QuickMeasurePy.xml b/src/Mod/Measure/Gui/QuickMeasurePy.xml deleted file mode 100644 index 24a1f70d15..0000000000 --- a/src/Mod/Measure/Gui/QuickMeasurePy.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Selection Observer for the QuickMeasure label. - - - diff --git a/src/Mod/Mesh/App/CMakeLists.txt b/src/Mod/Mesh/App/CMakeLists.txt index 96ece0f970..99b4479ff3 100644 --- a/src/Mod/Mesh/App/CMakeLists.txt +++ b/src/Mod/Mesh/App/CMakeLists.txt @@ -30,24 +30,18 @@ list(APPEND Mesh_LIBS ${QtConcurrent_LIBRARIES} ) -generate_from_xml(EdgePy) -generate_from_xml(FacetPy) -generate_from_xml(MeshFeaturePy) -generate_from_xml(MeshPointPy) -generate_from_xml(MeshPy) - -generate_from_py_(EdgePy) -generate_from_py_(FacetPy) -generate_from_py_(MeshFeaturePy) -generate_from_py_(MeshPointPy) -generate_from_py_(MeshPy) +generate_from_py(Edge) +generate_from_py(Facet) +generate_from_py(MeshFeature) +generate_from_py(MeshPoint) +generate_from_py(Mesh) SET(Mesh_XML_SRCS - EdgePy.xml - FacetPy.xml - MeshFeaturePy.xml - MeshPointPy.xml - MeshPy.xml + Edge.pyi + Facet.pyi + MeshFeature.pyi + MeshPoint.pyi + Mesh.pyi ) SOURCE_GROUP("XML" FILES ${Mesh_XML_SRCS}) diff --git a/src/Mod/Mesh/App/EdgePy.pyi b/src/Mod/Mesh/App/Edge.pyi similarity index 89% rename from src/Mod/Mesh/App/EdgePy.pyi rename to src/Mod/Mesh/App/Edge.pyi index f2dc9872de..45538102af 100644 --- a/src/Mod/Mesh/App/EdgePy.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -4,18 +4,12 @@ from Base.Metadata import export from Base.PyObjectBase import PyObjectBase @export( - Father="PyObjectBase", - Name="EdgePy", - Twin="Edge", - TwinPointer="Edge", Include="Mod/Mesh/App/Edge.h", Namespace="Mesh", - FatherInclude="Base/PyObjectBase.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class EdgePy(PyObjectBase): +class Edge(PyObjectBase): """ Edge in mesh This is an edge of a facet in a MeshObject. You can get it by e.g. iterating over the facets of a diff --git a/src/Mod/Mesh/App/EdgePy.xml b/src/Mod/Mesh/App/EdgePy.xml deleted file mode 100644 index 4416925a1d..0000000000 --- a/src/Mod/Mesh/App/EdgePy.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - Edge in a Mesh - Edge in mesh -This is an edge of a facet in a MeshObject. You can get it by e.g. iterating over the facets of a -mesh and calling getEdge(index). - - - - - intersectWithEdge(Edge) -> list -Get a list of intersection points with another edge. - - - - - - isParallel(Edge) -> bool -Checks if the two edges are parallel. - - - - - - isCollinear(Edge) -> bool -Checks if the two edges are collinear. - - - - - - method unbound() -Cut the connection to a MeshObject. The edge becomes -free and is more or less a simple edge. -After calling unbound() no topological operation will -work! - - - - - - The index of this edge of the facet - - - - - - A list of points of the edge - - - - - - The index tuple of point vertices of the mesh this edge is built of - - - - - - The index tuple of neighbour facets of the mesh this edge is adjacent with - - - - - - The length of the edge - - - - - - Bound state of the edge - - - - - diff --git a/src/Mod/Mesh/App/FacetPy.pyi b/src/Mod/Mesh/App/Facet.pyi similarity index 93% rename from src/Mod/Mesh/App/FacetPy.pyi rename to src/Mod/Mesh/App/Facet.pyi index 3768508193..37fb5e8287 100644 --- a/src/Mod/Mesh/App/FacetPy.pyi +++ b/src/Mod/Mesh/App/Facet.pyi @@ -4,18 +4,12 @@ from Base.Metadata import export from Base.PyObjectBase import PyObjectBase @export( - Father="PyObjectBase", - Name="FacetPy", - Twin="Facet", - TwinPointer="Facet", Include="Mod/Mesh/App/Facet.h", Namespace="Mesh", - FatherInclude="Base/PyObjectBase.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class FacetPy(PyObjectBase): +class Facet(PyObjectBase): """ Facet in mesh This is a facet in a MeshObject. You can get it by e.g. iterating a diff --git a/src/Mod/Mesh/App/FacetPy.xml b/src/Mod/Mesh/App/FacetPy.xml deleted file mode 100644 index dcf12f12bd..0000000000 --- a/src/Mod/Mesh/App/FacetPy.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - Facet in a Mesh - Facet in mesh -This is a facet in a MeshObject. You can get it by e.g. iterating a -mesh. The facet has a connection to its mesh and allows therefore -topological operations. It is also possible to create an unbounded facet e.g. to create -a mesh. In this case the topological operations will fail. The same is -when you cut the bound to the mesh by calling unbound(). - - - - - method unbound() -Cut the connection to a MeshObject. The facet becomes -free and is more or less a simple facet. -After calling unbound() no topological operation will -work! - - - - - - intersect(Facet) -> list -Get a list of intersection points with another triangle. - - - - - - isDegenerated([float]) -> boolean -Returns true if the facet is degenerated, otherwise false. - - - - - - isDegenerated(MinAngle, MaxAngle) -> boolean -Returns true if the facet is deformed, otherwise false. -A triangle is considered deformed if an angle is less than MinAngle -or higher than MaxAngle. -The two angles are given in radian. - - - - - - getEdge(int) -> Edge -Returns the edge of the facet. - - - - - - The index of this facet in the MeshObject - - - - - - Bound state of the facet - - - - - - Normal vector of the facet. - - - - - - A list of points of the facet - - - - - - The index tuple of point vertices of the mesh this facet is built of - - - - - - The index tuple of neighbour facets of the mesh this facet is adjacent with - - - - - - The area of the facet - - - - - - The aspect ratio of the facet computed by longest edge and its height - - - - - - The aspect ratio of the facet computed by radius of circum-circle and in-circle - - - - - - The roundness of the facet - - - - - - The center and radius of the circum-circle - - - - - - The center and radius of the in-circle - - - - - diff --git a/src/Mod/Mesh/App/MeshPy.pyi b/src/Mod/Mesh/App/Mesh.pyi similarity index 99% rename from src/Mod/Mesh/App/MeshPy.pyi rename to src/Mod/Mesh/App/Mesh.pyi index fe925667b6..c29b7e3d98 100644 --- a/src/Mod/Mesh/App/MeshPy.pyi +++ b/src/Mod/Mesh/App/Mesh.pyi @@ -5,8 +5,6 @@ from Base.Metadata import constmethod, export from App.ComplexGeoData import ComplexGeoData @export( - Father="ComplexGeoDataPy", - Name="MeshPy", Twin="MeshObject", TwinPointer="MeshObject", Include="Mod/Mesh/App/Mesh.h", @@ -21,7 +19,7 @@ from App.ComplexGeoData import ComplexGeoData friend class PropertyMeshKernel; class PropertyMeshKernel* parentProperty = nullptr;""" ) -class MeshPy(ComplexGeoData): +class Mesh(ComplexGeoData): """Mesh() -- Create an empty mesh object. This class allows one to manipulate the mesh object by adding new facets, deleting facets, importing from an STL file, diff --git a/src/Mod/Mesh/App/MeshFeaturePy.pyi b/src/Mod/Mesh/App/MeshFeature.pyi similarity index 95% rename from src/Mod/Mesh/App/MeshFeaturePy.pyi rename to src/Mod/Mesh/App/MeshFeature.pyi index 13237b3284..54ee0c810f 100644 --- a/src/Mod/Mesh/App/MeshFeaturePy.pyi +++ b/src/Mod/Mesh/App/MeshFeature.pyi @@ -5,16 +5,13 @@ from Base.Metadata import export from App.GeoFeature import GeoFeature @export( - Father="GeoFeaturePy", - Name="MeshFeaturePy", Twin="Feature", TwinPointer="Feature", Include="Mod/Mesh/App/MeshFeature.h", Namespace="Mesh", FatherInclude="App/GeoFeaturePy.h", - FatherNamespace="App", ) -class MeshFeaturePy(GeoFeature): +class MeshFeature(GeoFeature): """ The Mesh::Feature class handles meshes. The Mesh.MeshFeature() function is for internal use only and cannot be used to create instances of this class. diff --git a/src/Mod/Mesh/App/MeshFeaturePy.xml b/src/Mod/Mesh/App/MeshFeaturePy.xml deleted file mode 100644 index 3049d4296e..0000000000 --- a/src/Mod/Mesh/App/MeshFeaturePy.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - The Mesh::Feature class handles meshes. -The Mesh.MeshFeature() function is for internal use only and cannot be used to create instances of this class. -Therefore you must have a reference to a document, e.g. 'd' then you can create an instance with -d.addObject("Mesh::Feature"). - - - - - Return the number of vertices of the mesh object - - - - - Return the number of facets of the mesh object - - - - - Adjust wrong oriented facets - - - - - Smooth the mesh data - - - - - -Decimate the mesh -decimate(tolerance(Float), reduction(Float)) -tolerance: maximum error -reduction: reduction factor must be in the range [0.0,1.0] -Example: -mesh.decimate(0.5, 0.1) # reduction by up to 10 percent -mesh.decimate(0.5, 0.9) # reduction by up to 90 percent - -or - -decimate(targwt size(int)) -mesh.decimate(mesh.CountFacets/2) - - - - - - Remove non-manifolds - - - - - Remove non-manifold points - - - - - Repair any invalid indices - - - - - Remove degenerated facets - - - - - Remove duplicated facets - - - - - Remove duplicated points - - - - - Repair self-intersections - - - - - Remove folds on surfaces - - - - - Remove points with invalid coordinates (NaN) - - - - diff --git a/src/Mod/Mesh/App/MeshPointPy.pyi b/src/Mod/Mesh/App/MeshPoint.pyi similarity index 86% rename from src/Mod/Mesh/App/MeshPointPy.pyi rename to src/Mod/Mesh/App/MeshPoint.pyi index 90df79a66d..67d82b5ade 100644 --- a/src/Mod/Mesh/App/MeshPointPy.pyi +++ b/src/Mod/Mesh/App/MeshPoint.pyi @@ -4,18 +4,12 @@ from Base.Metadata import export from Base.PyObjectBase import PyObjectBase @export( - Father="PyObjectBase", - Name="MeshPointPy", - Twin="MeshPoint", - TwinPointer="MeshPoint", Include="Mod/Mesh/App/MeshPoint.h", Namespace="Mesh", - FatherInclude="Base/PyObjectBase.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class MeshPointPy(PyObjectBase): +class MeshPoint(PyObjectBase): """ Point in mesh This is a point in a MeshObject. You can get it by e.g. iterating a diff --git a/src/Mod/Mesh/App/MeshPointPy.xml b/src/Mod/Mesh/App/MeshPointPy.xml deleted file mode 100644 index a701386272..0000000000 --- a/src/Mod/Mesh/App/MeshPointPy.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - Point in a Mesh - Point in mesh -This is a point in a MeshObject. You can get it by e.g. iterating a -mesh. The point has a connection to its mesh and allows therefore -topological operations. It is also possible to create an unbounded mesh point e.g. to create -a mesh. In this case the topological operations will fail. The same is -when you cut the bound to the mesh by calling unbound(). - - - - - method unbound() -Cut the connection to a MeshObject. The point becomes -free and is more or less a simple vector/point. -After calling unbound() no topological operation will -work! - - - - - - The index of this point in the MeshObject - - - - - - Bound state of the point - - - - - - Normal vector of the point computed by the surrounding mesh. - - - - - - Vector of the point. - - - - - - The X component of the point. - - - - - - The Y component of the point. - - - - - - The Z component of the point. - - - - - diff --git a/src/Mod/Mesh/App/MeshPy.xml b/src/Mod/Mesh/App/MeshPy.xml deleted file mode 100644 index d68f43574f..0000000000 --- a/src/Mod/Mesh/App/MeshPy.xml +++ /dev/null @@ -1,621 +0,0 @@ - - - - - - Mesh() -- Create an empty mesh object. - -This class allows one to manipulate the mesh object by adding new facets, deleting facets, importing from an STL file, -transforming the mesh and much more. -For a complete overview of what can be done see also the documentation of mesh. -A mesh object cannot be added to an existing document directly. Therefore the document must create an object -with a property class that supports meshes. -Example: -m = Mesh.Mesh() -... # Manipulate the mesh -d = FreeCAD.activeDocument() # Get a reference to the actie document -f = d.addObject("Mesh::Feature", "Mesh") # Create a mesh feature -f.Mesh = m # Assign the mesh object to the internal property -d.recompute() - - - - Read in a mesh object from file. -mesh.read(Filename='mymesh.stl') -mesh.read(Stream=file,Format='STL') - - - - - Write the mesh object into file. -mesh.write(Filename='mymesh.stl',[Format='STL',Name='Object name',Material=colors]) -mesh.write(Stream=file,Format='STL',[Name='Object name',Material=colors]) - - - - - Write the mesh in OpenInventor format to a string. - - - - - Create a copy of this mesh - - - - - Move the point along their normals - - - - - Move the point along their normals - - - - - Get cross-sections of the mesh through several planes - - - - - Union of this and the given mesh object. - - - - - Intersection of this and the given mesh object. - - - - - Difference of this and the given mesh object. - - - - - Get the part inside of the intersection - - - - - Get the part outside the intersection - - - - - Get the section curves of this and the given mesh object. -lines = mesh.section(mesh2, [ConnectLines=True, MinDist=0.0001]) - - - - - - Apply a translation to the mesh - - - - - Apply a rotation to the mesh - - - - - Apply a transformation to the mesh - - - - - Transform the mesh to its eigenbase - - - - - Get Eigen base of the mesh - - - - - Add a facet to the mesh - - - - - Add a list of facets to the mesh - - - - - Remove a list of facet indices from the mesh - - - - - Remove all edges that are smaller than a given length - - - - - Remove facets whose all three points are on the boundary - - - - - Builds a list of facet indices with triangles that are inside a volume mesh - - - - - Repairs the neighbourhood which might be broken - - - - - Combine this mesh with another mesh. - - - - - -setPoint(int, Vector) -Sets the point at index. - - - - - - -movePoint(int, Vector) -This method moves the point in the mesh along the -given vector. This affects the geometry of the mesh. -Be aware that moving points may cause self-intersections. - - - - - - -getPointNormals() -Get the normals of the points. - - - - - - Add a list of facet indices that describes a segment to the mesh - - - - - Get the number of segments which may also be 0 - - - - - Get a list of facet indices that describes a segment - - - - - -Returns a list containing the different -components (separated areas) of the mesh as separate meshes - -import Mesh -for c in mesh.getSeparatecomponents(): -Mesh.show(c) - - - - - - - Get a list of the indices of selected facets - - - - - Get a list of the indices of selected points - - - - - Create a mesh from segment - - - - - Clear the mesh - - - - - Check if the mesh is a solid - - - - - Check if the mesh has non-manifolds - - - - - Remove non-manifolds - - - - - Remove non-manifold points - - - - - Check if the mesh intersects itself - - - - - Returns a tuple of indices of intersecting triangles - - - - - Repair self-intersections - - - - - Remove folds on surfaces - - - - - Check if the mesh has facets with inconsistent orientation - - - - - Get the number of wrong oriented facets - - - - - Get a tuple of wrong oriented facets - - - - - Check if the mesh has points with invalid coordinates (NaN) - - - - - Remove points with invalid coordinates (NaN) - - - - - Check if points lie on edges - - - - - removePointsOnEdge(FillBoundary=False) -Remove points that lie on edges. -If FillBoundary is True then the holes by removing the affected facets -will be re-filled. - - - - - Check if the mesh has invalid neighbourhood indices - - - - - Check if the mesh has point indices that are out of range - - - - - Check if the mesh has facet indices that are out of range - - - - - Check if the mesh has corrupted facets - - - - - Get the number of topologic independent areas - - - - - Remove components with less or equal to number of given facets - - - - - Repair any invalid indices - - - - - Repair caps by swapping the edge - - - - - Repair deformed facets - - - - - Remove degenerated facets - - - - - Remove duplicated points - - - - - Remove duplicated facets - - - - - Refine the mesh - - - - - Split all edges - - - - - Split edge - - - - - Split facet - - - - - Swap the common edge with the neighbour - - - - - Remove an edge and both facets that share this edge - - - - - Remove a facet - - - - - Remove a list of facets - - - - - Insert a vertex into a facet - - - - - Insert a new facet at the border - - - - - Get detailed information about the mesh - - - - - Get a list of facet indices and intersection points - - - - - Cuts the mesh with a given closed polygon -cut(list, int) -> None -The argument list is an array of points, a polygon -The argument int is the mode: 0=inner, 1=outer - - - - - - Trims the mesh with a given closed polygon -trim(list, int) -> None -The argument list is an array of points, a polygon -The argument int is the mode: 0=inner, 1=outer - - - - - - Trims the mesh with a given plane -trimByPlane(Vector, Vector) -> None -The plane is defined by a base and normal vector. Depending on the -direction of the normal the part above or below will be kept. - - - - - - - Adjust wrong oriented facets - - - - - Flip the mesh normals - - - - - Fillup holes - - - - - Smooth the mesh -smooth([iteration=1,maxError=FLT_MAX]) - - - - - -Decimate the mesh -decimate(tolerance(Float), reduction(Float)) -tolerance: maximum error -reduction: reduction factor must be in the range [0.0,1.0] -Example: -mesh.decimate(0.5, 0.1) # reduction by up to 10 percent -mesh.decimate(0.5, 0.9) # reduction by up to 90 percent - - - - - - Merge facets to optimize topology - - - - - Optimize the edges to get nicer facets - - - - - Optimize the edges to get nicer facets - - - - - - nearestFacetOnRay(tuple, tuple) -> dict -Get the index and intersection point of the nearest facet to a ray. -The first parameter is a tuple of three floats the base point of the ray, -the second parameter is ut uple of three floats for the direction. -The result is a dictionary with an index and the intersection point or -an empty dictionary if there is no intersection. - - - - - - getPlanarSegments(dev,[min faces=0]) -> list -Get all planes of the mesh as segment. -In the worst case each triangle can be regarded as single -plane if none of its neighbours is coplanar. - - - - - getSegmentsOfType(type, dev,[min faces=0]) -> list -Get all segments of type. -Type can be Plane, Cylinder or Sphere - - - - - getSegmentsByCurvature(list) -> list -The argument list gives a list if tuples where it defines the preferred maximum curvature, -the preferred minimum curvature, the tolerances and the number of minimum faces for the segment. -Example: -c=(1.0, 0.0, 0.1, 0.1, 500) # search for a cylinder with radius 1.0 -p=(0.0, 0.0, 0.1, 0.1, 500) # search for a plane -mesh.getSegmentsByCurvature([c,p]) - - - - - - -getCurvaturePerVertex() -> list -The items in the list contains minimum and maximum curvature with their directions - - - - - - A collection of the mesh points -With this attribute it is possible to get access to the points of the mesh -for p in mesh.Points: - print p.x, p.y, p.z - - - - - - Return the number of vertices of the mesh object. - - - - - - Return the number of edges of the mesh object. - - - - - - A collection of facets -With this attribute it is possible to get access to the facets of the mesh -for p in mesh.Facets: - print p - - - - - - Return the number of facets of the mesh object. - - - - - - Return the points and face indices as tuple. - - - - - - Return the area of the mesh object. - - - - - - Return the volume of the mesh object. - - - - - private: - friend class PropertyMeshKernel; - class PropertyMeshKernel* parentProperty = nullptr; - - diff --git a/src/Mod/Mesh/Gui/CMakeLists.txt b/src/Mod/Mesh/Gui/CMakeLists.txt index 4bda63c12a..2f6e3aab83 100644 --- a/src/Mod/Mesh/Gui/CMakeLists.txt +++ b/src/Mod/Mesh/Gui/CMakeLists.txt @@ -15,11 +15,10 @@ set(MeshGui_LIBS FreeCADGui ) -generate_from_xml(ViewProviderMeshPy) -generate_from_py_(ViewProviderMeshPy) +generate_from_py(ViewProviderMesh) SET(MeshGui_XML_SRCS - ViewProviderMeshPy.xml + ViewProviderMesh.pyi ) SOURCE_GROUP("XML" FILES ${MeshGui_XML_SRCS}) diff --git a/src/Mod/Mesh/Gui/ViewProviderMeshPy.pyi b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi similarity index 77% rename from src/Mod/Mesh/Gui/ViewProviderMeshPy.pyi rename to src/Mod/Mesh/Gui/ViewProviderMesh.pyi index f5fa59bc01..4747926c43 100644 --- a/src/Mod/Mesh/Gui/ViewProviderMeshPy.pyi +++ b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi @@ -3,16 +3,10 @@ from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject from Base.Metadata import export @export( - Father="ViewProviderGeometryObjectPy", - Name="ViewProviderMeshPy", - Twin="ViewProviderMesh", - TwinPointer="ViewProviderMesh", Include="Mod/Mesh/Gui/ViewProvider.h", Namespace="MeshGui", - FatherInclude="Gui/ViewProviderGeometryObjectPy.h", - FatherNamespace="Gui", ) -class ViewProviderMeshPy(ViewProviderGeometryObject): +class ViewProviderMesh(ViewProviderGeometryObject): """ This is the ViewProvider base class """ diff --git a/src/Mod/Mesh/Gui/ViewProviderMeshPy.xml b/src/Mod/Mesh/Gui/ViewProviderMeshPy.xml deleted file mode 100644 index aee4a45e9c..0000000000 --- a/src/Mod/Mesh/Gui/ViewProviderMeshPy.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - This is the ViewProvider base class - - - - Select list of facets - - - - - Add list of facets to selection - - - - - Remove list of facets from selection - - - - - Invert the selection - - - - - Clear the selection - - - - - Highlights the segments of a mesh with a given list of colors. -The number of elements of this list must be equal to the number of mesh segments. - - - - - diff --git a/src/Mod/Points/App/CMakeLists.txt b/src/Mod/Points/App/CMakeLists.txt index 8b9f59e2b8..2dccb8d184 100644 --- a/src/Mod/Points/App/CMakeLists.txt +++ b/src/Mod/Points/App/CMakeLists.txt @@ -38,15 +38,14 @@ list(APPEND Points_LIBS ${QtConcurrent_LIBRARIES} ) -generate_from_xml(PointsPy) -generate_from_py_(PointsPy) +generate_from_py(Points) SET(Points_SRCS AppPoints.cpp AppPointsPy.cpp Points.cpp Points.h - PointsPy.xml + Points.pyi PointsPyImp.cpp PointsAlgos.cpp PointsAlgos.h diff --git a/src/Mod/Points/App/PointsPy.pyi b/src/Mod/Points/App/Points.pyi similarity index 97% rename from src/Mod/Points/App/PointsPy.pyi rename to src/Mod/Points/App/Points.pyi index fa30353feb..860ec81bad 100644 --- a/src/Mod/Points/App/PointsPy.pyi +++ b/src/Mod/Points/App/Points.pyi @@ -5,7 +5,6 @@ from Data import object @export( Father="ComplexGeoDataPy", - Name="PointsPy", Twin="PointKernel", TwinPointer="PointKernel", Include="Mod/Points/App/Points.h", @@ -14,7 +13,7 @@ from Data import object FatherNamespace="Data", Constructor=True, ) -class PointsPy(object): +class Points(object): """ Points() -- Create an empty points object. diff --git a/src/Mod/Points/App/PointsPy.xml b/src/Mod/Points/App/PointsPy.xml deleted file mode 100644 index 0ab784731d..0000000000 --- a/src/Mod/Points/App/PointsPy.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - Points() -- Create an empty points object. - -This class allows one to manipulate the Points object by adding new points, deleting facets, importing from an STL file, -transforming and much more. - - - - - - Create a copy of this points object - - - - - Read in a points object from file. - - - - - Write the points object into file. - - - - - Write the points in OpenInventor format to a string. - - - - - add one or more (list of) points to the object - - - - - Get a new point object from a given segment - - - - - Get a new point object from points with valid coordinates (i.e. that are not NaN) - - - - - Return the number of vertices of the points object. - - - - - - A collection of points -With this attribute it is possible to get access to the points of the object - -for p in pnt.Points: - print p - - - - - - diff --git a/src/Tools/bindings/templates/templateClassPyExport.py b/src/Tools/bindings/templates/templateClassPyExport.py index 860a9a762a..19b6ceb422 100644 --- a/src/Tools/bindings/templates/templateClassPyExport.py +++ b/src/Tools/bindings/templates/templateClassPyExport.py @@ -44,8 +44,12 @@ class TemplateClassPyExport(template.ModelTemplate): "CAM", "Fem", "Gui", + "Import", + "Measure", + "Mesh", "Part", "PartDesign", + "Points", "Material", "Sketcher", ]: From df20bc6609856ef2d17149e9ec88ddfd682113f8 Mon Sep 17 00:00:00 2001 From: Ian 'z0r0' Abreu Date: Sun, 31 Aug 2025 15:41:14 -0400 Subject: [PATCH 05/10] Finalizing Python interface bindings for Robot, Spreadsheet, Surface. --- src/Mod/Robot/App/CMakeLists.txt | 21 +- .../App/{Robot6AxisPy.pyi => Robot6Axis.pyi} | 8 +- src/Mod/Robot/App/Robot6AxisPy.xml | 73 ------ .../{RobotObjectPy.pyi => RobotObject.pyi} | 8 +- src/Mod/Robot/App/RobotObjectPy.xml | 25 -- .../App/{TrajectoryPy.pyi => Trajectory.pyi} | 8 +- src/Mod/Robot/App/TrajectoryPy.xml | 67 ----- .../App/{WaypointPy.pyi => Waypoint.pyi} | 8 +- src/Mod/Robot/App/WaypointPy.xml | 65 ----- src/Mod/Spreadsheet/App/CMakeLists.txt | 21 +- .../Spreadsheet/App/PropertyColumnWidths.pyi | 12 + .../App/PropertyColumnWidthsPy.pyi | 18 -- .../App/PropertyColumnWidthsPy.xml | 18 -- ...owHeightsPy.pyi => PropertyRowHeights.pyi} | 8 +- .../Spreadsheet/App/PropertyRowHeightsPy.xml | 18 -- ...{PropertySheetPy.pyi => PropertySheet.pyi} | 8 +- src/Mod/Spreadsheet/App/PropertySheetPy.xml | 30 --- .../App/{SheetPy.pyi => Sheet.pyi} | 8 +- src/Mod/Spreadsheet/App/SheetPy.xml | 231 ------------------ src/Mod/Spreadsheet/Gui/CMakeLists.txt | 5 +- ...heetPy.pyi => ViewProviderSpreadsheet.pyi} | 6 +- .../Gui/ViewProviderSpreadsheetPy.xml | 46 ---- .../{BlendCurvePy.pyi => BlendCurve.pyi} | 8 +- src/Mod/Surface/App/Blending/BlendCurvePy.xml | 41 ---- .../{BlendPointPy.pyi => BlendPoint.pyi} | 8 +- src/Mod/Surface/App/Blending/BlendPointPy.xml | 57 ----- src/Mod/Surface/App/CMakeLists.txt | 11 +- .../templates/templateClassPyExport.py | 5 +- 28 files changed, 48 insertions(+), 794 deletions(-) rename src/Mod/Robot/App/{Robot6AxisPy.pyi => Robot6Axis.pyi} (81%) delete mode 100644 src/Mod/Robot/App/Robot6AxisPy.xml rename src/Mod/Robot/App/{RobotObjectPy.pyi => RobotObject.pyi} (64%) delete mode 100644 src/Mod/Robot/App/RobotObjectPy.xml rename src/Mod/Robot/App/{TrajectoryPy.pyi => Trajectory.pyi} (82%) delete mode 100644 src/Mod/Robot/App/TrajectoryPy.xml rename src/Mod/Robot/App/{WaypointPy.pyi => Waypoint.pyi} (80%) delete mode 100644 src/Mod/Robot/App/WaypointPy.xml create mode 100644 src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi delete mode 100644 src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.pyi delete mode 100644 src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.xml rename src/Mod/Spreadsheet/App/{PropertyRowHeightsPy.pyi => PropertyRowHeights.pyi} (50%) delete mode 100644 src/Mod/Spreadsheet/App/PropertyRowHeightsPy.xml rename src/Mod/Spreadsheet/App/{PropertySheetPy.pyi => PropertySheet.pyi} (57%) delete mode 100644 src/Mod/Spreadsheet/App/PropertySheetPy.xml rename src/Mod/Spreadsheet/App/{SheetPy.pyi => Sheet.pyi} (95%) delete mode 100644 src/Mod/Spreadsheet/App/SheetPy.xml rename src/Mod/Spreadsheet/Gui/{ViewProviderSpreadsheetPy.pyi => ViewProviderSpreadsheet.pyi} (77%) delete mode 100644 src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheetPy.xml rename src/Mod/Surface/App/Blending/{BlendCurvePy.pyi => BlendCurve.pyi} (78%) delete mode 100644 src/Mod/Surface/App/Blending/BlendCurvePy.xml rename src/Mod/Surface/App/Blending/{BlendPointPy.pyi => BlendPoint.pyi} (83%) delete mode 100644 src/Mod/Surface/App/Blending/BlendPointPy.xml diff --git a/src/Mod/Robot/App/CMakeLists.txt b/src/Mod/Robot/App/CMakeLists.txt index c55547411e..729c9a7201 100644 --- a/src/Mod/Robot/App/CMakeLists.txt +++ b/src/Mod/Robot/App/CMakeLists.txt @@ -20,26 +20,21 @@ set(Robot_LIBS FreeCADApp ) -generate_from_xml(Robot6AxisPy) -generate_from_xml(TrajectoryPy) -generate_from_xml(WaypointPy) -generate_from_xml(RobotObjectPy) - -generate_from_py_(Robot6AxisPy) -generate_from_py_(TrajectoryPy) -generate_from_py_(WaypointPy) -generate_from_py_(RobotObjectPy) +generate_from_py(Robot6Axis) +generate_from_py(Trajectory) +generate_from_py(Waypoint) +generate_from_py(RobotObject) SET(Python_SRCS - Robot6AxisPy.xml + Robot6Axis.pyi Robot6AxisPyImp.cpp - TrajectoryPy.xml + Trajectory.pyi TrajectoryPyImp.cpp - RobotObjectPy.xml + RobotObject.pyi RobotObjectPyImp.cpp - WaypointPy.xml + Waypoint.pyi WaypointPyImp.cpp ) diff --git a/src/Mod/Robot/App/Robot6AxisPy.pyi b/src/Mod/Robot/App/Robot6Axis.pyi similarity index 81% rename from src/Mod/Robot/App/Robot6AxisPy.pyi rename to src/Mod/Robot/App/Robot6Axis.pyi index 55817cab9f..f764c6036f 100644 --- a/src/Mod/Robot/App/Robot6AxisPy.pyi +++ b/src/Mod/Robot/App/Robot6Axis.pyi @@ -4,18 +4,12 @@ from Base.Metadata import export from Base.Persistence import Persistence @export( - Father="PersistencePy", - Name="Robot6AxisPy", - Twin="Robot6Axis", - TwinPointer="Robot6Axis", Include="Mod/Robot/App/Robot6Axis.h", Namespace="Robot", - FatherInclude="Base/PersistencePy.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class Robot6AxisPy(Persistence): +class Robot6Axis(Persistence): """ Robot6Axis class """ diff --git a/src/Mod/Robot/App/Robot6AxisPy.xml b/src/Mod/Robot/App/Robot6AxisPy.xml deleted file mode 100644 index fba8feebf0..0000000000 --- a/src/Mod/Robot/App/Robot6AxisPy.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - Robot6Axis class - - - - Checks the shape and report errors in the shape structure. -This is a more detailed check as done in isValid(). - - - - - Pose of Axis 1 in degrees - - - - - - Pose of Axis 2 in degrees - - - - - - Pose of Axis 3 in degrees - - - - - - Pose of Axis 4 in degrees - - - - - - Pose of Axis 5 in degrees - - - - - - Pose of Axis 6 in degrees - - - - - - Tool center point frame. Where the tool of the robot is - - - - - - Actual Base system in respect to the robot world system - - - - - diff --git a/src/Mod/Robot/App/RobotObjectPy.pyi b/src/Mod/Robot/App/RobotObject.pyi similarity index 64% rename from src/Mod/Robot/App/RobotObjectPy.pyi rename to src/Mod/Robot/App/RobotObject.pyi index 3cb536ff56..ec30f9106d 100644 --- a/src/Mod/Robot/App/RobotObjectPy.pyi +++ b/src/Mod/Robot/App/RobotObject.pyi @@ -5,16 +5,10 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject @export( - Father="DocumentObjectPy", - Name="RobotObjectPy", - Twin="RobotObject", - TwinPointer="RobotObject", Include="Mod/Robot/App/RobotObject.h", Namespace="Robot", - FatherInclude="App/DocumentObjectPy.h", - FatherNamespace="App", ) -class RobotObjectPy(DocumentObject): +class RobotObject(DocumentObject): """ Robot document object """ diff --git a/src/Mod/Robot/App/RobotObjectPy.xml b/src/Mod/Robot/App/RobotObjectPy.xml deleted file mode 100644 index d964509698..0000000000 --- a/src/Mod/Robot/App/RobotObjectPy.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - Robot document object - - - - -Returns a copy of the robot. Be aware, the robot behaves the same -like the robot of the object but is a copy! - - - - - diff --git a/src/Mod/Robot/App/TrajectoryPy.pyi b/src/Mod/Robot/App/Trajectory.pyi similarity index 82% rename from src/Mod/Robot/App/TrajectoryPy.pyi rename to src/Mod/Robot/App/Trajectory.pyi index 12ed781157..34729f9663 100644 --- a/src/Mod/Robot/App/TrajectoryPy.pyi +++ b/src/Mod/Robot/App/Trajectory.pyi @@ -4,18 +4,12 @@ from Base.Metadata import export from Base.Persistence import Persistence @export( - Father="PersistencePy", - Name="TrajectoryPy", - Twin="Trajectory", - TwinPointer="Trajectory", Include="Mod/Robot/App/Trajectory.h", Namespace="Robot", - FatherInclude="Base/PersistencePy.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class TrajectoryPy(Persistence): +class Trajectory(Persistence): """ Trajectory class """ diff --git a/src/Mod/Robot/App/TrajectoryPy.xml b/src/Mod/Robot/App/TrajectoryPy.xml deleted file mode 100644 index 2b83e16f7b..0000000000 --- a/src/Mod/Robot/App/TrajectoryPy.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Trajectory class - - - - - adds one or a list of waypoint to the end of the trajectory - - - - - - - returns a Frame to a given time in the trajectory - - - - - - - returns the velocity to a given time in the trajectory - - - - - - -deleteLast(n) - delete n waypoints at the end -deleteLast() - delete the last waypoint - - - - - - duration of the trajectory - - - - - - length of the trajectory - - - - - - waypoints of this trajectory - - - - - - diff --git a/src/Mod/Robot/App/WaypointPy.pyi b/src/Mod/Robot/App/Waypoint.pyi similarity index 80% rename from src/Mod/Robot/App/WaypointPy.pyi rename to src/Mod/Robot/App/Waypoint.pyi index 54984237f7..e01c993a4e 100644 --- a/src/Mod/Robot/App/WaypointPy.pyi +++ b/src/Mod/Robot/App/Waypoint.pyi @@ -4,18 +4,12 @@ from Base.Metadata import export from Base.Persistence import Persistence @export( - Father="PersistencePy", - Name="WaypointPy", - Twin="Waypoint", - TwinPointer="Waypoint", Include="Mod/Robot/App/Waypoint.h", Namespace="Robot", - FatherInclude="Base/PersistencePy.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class WaypointPy(Persistence): +class Waypoint(Persistence): """ Waypoint class """ diff --git a/src/Mod/Robot/App/WaypointPy.xml b/src/Mod/Robot/App/WaypointPy.xml deleted file mode 100644 index cf600b6950..0000000000 --- a/src/Mod/Robot/App/WaypointPy.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Waypoint class - - - - Name of the waypoint - - - - - - Type of the waypoint[PTP|LIN|CIRC|WAIT] - - - - - - End position (destination) of the waypoint - - - - - - Control the continuity to the next waypoint in the trajectory - - - - - - Control the velocity to the next waypoint in the trajectory -In Case of PTP 0-100% Axis speed -In Case of LIN m/s -In Case of WAIT s wait time - - - - - - - Describe which tool frame to use for that point - - - - - - Describe which Base frame to use for that point - - - - - diff --git a/src/Mod/Spreadsheet/App/CMakeLists.txt b/src/Mod/Spreadsheet/App/CMakeLists.txt index f94f791a35..031d016b9d 100644 --- a/src/Mod/Spreadsheet/App/CMakeLists.txt +++ b/src/Mod/Spreadsheet/App/CMakeLists.txt @@ -19,19 +19,19 @@ set(Spreadsheet_SRCS PreCompiled.h PropertySheet.cpp PropertySheet.h - PropertySheetPy.xml + PropertySheet.pyi PropertySheetPyImp.cpp PropertyColumnWidths.cpp PropertyColumnWidths.h - PropertyColumnWidthsPy.xml + PropertyColumnWidths.pyi PropertyColumnWidthsPyImp.cpp PropertyRowHeights.cpp PropertyRowHeights.h - PropertyRowHeightsPy.xml + PropertyRowHeights.pyi PropertyRowHeightsPyImp.cpp Sheet.cpp Sheet.h - SheetPy.xml + Sheet.pyi SheetPyImp.cpp SheetObserver.cpp SheetObserver.h @@ -40,15 +40,10 @@ set(Spreadsheet_SRCS AppSpreadsheet.cpp ) -generate_from_xml(SheetPy) -generate_from_xml(PropertySheetPy) -generate_from_xml(PropertyColumnWidthsPy) -generate_from_xml(PropertyRowHeightsPy) - -generate_from_py_(SheetPy) -generate_from_py_(PropertySheetPy) -generate_from_py_(PropertyColumnWidthsPy) -generate_from_py_(PropertyRowHeightsPy) +generate_from_py(Sheet) +generate_from_py(PropertySheet) +generate_from_py(PropertyColumnWidths) +generate_from_py(PropertyRowHeights) if(FREECAD_USE_PCH) add_definitions(-D_PreComp_) diff --git a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi new file mode 100644 index 0000000000..c222bb0bf2 --- /dev/null +++ b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi @@ -0,0 +1,12 @@ +from Base.Metadata import export +from Base.Persistence import Persistence + +@export( + Include="Mod/Spreadsheet/App/PropertyColumnWidths.h", + Namespace="Spreadsheet", + Constructor=True, +) +class PropertyColumnWidths(Persistence): + """ + Internal spreadsheet object + """ diff --git a/src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.pyi b/src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.pyi deleted file mode 100644 index 3882644be1..0000000000 --- a/src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from Base.Metadata import export -from Base.Persistence import Persistence - -@export( - Father="PersistencePy", - Name="PropertyColumnWidthsPy", - Twin="PropertyColumnWidths", - TwinPointer="PropertyColumnWidths", - Include="Mod/Spreadsheet/App/PropertyColumnWidths.h", - Namespace="Spreadsheet", - FatherInclude="Base/PersistencePy.h", - FatherNamespace="Base", - Constructor=True, -) -class PropertyColumnWidthsPy(Persistence): - """ - Internal spreadsheet object - """ diff --git a/src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.xml b/src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.xml deleted file mode 100644 index fb1fdce762..0000000000 --- a/src/Mod/Spreadsheet/App/PropertyColumnWidthsPy.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Internal spreadsheet object - - - diff --git a/src/Mod/Spreadsheet/App/PropertyRowHeightsPy.pyi b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi similarity index 50% rename from src/Mod/Spreadsheet/App/PropertyRowHeightsPy.pyi rename to src/Mod/Spreadsheet/App/PropertyRowHeights.pyi index 663b76ea5c..29a40ecf57 100644 --- a/src/Mod/Spreadsheet/App/PropertyRowHeightsPy.pyi +++ b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi @@ -2,17 +2,11 @@ from Base.Metadata import export from Base.Persistence import Persistence @export( - Father="PersistencePy", - Name="PropertyRowHeightsPy", - Twin="PropertyRowHeights", - TwinPointer="PropertyRowHeights", Include="Mod/Spreadsheet/App/PropertyRowHeights.h", Namespace="Spreadsheet", - FatherInclude="Base/PersistencePy.h", - FatherNamespace="Base", Constructor=True, ) -class PropertyRowHeightsPy(Persistence): +class PropertyRowHeights(Persistence): """ Internal spreadsheet object """ diff --git a/src/Mod/Spreadsheet/App/PropertyRowHeightsPy.xml b/src/Mod/Spreadsheet/App/PropertyRowHeightsPy.xml deleted file mode 100644 index 95b1c6e0ba..0000000000 --- a/src/Mod/Spreadsheet/App/PropertyRowHeightsPy.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Internal spreadsheet object - - - diff --git a/src/Mod/Spreadsheet/App/PropertySheetPy.pyi b/src/Mod/Spreadsheet/App/PropertySheet.pyi similarity index 57% rename from src/Mod/Spreadsheet/App/PropertySheetPy.pyi rename to src/Mod/Spreadsheet/App/PropertySheet.pyi index 42d0f4a13d..d9a7e71260 100644 --- a/src/Mod/Spreadsheet/App/PropertySheetPy.pyi +++ b/src/Mod/Spreadsheet/App/PropertySheet.pyi @@ -2,20 +2,14 @@ from Base.Metadata import export, sequence_protocol from Base.Persistence import Persistence @export( - Father="PersistencePy", - Name="PropertySheetPy", - Twin="PropertySheet", - TwinPointer="PropertySheet", Include="Mod/Spreadsheet/App/PropertySheet.h", Namespace="Spreadsheet", - FatherInclude="Base/PersistencePy.h", - FatherNamespace="Base", Constructor=True, ) @sequence_protocol( mp_subscript="true", ) -class PropertySheetPy(Persistence): +class PropertySheet(Persistence): """ Internal spreadsheet object """ diff --git a/src/Mod/Spreadsheet/App/PropertySheetPy.xml b/src/Mod/Spreadsheet/App/PropertySheetPy.xml deleted file mode 100644 index c739b3353e..0000000000 --- a/src/Mod/Spreadsheet/App/PropertySheetPy.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - Internal spreadsheet object - - - - - diff --git a/src/Mod/Spreadsheet/App/SheetPy.pyi b/src/Mod/Spreadsheet/App/Sheet.pyi similarity index 95% rename from src/Mod/Spreadsheet/App/SheetPy.pyi rename to src/Mod/Spreadsheet/App/Sheet.pyi index e93da1a33e..08d4ca43a8 100644 --- a/src/Mod/Spreadsheet/App/SheetPy.pyi +++ b/src/Mod/Spreadsheet/App/Sheet.pyi @@ -5,17 +5,11 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject @export( - Father="DocumentObjectPy", - Name="SheetPy", - Twin="Sheet", - TwinPointer="Sheet", Include="Mod/Spreadsheet/App/Sheet.h", Namespace="Spreadsheet", - FatherInclude="App/DocumentObjectPy.h", - FatherNamespace="App", Constructor=True, ) -class SheetPy(DocumentObject): +class Sheet(DocumentObject): """ With this object you can manipulate spreadsheets """ diff --git a/src/Mod/Spreadsheet/App/SheetPy.xml b/src/Mod/Spreadsheet/App/SheetPy.xml deleted file mode 100644 index 6e31e8eec4..0000000000 --- a/src/Mod/Spreadsheet/App/SheetPy.xml +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - With this object you can manipulate spreadsheets - - - - Set data into a cell - - - - - Get evaluated cell contents - - - - - Get cell contents - - - - - Clear a cell - - - - - Clear all cells in the spreadsheet - - - - - Import file into spreadsheet - - - - - Export file from spreadsheet - - - - - Merge given cell area into one cell - - - - - Split a previously merged cell - - - - - Insert a given number of columns into the spreadsheet. - - - - - Remove a given number of columns from the spreadsheet. - - - - - Insert a given number of rows into the spreadsheet. - - - - - Remove a given number of rows from the spreadsheet. - - - - - Set alignment of the cell - - - - - Get alignment of the cell - - - - - Set style of the cell - - - - - Get style of the cell - - - - - Set display unit for cell - - - - - Set alias for cell address - - - - - Get alias for cell address - - - - - Get cell address given an alias - - - - - Get display unit for cell - - - - - Set foreground color of the cell - - - - - Get foreground color of the cell - - - - - Set background color of the cell - - - - - Get background color of the cell - - - - - Set given spreadsheet column to given width - - - - - Get given spreadsheet column width - - - - - Set given spreadsheet row to given height - - - - - Get given spreadsheet row height - - - - - touchCells(from, to=None): touch cells in the given range - - - - - -recomputeCells(from, to=None) - -Manually recompute cells in the given range with the given order without -following dependency order. - - - - - - - -getUsedCells() - -Get a list of the names of all cells that are marked as used. These cells may -or may not have a non-empty string content. - - - - - - - -getNonEmptyCells() - -Get a list of the names of all cells with data in them. - - - - - - - -getUsedRange() - -Get a the total range of the used cells in a sheet, as a pair of strings -representing the lowest row and column that are used, and the highest row and -column that are used (inclusive). Note that the actual first and last cell -of the block are not necessarily used. - - - - - - - -getNonEmptyRange() - -Get a the total range of the used cells in a sheet, as a pair of cell addresses -representing the lowest row and column that contain data, and the highest row and -column that contain data (inclusive). Note that the actual first and last cell -of the block do not necessarily contain anything. - - - - - - diff --git a/src/Mod/Spreadsheet/Gui/CMakeLists.txt b/src/Mod/Spreadsheet/Gui/CMakeLists.txt index 961960eb90..781734d787 100644 --- a/src/Mod/Spreadsheet/Gui/CMakeLists.txt +++ b/src/Mod/Spreadsheet/Gui/CMakeLists.txt @@ -3,12 +3,11 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ) -generate_from_xml(ViewProviderSpreadsheetPy) -generate_from_py_(ViewProviderSpreadsheetPy) +generate_from_py(ViewProviderSpreadsheet) # The XML files set(SpreadsheetGui_XML_SRCS - ViewProviderSpreadsheetPy.xml + ViewProviderSpreadsheet.pyi ) set(SpreadsheetGui_LIBS diff --git a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheetPy.pyi b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi similarity index 77% rename from src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheetPy.pyi rename to src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi index 954a9174ea..641eb78672 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheetPy.pyi +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi @@ -5,16 +5,12 @@ from Base.Metadata import export from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject @export( - Father="ViewProviderDocumentObjectPy", - Name="ViewProviderSpreadsheetPy", Twin="ViewProviderSheet", TwinPointer="ViewProviderSheet", Include="Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.h", Namespace="SpreadsheetGui", - FatherInclude="Gui/ViewProviderDocumentObjectPy.h", - FatherNamespace="Gui", ) -class ViewProviderSpreadsheetPy(ViewProviderDocumentObject): +class ViewProviderSpreadsheet(ViewProviderDocumentObject): """ ViewProviderSheet class """ diff --git a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheetPy.xml b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheetPy.xml deleted file mode 100644 index 819672cf80..0000000000 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheetPy.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - ViewProviderSheet class - - - - Get access to the sheet view - - - - - -Create (if necessary) and switch to the Spreadsheet MDI. - -showSheetMdi() - -Returns: None - - - - - - -Export the sheet as a file. - -exportAsFile() - -Returns: None - - - - - diff --git a/src/Mod/Surface/App/Blending/BlendCurvePy.pyi b/src/Mod/Surface/App/Blending/BlendCurve.pyi similarity index 78% rename from src/Mod/Surface/App/Blending/BlendCurvePy.pyi rename to src/Mod/Surface/App/Blending/BlendCurve.pyi index 4aaa1f8ef5..bc996f65a2 100644 --- a/src/Mod/Surface/App/Blending/BlendCurvePy.pyi +++ b/src/Mod/Surface/App/Blending/BlendCurve.pyi @@ -4,18 +4,12 @@ from Base.BaseClass import PyObjectBase from Base.Metadata import export @export( - Father="PyObjectBase", - Name="BlendCurvePy", - Twin="BlendCurve", - TwinPointer="BlendCurve", Include="Mod/Surface/App/Blending/BlendCurve.h", Namespace="Surface", - FatherInclude="Base/BaseClassPy.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class BlendCurvePy(PyObjectBase): +class BlendCurve(PyObjectBase): """ Create a BlendCurve that interpolate 2 BlendPoints. curve = BlendCurve(BlendPoint1, BlendPoint2) diff --git a/src/Mod/Surface/App/Blending/BlendCurvePy.xml b/src/Mod/Surface/App/Blending/BlendCurvePy.xml deleted file mode 100644 index 825b2d05d8..0000000000 --- a/src/Mod/Surface/App/Blending/BlendCurvePy.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - -Create a BlendCurve that interpolate 2 BlendPoints. - curve = BlendCurve(BlendPoint1, BlendPoint2) - - - - - -Return the BezierCurve that interpolate the input BlendPoints. - - - - - - -Set the tangent size of the blendpoint at given index. -If relative is true, the size is considered relative to the distance between the two blendpoints. -myBlendCurve.setSize(idx, size, relative) - - - - - diff --git a/src/Mod/Surface/App/Blending/BlendPointPy.pyi b/src/Mod/Surface/App/Blending/BlendPoint.pyi similarity index 83% rename from src/Mod/Surface/App/Blending/BlendPointPy.pyi rename to src/Mod/Surface/App/Blending/BlendPoint.pyi index 7318b9f5ea..6c3cc229e5 100644 --- a/src/Mod/Surface/App/Blending/BlendPointPy.pyi +++ b/src/Mod/Surface/App/Blending/BlendPoint.pyi @@ -4,18 +4,12 @@ from Base.BaseClass import PyObjectBase from Base.Metadata import constmethod, export @export( - Father="PyObjectBase", - Name="BlendPointPy", - Twin="BlendPoint", - TwinPointer="BlendPoint", Include="Mod/Surface/App/Blending/BlendPoint.h", Namespace="Surface", - FatherInclude="Base/BaseClassPy.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class BlendPointPy(PyObjectBase): +class BlendPoint(PyObjectBase): """ Create BlendPoint from a point and some derivatives. myBlendPoint = BlendPoint([Point, D1, D2, ..., DN]) diff --git a/src/Mod/Surface/App/Blending/BlendPointPy.xml b/src/Mod/Surface/App/Blending/BlendPointPy.xml deleted file mode 100644 index 8644d455f7..0000000000 --- a/src/Mod/Surface/App/Blending/BlendPointPy.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - -Create BlendPoint from a point and some derivatives. -myBlendPoint = BlendPoint([Point, D1, D2, ..., DN]) -BlendPoint can also be constructed from an edge -myBlendPoint = BlendPoint(Edge, parameter = float, continuity = int) - - - - - The list of vectors of this BlendPoint. - - - - - - - Return BlendPoint first derivative length. - - - - - - -Resizes the BlendPoint vectors, -by setting the length of the first derivative. -theBlendPoint.setSize(new_size) - - - - - - -Set the vectors of BlendPoint. -BlendPoint.setvectors([Point, D1, D2, ..., DN]) - - - - - diff --git a/src/Mod/Surface/App/CMakeLists.txt b/src/Mod/Surface/App/CMakeLists.txt index b98fa10963..1d824a3116 100644 --- a/src/Mod/Surface/App/CMakeLists.txt +++ b/src/Mod/Surface/App/CMakeLists.txt @@ -13,11 +13,8 @@ include_directories( file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Blending) -generate_from_xml(Blending/BlendPointPy) -generate_from_xml(Blending/BlendCurvePy) - -generate_from_py_(Blending/BlendPointPy) -generate_from_py_(Blending/BlendCurvePy) +generate_from_py(Blending/BlendPoint) +generate_from_py(Blending/BlendCurve) set(Surface_LIBS FreeCADApp @@ -26,9 +23,9 @@ set(Surface_LIBS # BlendPoint Wrapper SET(BlendingPy_SRCS - Blending/BlendPointPy.xml + Blending/BlendPoint.pyi Blending/BlendPointPyImp.cpp - Blending/BlendCurvePy.xml + Blending/BlendCurve.pyi Blending/BlendCurvePyImp.cpp ) SOURCE_GROUP("Blending" FILES ${BlendingPy_SRCS}) diff --git a/src/Tools/bindings/templates/templateClassPyExport.py b/src/Tools/bindings/templates/templateClassPyExport.py index 19b6ceb422..54d2fb56fe 100644 --- a/src/Tools/bindings/templates/templateClassPyExport.py +++ b/src/Tools/bindings/templates/templateClassPyExport.py @@ -45,13 +45,16 @@ class TemplateClassPyExport(template.ModelTemplate): "Fem", "Gui", "Import", + "Material", "Measure", "Mesh", "Part", "PartDesign", "Points", - "Material", + "Robot", "Sketcher", + "Spreadsheet", + "Surface", ]: root, ext = os.path.splitext(path) return f"{root}_{ext}" From 963757d9bafbba62426aefcf03193497734c570b Mon Sep 17 00:00:00 2001 From: Ian 'z0r0' Abreu Date: Sun, 31 Aug 2025 15:43:50 -0400 Subject: [PATCH 06/10] Finalizing Python interface bindings for TechDraw. --- src/Mod/TechDraw/App/CMakeLists.txt | 137 +++++------- .../App/{CenterLinePy.pyi => CenterLine.pyi} | 8 +- src/Mod/TechDraw/App/CenterLinePy.xml | 101 --------- .../{CosmeticEdgePy.pyi => CosmeticEdge.pyi} | 7 +- src/Mod/TechDraw/App/CosmeticEdgePy.xml | 69 ------- src/Mod/TechDraw/App/CosmeticExtension.pyi | 12 ++ src/Mod/TechDraw/App/CosmeticExtensionPy.pyi | 18 -- src/Mod/TechDraw/App/CosmeticExtensionPy.xml | 17 -- ...osmeticVertexPy.pyi => CosmeticVertex.pyi} | 8 +- src/Mod/TechDraw/App/CosmeticVertexPy.xml | 65 ------ ...rawBrokenViewPy.pyi => DrawBrokenView.pyi} | 7 +- src/Mod/TechDraw/App/DrawBrokenViewPy.xml | 33 --- ...{DrawGeomHatchPy.pyi => DrawGeomHatch.pyi} | 8 +- src/Mod/TechDraw/App/DrawGeomHatchPy.xml | 25 --- .../App/{DrawHatchPy.pyi => DrawHatch.pyi} | 8 +- src/Mod/TechDraw/App/DrawHatchPy.xml | 25 --- ...rawLeaderLinePy.pyi => DrawLeaderLine.pyi} | 7 +- src/Mod/TechDraw/App/DrawLeaderLinePy.xml | 18 -- .../App/{DrawPagePy.pyi => DrawPage.pyi} | 8 +- src/Mod/TechDraw/App/DrawPagePy.xml | 68 ------ ...platePy.pyi => DrawParametricTemplate.pyi} | 7 +- .../TechDraw/App/DrawParametricTemplatePy.xml | 28 --- ...{DrawProjGroupPy.pyi => DrawProjGroup.pyi} | 7 +- ...jGroupItemPy.pyi => DrawProjGroupItem.pyi} | 7 +- src/Mod/TechDraw/App/DrawProjGroupItemPy.xml | 23 --- src/Mod/TechDraw/App/DrawProjGroupPy.xml | 43 ---- .../{DrawRichAnnoPy.pyi => DrawRichAnno.pyi} | 7 +- src/Mod/TechDraw/App/DrawRichAnnoPy.xml | 18 -- ...wSVGTemplatePy.pyi => DrawSVGTemplate.pyi} | 7 +- src/Mod/TechDraw/App/DrawSVGTemplatePy.xml | 34 --- .../{DrawTemplatePy.pyi => DrawTemplate.pyi} | 8 +- src/Mod/TechDraw/App/DrawTemplatePy.xml | 17 -- .../App/{DrawTilePy.pyi => DrawTile.pyi} | 8 +- src/Mod/TechDraw/App/DrawTilePy.xml | 18 -- .../{DrawTileWeldPy.pyi => DrawTileWeld.pyi} | 7 +- src/Mod/TechDraw/App/DrawTileWeldPy.xml | 18 -- .../App/{DrawViewPy.pyi => DrawView.pyi} | 8 +- ...nnotationPy.pyi => DrawViewAnnotation.pyi} | 7 +- src/Mod/TechDraw/App/DrawViewAnnotationPy.xml | 18 -- .../{DrawViewClipPy.pyi => DrawViewClip.pyi} | 9 +- src/Mod/TechDraw/App/DrawViewClipPy.xml | 33 --- ...ollectionPy.pyi => DrawViewCollection.pyi} | 7 +- src/Mod/TechDraw/App/DrawViewCollectionPy.xml | 28 --- ...wDimExtentPy.pyi => DrawViewDimExtent.pyi} | 7 +- src/Mod/TechDraw/App/DrawViewDimExtentPy.xml | 23 --- ...wDimensionPy.pyi => DrawViewDimension.pyi} | 7 +- src/Mod/TechDraw/App/DrawViewDimensionPy.xml | 53 ----- .../{DrawViewPartPy.pyi => DrawViewPart.pyi} | 7 +- src/Mod/TechDraw/App/DrawViewPartPy.xml | 195 ------------------ src/Mod/TechDraw/App/DrawViewPy.xml | 32 --- ...rawViewSymbolPy.pyi => DrawViewSymbol.pyi} | 7 +- src/Mod/TechDraw/App/DrawViewSymbolPy.xml | 23 --- ...rawWeldSymbolPy.pyi => DrawWeldSymbol.pyi} | 7 +- src/Mod/TechDraw/App/DrawWeldSymbolPy.xml | 18 -- .../App/{GeomFormatPy.pyi => GeomFormat.pyi} | 8 +- src/Mod/TechDraw/App/GeomFormatPy.xml | 35 ---- .../templates/templateClassPyExport.py | 1 + 57 files changed, 94 insertions(+), 1345 deletions(-) rename src/Mod/TechDraw/App/{CenterLinePy.pyi => CenterLine.pyi} (87%) delete mode 100644 src/Mod/TechDraw/App/CenterLinePy.xml rename src/Mod/TechDraw/App/{CosmeticEdgePy.pyi => CosmeticEdge.pyi} (83%) delete mode 100644 src/Mod/TechDraw/App/CosmeticEdgePy.xml create mode 100644 src/Mod/TechDraw/App/CosmeticExtension.pyi delete mode 100644 src/Mod/TechDraw/App/CosmeticExtensionPy.pyi delete mode 100644 src/Mod/TechDraw/App/CosmeticExtensionPy.xml rename src/Mod/TechDraw/App/{CosmeticVertexPy.pyi => CosmeticVertex.pyi} (81%) delete mode 100644 src/Mod/TechDraw/App/CosmeticVertexPy.xml rename src/Mod/TechDraw/App/{DrawBrokenViewPy.pyi => DrawBrokenView.pyi} (82%) delete mode 100644 src/Mod/TechDraw/App/DrawBrokenViewPy.xml rename src/Mod/TechDraw/App/{DrawGeomHatchPy.pyi => DrawGeomHatch.pyi} (69%) delete mode 100644 src/Mod/TechDraw/App/DrawGeomHatchPy.xml rename src/Mod/TechDraw/App/{DrawHatchPy.pyi => DrawHatch.pyi} (70%) delete mode 100644 src/Mod/TechDraw/App/DrawHatchPy.xml rename src/Mod/TechDraw/App/{DrawLeaderLinePy.pyi => DrawLeaderLine.pyi} (59%) delete mode 100644 src/Mod/TechDraw/App/DrawLeaderLinePy.xml rename src/Mod/TechDraw/App/{DrawPagePy.pyi => DrawPage.pyi} (86%) delete mode 100644 src/Mod/TechDraw/App/DrawPagePy.xml rename src/Mod/TechDraw/App/{DrawParametricTemplatePy.pyi => DrawParametricTemplate.pyi} (67%) delete mode 100644 src/Mod/TechDraw/App/DrawParametricTemplatePy.xml rename src/Mod/TechDraw/App/{DrawProjGroupPy.pyi => DrawProjGroup.pyi} (85%) rename src/Mod/TechDraw/App/{DrawProjGroupItemPy.pyi => DrawProjGroupItem.pyi} (71%) delete mode 100644 src/Mod/TechDraw/App/DrawProjGroupItemPy.xml delete mode 100644 src/Mod/TechDraw/App/DrawProjGroupPy.xml rename src/Mod/TechDraw/App/{DrawRichAnnoPy.pyi => DrawRichAnno.pyi} (62%) delete mode 100644 src/Mod/TechDraw/App/DrawRichAnnoPy.xml rename src/Mod/TechDraw/App/{DrawSVGTemplatePy.pyi => DrawSVGTemplate.pyi} (82%) delete mode 100644 src/Mod/TechDraw/App/DrawSVGTemplatePy.xml rename src/Mod/TechDraw/App/{DrawTemplatePy.pyi => DrawTemplate.pyi} (52%) delete mode 100644 src/Mod/TechDraw/App/DrawTemplatePy.xml rename src/Mod/TechDraw/App/{DrawTilePy.pyi => DrawTile.pyi} (51%) delete mode 100644 src/Mod/TechDraw/App/DrawTilePy.xml rename src/Mod/TechDraw/App/{DrawTileWeldPy.pyi => DrawTileWeld.pyi} (61%) delete mode 100644 src/Mod/TechDraw/App/DrawTileWeldPy.xml rename src/Mod/TechDraw/App/{DrawViewPy.pyi => DrawView.pyi} (78%) rename src/Mod/TechDraw/App/{DrawViewAnnotationPy.pyi => DrawViewAnnotation.pyi} (60%) delete mode 100644 src/Mod/TechDraw/App/DrawViewAnnotationPy.xml rename src/Mod/TechDraw/App/{DrawViewClipPy.pyi => DrawViewClip.pyi} (73%) delete mode 100644 src/Mod/TechDraw/App/DrawViewClipPy.xml rename src/Mod/TechDraw/App/{DrawViewCollectionPy.pyi => DrawViewCollection.pyi} (76%) delete mode 100644 src/Mod/TechDraw/App/DrawViewCollectionPy.xml rename src/Mod/TechDraw/App/{DrawViewDimExtentPy.pyi => DrawViewDimExtent.pyi} (66%) delete mode 100644 src/Mod/TechDraw/App/DrawViewDimExtentPy.xml rename src/Mod/TechDraw/App/{DrawViewDimensionPy.pyi => DrawViewDimension.pyi} (86%) delete mode 100644 src/Mod/TechDraw/App/DrawViewDimensionPy.xml rename src/Mod/TechDraw/App/{DrawViewPartPy.pyi => DrawViewPart.pyi} (97%) delete mode 100644 src/Mod/TechDraw/App/DrawViewPartPy.xml delete mode 100644 src/Mod/TechDraw/App/DrawViewPy.xml rename src/Mod/TechDraw/App/{DrawViewSymbolPy.pyi => DrawViewSymbol.pyi} (70%) delete mode 100644 src/Mod/TechDraw/App/DrawViewSymbolPy.xml rename src/Mod/TechDraw/App/{DrawWeldSymbolPy.pyi => DrawWeldSymbol.pyi} (60%) delete mode 100644 src/Mod/TechDraw/App/DrawWeldSymbolPy.xml rename src/Mod/TechDraw/App/{GeomFormatPy.pyi => GeomFormat.pyi} (74%) delete mode 100644 src/Mod/TechDraw/App/GeomFormatPy.xml diff --git a/src/Mod/TechDraw/App/CMakeLists.txt b/src/Mod/TechDraw/App/CMakeLists.txt index 8546b1f6bc..20054a0cd3 100644 --- a/src/Mod/TechDraw/App/CMakeLists.txt +++ b/src/Mod/TechDraw/App/CMakeLists.txt @@ -32,62 +32,33 @@ list(APPEND TechDrawLIBS ${QtWidgets_LIBRARIES} ) -generate_from_xml(DrawPagePy) -generate_from_xml(DrawViewPy) -generate_from_xml(DrawViewPartPy) -generate_from_xml(DrawViewSymbolPy) -generate_from_xml(DrawTemplatePy) -generate_from_xml(DrawParametricTemplatePy) -generate_from_xml(DrawSVGTemplatePy) -generate_from_xml(DrawViewSymbolPy) -generate_from_xml(DrawViewClipPy) -generate_from_xml(DrawViewDimensionPy) -generate_from_xml(DrawViewDimExtentPy) -generate_from_xml(DrawHatchPy) -generate_from_xml(DrawGeomHatchPy) -generate_from_xml(DrawViewCollectionPy) -generate_from_xml(DrawProjGroupPy) -generate_from_xml(DrawProjGroupItemPy) -generate_from_xml(DrawViewAnnotationPy) -generate_from_xml(DrawLeaderLinePy) -generate_from_xml(DrawRichAnnoPy) -generate_from_xml(GeomFormatPy) -generate_from_xml(CenterLinePy) -generate_from_xml(CosmeticEdgePy) -generate_from_xml(CosmeticVertexPy) -generate_from_xml(DrawTilePy) -generate_from_xml(DrawTileWeldPy) -generate_from_xml(DrawWeldSymbolPy) -generate_from_xml(CosmeticExtensionPy) -generate_from_xml(DrawBrokenViewPy) - -generate_from_py_(DrawHatchPy) -generate_from_py_(DrawViewPy) -generate_from_py_(DrawPagePy) -generate_from_py_(DrawViewPartPy) -generate_from_py_(DrawViewSymbolPy) -generate_from_py_(DrawTemplatePy) -generate_from_py_(DrawParametricTemplatePy) -generate_from_py_(DrawSVGTemplatePy) -generate_from_py_(DrawViewClipPy) -generate_from_py_(DrawViewDimensionPy) -generate_from_py_(DrawViewDimExtentPy) -generate_from_py_(DrawGeomHatchPy) -generate_from_py_(DrawViewCollectionPy) -generate_from_py_(DrawProjGroupPy) -generate_from_py_(DrawProjGroupItemPy) -generate_from_py_(DrawViewAnnotationPy) -generate_from_py_(DrawLeaderLinePy) -generate_from_py_(DrawRichAnnoPy) -generate_from_py_(GeomFormatPy) -generate_from_py_(CenterLinePy) -generate_from_py_(CosmeticEdgePy) -generate_from_py_(CosmeticVertexPy) -generate_from_py_(DrawTilePy) -generate_from_py_(DrawTileWeldPy) -generate_from_py_(DrawWeldSymbolPy) -generate_from_py_(CosmeticExtensionPy) -generate_from_py_(DrawBrokenViewPy) +generate_from_py(DrawHatch) +generate_from_py(DrawView) +generate_from_py(DrawPage) +generate_from_py(DrawViewPart) +generate_from_py(DrawViewSymbol) +generate_from_py(DrawTemplate) +generate_from_py(DrawParametricTemplate) +generate_from_py(DrawSVGTemplate) +generate_from_py(DrawViewClip) +generate_from_py(DrawViewDimension) +generate_from_py(DrawViewDimExtent) +generate_from_py(DrawGeomHatch) +generate_from_py(DrawViewCollection) +generate_from_py(DrawProjGroup) +generate_from_py(DrawProjGroupItem) +generate_from_py(DrawViewAnnotation) +generate_from_py(DrawLeaderLine) +generate_from_py(DrawRichAnno) +generate_from_py(GeomFormat) +generate_from_py(CenterLine) +generate_from_py(CosmeticEdge) +generate_from_py(CosmeticVertex) +generate_from_py(DrawTile) +generate_from_py(DrawTileWeld) +generate_from_py(DrawWeldSymbol) +generate_from_py(CosmeticExtension) +generate_from_py(DrawBrokenView) SET(Draw_SRCS DrawPage.cpp @@ -237,59 +208,59 @@ SET(Geometry_SRCS ) SET(Python_SRCS - DrawPagePy.xml + DrawPage.pyi DrawPagePyImp.cpp - DrawViewPy.xml + DrawView.pyi DrawViewPyImp.cpp - DrawViewPartPy.xml + DrawViewPart.pyi DrawViewPartPyImp.cpp - DrawViewSymbolPy.xml + DrawViewSymbol.pyi DrawViewSymbolPyImp.cpp - DrawTemplatePy.xml + DrawTemplate.pyi DrawTemplatePyImp.cpp - DrawParametricTemplatePy.xml + DrawParametricTemplate.pyi DrawParametricTemplatePyImp.cpp - DrawSVGTemplatePy.xml + DrawSVGTemplate.pyi DrawSVGTemplatePyImp.cpp - DrawViewClipPy.xml + DrawViewClip.pyi DrawViewClipPyImp.cpp - DrawViewDimensionPy.xml + DrawViewDimension.pyi DrawViewDimensionPyImp.cpp - DrawViewDimExtentPy.xml + DrawViewDimExtent.pyi DrawViewDimExtentPyImp.cpp - DrawHatchPy.xml + DrawHatch.pyi DrawHatchPyImp.cpp - DrawGeomHatchPy.xml + DrawGeomHatch.pyi DrawGeomHatchPyImp.cpp - DrawViewCollectionPy.xml + DrawViewCollection.pyi DrawViewCollectionPyImp.cpp - DrawProjGroupPy.xml + DrawProjGroup.pyi DrawProjGroupPyImp.cpp - DrawProjGroupItemPy.xml + DrawProjGroupItem.pyi DrawProjGroupItemPyImp.cpp - DrawViewAnnotationPy.xml + DrawViewAnnotation.pyi DrawViewAnnotationPyImp.cpp - DrawLeaderLinePy.xml + DrawLeaderLine.pyi DrawLeaderLinePyImp.cpp - DrawRichAnnoPy.xml + DrawRichAnno.pyi DrawRichAnnoPyImp.cpp - GeomFormatPy.xml + GeomFormat.pyi GeomFormatPyImp.cpp - CenterLinePy.xml + CenterLine.pyi CenterLinePyImp.cpp - CosmeticEdgePy.xml + CosmeticEdge.pyi CosmeticEdgePyImp.cpp - CosmeticVertexPy.xml + CosmeticVertex.pyi CosmeticVertexPyImp.cpp - DrawTilePy.xml + DrawTile.pyi DrawTilePyImp.cpp - DrawTileWeldPy.xml + DrawTileWeld.pyi DrawTileWeldPyImp.cpp - DrawWeldSymbolPy.xml + DrawWeldSymbol.pyi DrawWeldSymbolPyImp.cpp - CosmeticExtensionPy.xml + CosmeticExtension.pyi CosmeticExtensionPyImp.cpp - DrawBrokenViewPy.xml + DrawBrokenView.pyi DrawBrokenViewPyImp.cpp ) diff --git a/src/Mod/TechDraw/App/CenterLinePy.pyi b/src/Mod/TechDraw/App/CenterLine.pyi similarity index 87% rename from src/Mod/TechDraw/App/CenterLinePy.pyi rename to src/Mod/TechDraw/App/CenterLine.pyi index 67cddea8a1..5d5af6a279 100644 --- a/src/Mod/TechDraw/App/CenterLinePy.pyi +++ b/src/Mod/TechDraw/App/CenterLine.pyi @@ -4,18 +4,12 @@ from Base.PyObjectBase import PyObjectBase from Base.Metadata import constmethod, export @export( - Father="PyObjectBase", - Name="CenterLinePy", - Twin="CenterLine", - TwinPointer="CenterLine", Include="Mod/TechDraw/App/CenterLine.h", Namespace="TechDraw", - FatherInclude="Base/PyObjectBase.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class CenterLinePy(PyObjectBase): +class CenterLine(PyObjectBase): """ CenterLine specifies additional mark up edges in a View """ diff --git a/src/Mod/TechDraw/App/CenterLinePy.xml b/src/Mod/TechDraw/App/CenterLinePy.xml deleted file mode 100644 index f3d90cf6ef..0000000000 --- a/src/Mod/TechDraw/App/CenterLinePy.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - CenterLine specifies additional mark up edges in a View - - - - Create a clone of this centerline - - - - - Create a copy of this centerline - - - - - Gives the tag of the CenterLine as string. - - - - - - 0 - face, 1 - 2 line, 2 - 2 point. - - - - - - 0 - vert/ 1 - horiz/ 2 - aligned. - - - - - - The appearance attributes (style, color, weight, visible) for this CenterLine. - - - - - - The left/right offset for this CenterLine. - - - - - - The up/down offset for this CenterLine. - - - - - - The rotation of the Centerline in degrees. - - - - - - The additional length to be added to this CenterLine. - - - - - - Reverse the order of points for 2 point CenterLine. - - - - - - The names of source edges for this CenterLine. - - - - - - The names of source Faces for this CenterLine. - - - - - - The names of source Points for this CenterLine. - - - - - diff --git a/src/Mod/TechDraw/App/CosmeticEdgePy.pyi b/src/Mod/TechDraw/App/CosmeticEdge.pyi similarity index 83% rename from src/Mod/TechDraw/App/CosmeticEdgePy.pyi rename to src/Mod/TechDraw/App/CosmeticEdge.pyi index 346d9f3fa0..e3738382f8 100644 --- a/src/Mod/TechDraw/App/CosmeticEdgePy.pyi +++ b/src/Mod/TechDraw/App/CosmeticEdge.pyi @@ -4,18 +4,13 @@ from Base.PyObjectBase import PyObjectBase from Base.Metadata import export @export( - Father="PyObjectBase", - Name="CosmeticEdgePy", - Twin="CosmeticEdge", - TwinPointer="CosmeticEdge", Include="Mod/TechDraw/App/Cosmetic.h", Namespace="TechDraw", FatherInclude="Base/GeometryPyCXX.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class CosmeticEdgePy(PyObjectBase): +class CosmeticEdge(PyObjectBase): """ CosmeticEdge specifies an extra (cosmetic) edge in Views """ diff --git a/src/Mod/TechDraw/App/CosmeticEdgePy.xml b/src/Mod/TechDraw/App/CosmeticEdgePy.xml deleted file mode 100644 index 502677ce1b..0000000000 --- a/src/Mod/TechDraw/App/CosmeticEdgePy.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - CosmeticEdge specifies an extra (cosmetic) edge in Views - - - - Gives the tag of the CosmeticEdge as string. - - - - - - - - - - - - Gives the position of one end of this CosmeticEdge as vector. - - - - - - Gives the position of one end of this CosmeticEdge as vector. - - - - - - Gives the position of center point of this CosmeticEdge as vector. - - - - - - Gives the radius of CosmeticEdge in mm. - - - - - - - - - - - - - - The appearance attributes (style, weight, color, visible) for this CosmeticEdge. - - - - - diff --git a/src/Mod/TechDraw/App/CosmeticExtension.pyi b/src/Mod/TechDraw/App/CosmeticExtension.pyi new file mode 100644 index 0000000000..f8608e676d --- /dev/null +++ b/src/Mod/TechDraw/App/CosmeticExtension.pyi @@ -0,0 +1,12 @@ +from Base.Metadata import export + +from App.DocumentObjectExtension import DocumentObjectExtension + +@export( + Include="Mod/TechDraw/App/CosmeticExtension.h", + Namespace="TechDraw", +) +class CosmeticExtension(DocumentObjectExtension): + """ + This object represents cosmetic features for a DrawViewPart. + """ diff --git a/src/Mod/TechDraw/App/CosmeticExtensionPy.pyi b/src/Mod/TechDraw/App/CosmeticExtensionPy.pyi deleted file mode 100644 index 0756427c91..0000000000 --- a/src/Mod/TechDraw/App/CosmeticExtensionPy.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from Base.Metadata import export - -from App.DocumentObjectExtension import DocumentObjectExtension - -@export( - Father="DocumentObjectExtensionPy", - Name="CosmeticExtensionPy", - Twin="CosmeticExtension", - TwinPointer="CosmeticExtension", - Include="Mod/TechDraw/App/CosmeticExtension.h", - Namespace="TechDraw", - FatherInclude="App/DocumentObjectExtensionPy.h", - FatherNamespace="App", -) -class CosmeticExtensionPy(DocumentObjectExtension): - """ - This object represents cosmetic features for a DrawViewPart. - """ diff --git a/src/Mod/TechDraw/App/CosmeticExtensionPy.xml b/src/Mod/TechDraw/App/CosmeticExtensionPy.xml deleted file mode 100644 index 1d18c28ca4..0000000000 --- a/src/Mod/TechDraw/App/CosmeticExtensionPy.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - This object represents cosmetic features for a DrawViewPart. - - - diff --git a/src/Mod/TechDraw/App/CosmeticVertexPy.pyi b/src/Mod/TechDraw/App/CosmeticVertex.pyi similarity index 81% rename from src/Mod/TechDraw/App/CosmeticVertexPy.pyi rename to src/Mod/TechDraw/App/CosmeticVertex.pyi index d0f508042c..ab9fd8c9d5 100644 --- a/src/Mod/TechDraw/App/CosmeticVertexPy.pyi +++ b/src/Mod/TechDraw/App/CosmeticVertex.pyi @@ -4,18 +4,12 @@ from Base.PyObjectBase import PyObjectBase from Base.Metadata import constmethod, export @export( - Father="PyObjectBase", - Name="CosmeticVertexPy", - Twin="CosmeticVertex", - TwinPointer="CosmeticVertex", Include="Mod/TechDraw/App/Cosmetic.h", Namespace="TechDraw", - FatherInclude="Base/PyObjectBase.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class CosmeticVertexPy(PyObjectBase): +class CosmeticVertex(PyObjectBase): """ CosmeticVertex specifies an extra (cosmetic) vertex in Views """ diff --git a/src/Mod/TechDraw/App/CosmeticVertexPy.xml b/src/Mod/TechDraw/App/CosmeticVertexPy.xml deleted file mode 100644 index 038ebbcd40..0000000000 --- a/src/Mod/TechDraw/App/CosmeticVertexPy.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - CosmeticVertex specifies an extra (cosmetic) vertex in Views - - - - Create a clone of this CosmeticVertex - - - - - Create a copy of this CosmeticVertex - - - - - Gives the tag of the CosmeticVertex as string. - - - - - - Gives the position of this CosmeticVertex as vector. - - - - - - Show/hide the vertex. - - - - - - set/return the vertex's colour using a tuple (rgba). - - - - - - set/return the vertex's radius in mm. - - - - - - set/return the vertex's style as integer. - - - - - diff --git a/src/Mod/TechDraw/App/DrawBrokenViewPy.pyi b/src/Mod/TechDraw/App/DrawBrokenView.pyi similarity index 82% rename from src/Mod/TechDraw/App/DrawBrokenViewPy.pyi rename to src/Mod/TechDraw/App/DrawBrokenView.pyi index bea3460a3b..75990e5573 100644 --- a/src/Mod/TechDraw/App/DrawBrokenViewPy.pyi +++ b/src/Mod/TechDraw/App/DrawBrokenView.pyi @@ -4,16 +4,11 @@ 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): +class DrawBrokenView(DrawViewPart): """ Feature for creating and manipulating Technical Drawing broken views """ diff --git a/src/Mod/TechDraw/App/DrawBrokenViewPy.xml b/src/Mod/TechDraw/App/DrawBrokenViewPy.xml deleted file mode 100644 index 3bed6978b9..0000000000 --- a/src/Mod/TechDraw/App/DrawBrokenViewPy.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing broken views - - - - point2d = mapPoint3dToView(point3d) - returns the position of the 3d point within the broken view. - - - - - point2d = mapPoint2dFromView(point3d) - returns the position of the 2d point within an unbroken view. - - - - - point3d = getCompressedCenter() - returns the geometric center of the source shapes after break cuts and gap compression. - - - - - diff --git a/src/Mod/TechDraw/App/DrawGeomHatchPy.pyi b/src/Mod/TechDraw/App/DrawGeomHatch.pyi similarity index 69% rename from src/Mod/TechDraw/App/DrawGeomHatchPy.pyi rename to src/Mod/TechDraw/App/DrawGeomHatch.pyi index 33fa33eae9..3336b2ea4b 100644 --- a/src/Mod/TechDraw/App/DrawGeomHatchPy.pyi +++ b/src/Mod/TechDraw/App/DrawGeomHatch.pyi @@ -4,16 +4,10 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject @export( - Father="DocumentObjectPy", - Name="DrawGeomHatchPy", - Twin="DrawGeomHatch", - TwinPointer="DrawGeomHatch", Include="Mod/TechDraw/App/DrawGeomHatch.h", Namespace="TechDraw", - FatherInclude="App/DocumentObjectPy.h", - FatherNamespace="App", ) -class DrawGeomHatchPy(DocumentObject): +class DrawGeomHatch(DocumentObject): """ Feature for creating and manipulating Technical Drawing GeomHatch areas """ diff --git a/src/Mod/TechDraw/App/DrawGeomHatchPy.xml b/src/Mod/TechDraw/App/DrawGeomHatchPy.xml deleted file mode 100644 index 5102c35aed..0000000000 --- a/src/Mod/TechDraw/App/DrawGeomHatchPy.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing GeomHatch areas - - - - translateLabel(translationContext, objectBaseName, objectUniqueName). -No return value. Replace the current label with a translated version where possible. - - - - - - diff --git a/src/Mod/TechDraw/App/DrawHatchPy.pyi b/src/Mod/TechDraw/App/DrawHatch.pyi similarity index 70% rename from src/Mod/TechDraw/App/DrawHatchPy.pyi rename to src/Mod/TechDraw/App/DrawHatch.pyi index b20e0e95cf..8f964b5091 100644 --- a/src/Mod/TechDraw/App/DrawHatchPy.pyi +++ b/src/Mod/TechDraw/App/DrawHatch.pyi @@ -3,16 +3,10 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject @export( - Father="DocumentObjectPy", - Name="DrawHatchPy", - Twin="DrawHatch", - TwinPointer="DrawHatch", Include="Mod/TechDraw/App/DrawHatch.h", Namespace="TechDraw", - FatherInclude="App/DocumentObjectPy.h", - FatherNamespace="App", ) -class DrawHatchPy(DocumentObject): +class DrawHatch(DocumentObject): """ Feature for creating and manipulating Technical Drawing Hatch areas """ diff --git a/src/Mod/TechDraw/App/DrawHatchPy.xml b/src/Mod/TechDraw/App/DrawHatchPy.xml deleted file mode 100644 index a88d174cc9..0000000000 --- a/src/Mod/TechDraw/App/DrawHatchPy.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing Hatch areas - - - - translateLabel(translationContext, objectBaseName, objectUniqueName). -No return value. Replace the current label with a translated version where possible. - - - - - - diff --git a/src/Mod/TechDraw/App/DrawLeaderLinePy.pyi b/src/Mod/TechDraw/App/DrawLeaderLine.pyi similarity index 59% rename from src/Mod/TechDraw/App/DrawLeaderLinePy.pyi rename to src/Mod/TechDraw/App/DrawLeaderLine.pyi index a25a5b0dfb..216b0a8dff 100644 --- a/src/Mod/TechDraw/App/DrawLeaderLinePy.pyi +++ b/src/Mod/TechDraw/App/DrawLeaderLine.pyi @@ -2,16 +2,11 @@ from Base.Metadata import export from DrawView import DrawView @export( - Father="DrawViewPy", - Name="DrawLeaderLinePy", - Twin="DrawLeaderLine", - TwinPointer="DrawLeaderLine", Include="Mod/TechDraw/App/DrawLeaderLine.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawViewPy.h", - FatherNamespace="TechDraw", ) -class DrawLeaderLinePy(DrawView): +class DrawLeaderLine(DrawView): """ Feature for adding leaders to Technical Drawings """ diff --git a/src/Mod/TechDraw/App/DrawLeaderLinePy.xml b/src/Mod/TechDraw/App/DrawLeaderLinePy.xml deleted file mode 100644 index f439a241cd..0000000000 --- a/src/Mod/TechDraw/App/DrawLeaderLinePy.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Feature for adding leaders to Technical Drawings - - - - diff --git a/src/Mod/TechDraw/App/DrawPagePy.pyi b/src/Mod/TechDraw/App/DrawPage.pyi similarity index 86% rename from src/Mod/TechDraw/App/DrawPagePy.pyi rename to src/Mod/TechDraw/App/DrawPage.pyi index 33f33dd1f9..a929df45b6 100644 --- a/src/Mod/TechDraw/App/DrawPagePy.pyi +++ b/src/Mod/TechDraw/App/DrawPage.pyi @@ -4,16 +4,10 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject @export( - Father="DocumentObjectPy", - Name="DrawPagePy", - Twin="DrawPage", - TwinPointer="DrawPage", Include="Mod/TechDraw/App/DrawPage.h", Namespace="TechDraw", - FatherInclude="App/DocumentObjectPy.h", - FatherNamespace="App", ) -class DrawPagePy(DocumentObject): +class DrawPage(DocumentObject): """ Feature for creating and manipulating Technical Drawing Pages """ diff --git a/src/Mod/TechDraw/App/DrawPagePy.xml b/src/Mod/TechDraw/App/DrawPagePy.xml deleted file mode 100644 index db6d79bd2d..0000000000 --- a/src/Mod/TechDraw/App/DrawPagePy.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing Pages - - - - addView(DrawView) - Add a View to this Page - - - - - removeView(DrawView) - Remove a View to this Page - - - - - getViews() - returns a list of all the views on page excluding Views inside Collections - - - - - getAllViews() - returns a list of all the views on page including Views inside Collections - - - - - translateLabel(translationContext, objectBaseName, objectUniqueName). -No return value. Replace the current label with a translated version where possible. - - - - - - Returns the width of this page - - - - - - Returns the height of this page - - - - - - Returns the orientation of this page - - - - - - Ask the Gui to redraw this page - - - - - diff --git a/src/Mod/TechDraw/App/DrawParametricTemplatePy.pyi b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi similarity index 67% rename from src/Mod/TechDraw/App/DrawParametricTemplatePy.pyi rename to src/Mod/TechDraw/App/DrawParametricTemplate.pyi index fc105c115f..8447884185 100644 --- a/src/Mod/TechDraw/App/DrawParametricTemplatePy.pyi +++ b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi @@ -4,16 +4,11 @@ from Base.Metadata import export from DrawTemplate import DrawTemplate @export( - Father="DrawTemplatePy", - Name="DrawParametricTemplatePy", - Twin="DrawParametricTemplate", - TwinPointer="DrawParametricTemplate", Include="Mod/TechDraw/App/DrawParametricTemplate.h", Namespace="TechDraw", FatherInclude="DrawTemplatePy.h", - FatherNamespace="TechDraw", ) -class DrawParametricTemplatePy(DrawTemplate): +class DrawParametricTemplate(DrawTemplate): """ Feature for creating and manipulating Technical Drawing Templates """ diff --git a/src/Mod/TechDraw/App/DrawParametricTemplatePy.xml b/src/Mod/TechDraw/App/DrawParametricTemplatePy.xml deleted file mode 100644 index 2f8c7388b9..0000000000 --- a/src/Mod/TechDraw/App/DrawParametricTemplatePy.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing Templates - - - - Draw a line - - - - - Number of geometry in template - - - - - diff --git a/src/Mod/TechDraw/App/DrawProjGroupPy.pyi b/src/Mod/TechDraw/App/DrawProjGroup.pyi similarity index 85% rename from src/Mod/TechDraw/App/DrawProjGroupPy.pyi rename to src/Mod/TechDraw/App/DrawProjGroup.pyi index c5cb16d40f..789daae7d1 100644 --- a/src/Mod/TechDraw/App/DrawProjGroupPy.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroup.pyi @@ -4,16 +4,11 @@ from Base.Metadata import export from TechDraw.DrawViewCollection import DrawViewCollection @export( - Father="DrawViewCollectionPy", - Name="DrawProjGroupPy", - Twin="DrawProjGroup", - TwinPointer="DrawProjGroup", Include="Mod/TechDraw/App/DrawProjGroup.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawViewCollectionPy.h", - FatherNamespace="TechDraw", ) -class DrawProjGroupPy(DrawViewCollection): +class DrawProjGroup(DrawViewCollection): """ Feature for creating and manipulating Technical Drawing Projection Groups """ diff --git a/src/Mod/TechDraw/App/DrawProjGroupItemPy.pyi b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi similarity index 71% rename from src/Mod/TechDraw/App/DrawProjGroupItemPy.pyi rename to src/Mod/TechDraw/App/DrawProjGroupItem.pyi index 1639c1a507..38e3712e6e 100644 --- a/src/Mod/TechDraw/App/DrawProjGroupItemPy.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi @@ -4,16 +4,11 @@ from Base.Metadata import export from TechDraw.DrawViewPart import DrawViewPart @export( - Father="DrawViewPartPy", - Name="DrawProjGroupItemPy", - Twin="DrawProjGroupItem", - TwinPointer="DrawProjGroupItem", Include="Mod/TechDraw/App/DrawProjGroupItem.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawViewPartPy.h", - FatherNamespace="TechDraw", ) -class DrawProjGroupItemPy(DrawViewPart): +class DrawProjGroupItem(DrawViewPart): """ Feature for creating and manipulating component Views Technical Drawing Projection Groups """ diff --git a/src/Mod/TechDraw/App/DrawProjGroupItemPy.xml b/src/Mod/TechDraw/App/DrawProjGroupItemPy.xml deleted file mode 100644 index bcb9e93f13..0000000000 --- a/src/Mod/TechDraw/App/DrawProjGroupItemPy.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Feature for creating and manipulating component Views Technical Drawing Projection Groups - - - - autoPosition() - Move to AutoDistribute/Unlocked position on Page. Returns none. - - - - - diff --git a/src/Mod/TechDraw/App/DrawProjGroupPy.xml b/src/Mod/TechDraw/App/DrawProjGroupPy.xml deleted file mode 100644 index 812029b7f5..0000000000 --- a/src/Mod/TechDraw/App/DrawProjGroupPy.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing Projection Groups - - - - addProjection(string projectionType) - Add a new Projection Item to this Group. Returns DocObj. - - - - - removeProjection(string projectionType) - Remove specified Projection Item from this Group. Returns int number of views in Group. - - - - - purgeProjections() - Remove all Projection Items from this Group. Returns int number of views in Group (0). - - - - - getItemByLabel(string projectionType) - return specified Projection Item - - - - - getXYPosition(string projectionType) - return the AutoDistribute position for specified Projection Item - - - - - diff --git a/src/Mod/TechDraw/App/DrawRichAnnoPy.pyi b/src/Mod/TechDraw/App/DrawRichAnno.pyi similarity index 62% rename from src/Mod/TechDraw/App/DrawRichAnnoPy.pyi rename to src/Mod/TechDraw/App/DrawRichAnno.pyi index f4f4fed40e..b6892a6acd 100644 --- a/src/Mod/TechDraw/App/DrawRichAnnoPy.pyi +++ b/src/Mod/TechDraw/App/DrawRichAnno.pyi @@ -2,16 +2,11 @@ from Base.Metadata import export from TechDraw.DrawView import DrawView @export( - Father="DrawViewPy", - Name="DrawRichAnnoPy", - Twin="DrawRichAnno", - TwinPointer="DrawRichAnno", Include="Mod/TechDraw/App/DrawRichAnno.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawViewPy.h", - FatherNamespace="TechDraw", ) -class DrawRichAnnoPy(DrawView): +class DrawRichAnno(DrawView): """ Feature for adding rich annotation blocks to Technical Drawings """ diff --git a/src/Mod/TechDraw/App/DrawRichAnnoPy.xml b/src/Mod/TechDraw/App/DrawRichAnnoPy.xml deleted file mode 100644 index 5b8111b6e8..0000000000 --- a/src/Mod/TechDraw/App/DrawRichAnnoPy.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Feature for adding rich annotation blocks to Technical Drawings - - - - diff --git a/src/Mod/TechDraw/App/DrawSVGTemplatePy.pyi b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi similarity index 82% rename from src/Mod/TechDraw/App/DrawSVGTemplatePy.pyi rename to src/Mod/TechDraw/App/DrawSVGTemplate.pyi index 445ea12961..40b1566e01 100644 --- a/src/Mod/TechDraw/App/DrawSVGTemplatePy.pyi +++ b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi @@ -4,16 +4,11 @@ from Base.Metadata import export from DrawTemplate import DrawTemplate @export( - Father="DrawTemplatePy", - Name="DrawSVGTemplatePy", - Twin="DrawSVGTemplate", - TwinPointer="DrawSVGTemplate", Include="Mod/TechDraw/App/DrawSVGTemplate.h", Namespace="TechDraw", FatherInclude="DrawTemplatePy.h", - FatherNamespace="TechDraw", ) -class DrawSVGTemplatePy(DrawTemplate): +class DrawSVGTemplate(DrawTemplate): """ Feature for creating and manipulating Technical Drawing SVG Templates """ diff --git a/src/Mod/TechDraw/App/DrawSVGTemplatePy.xml b/src/Mod/TechDraw/App/DrawSVGTemplatePy.xml deleted file mode 100644 index 9ef9701824..0000000000 --- a/src/Mod/TechDraw/App/DrawSVGTemplatePy.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing SVG Templates - - - - getEditFieldContent(EditFieldName) - returns the content of a specific Editable Text Field - - - - - setEditFieldContent(EditFieldName, NewContent) - sets a specific Editable Text Field to a new value - - - - - translateLabel(translationContext, objectBaseName, objectUniqueName). -No return value. Replace the current label with a translated version where possible. - - - - - diff --git a/src/Mod/TechDraw/App/DrawTemplatePy.pyi b/src/Mod/TechDraw/App/DrawTemplate.pyi similarity index 52% rename from src/Mod/TechDraw/App/DrawTemplatePy.pyi rename to src/Mod/TechDraw/App/DrawTemplate.pyi index dfbf810397..bb66893593 100644 --- a/src/Mod/TechDraw/App/DrawTemplatePy.pyi +++ b/src/Mod/TechDraw/App/DrawTemplate.pyi @@ -3,16 +3,10 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject @export( - Father="DocumentObjectPy", - Name="DrawTemplatePy", - Twin="DrawTemplate", - TwinPointer="DrawTemplate", Include="Mod/TechDraw/App/DrawTemplate.h", Namespace="TechDraw", - FatherInclude="App/DocumentObjectPy.h", - FatherNamespace="App", ) -class DrawTemplatePy(DocumentObject): +class DrawTemplate(DocumentObject): """ Feature for creating and manipulating Technical Drawing Templates """ diff --git a/src/Mod/TechDraw/App/DrawTemplatePy.xml b/src/Mod/TechDraw/App/DrawTemplatePy.xml deleted file mode 100644 index 16a9b300e1..0000000000 --- a/src/Mod/TechDraw/App/DrawTemplatePy.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing Templates - - - diff --git a/src/Mod/TechDraw/App/DrawTilePy.pyi b/src/Mod/TechDraw/App/DrawTile.pyi similarity index 51% rename from src/Mod/TechDraw/App/DrawTilePy.pyi rename to src/Mod/TechDraw/App/DrawTile.pyi index 6fd272c2b2..973dccce21 100644 --- a/src/Mod/TechDraw/App/DrawTilePy.pyi +++ b/src/Mod/TechDraw/App/DrawTile.pyi @@ -3,16 +3,10 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject @export( - Father="DocumentObjectPy", - Name="DrawTilePy", - Twin="DrawTile", - TwinPointer="DrawTile", Include="Mod/TechDraw/App/DrawTile.h", Namespace="TechDraw", - FatherInclude="App/DocumentObjectPy.h", - FatherNamespace="App", ) -class DrawTilePy(DocumentObject): +class DrawTile(DocumentObject): """ Feature for adding tiles to leader lines """ diff --git a/src/Mod/TechDraw/App/DrawTilePy.xml b/src/Mod/TechDraw/App/DrawTilePy.xml deleted file mode 100644 index c0a466bd90..0000000000 --- a/src/Mod/TechDraw/App/DrawTilePy.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Feature for adding tiles to leader lines - - - - diff --git a/src/Mod/TechDraw/App/DrawTileWeldPy.pyi b/src/Mod/TechDraw/App/DrawTileWeld.pyi similarity index 61% rename from src/Mod/TechDraw/App/DrawTileWeldPy.pyi rename to src/Mod/TechDraw/App/DrawTileWeld.pyi index 2a8bcf3c47..1269aeaed9 100644 --- a/src/Mod/TechDraw/App/DrawTileWeldPy.pyi +++ b/src/Mod/TechDraw/App/DrawTileWeld.pyi @@ -2,16 +2,11 @@ from Base.Metadata import export from TechDraw.DrawTile import DrawTile @export( - Father="DrawTilePy", - Name="DrawTileWeldPy", - Twin="DrawTileWeld", - TwinPointer="DrawTileWeld", Include="Mod/TechDraw/App/DrawTileWeld.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawTilePy.h", - FatherNamespace="TechDraw", ) -class DrawTileWeldPy(DrawTile): +class DrawTileWeld(DrawTile): """ Feature for adding welding tiles to leader lines """ diff --git a/src/Mod/TechDraw/App/DrawTileWeldPy.xml b/src/Mod/TechDraw/App/DrawTileWeldPy.xml deleted file mode 100644 index a93e13ef0a..0000000000 --- a/src/Mod/TechDraw/App/DrawTileWeldPy.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Feature for adding welding tiles to leader lines - - - - diff --git a/src/Mod/TechDraw/App/DrawViewPy.pyi b/src/Mod/TechDraw/App/DrawView.pyi similarity index 78% rename from src/Mod/TechDraw/App/DrawViewPy.pyi rename to src/Mod/TechDraw/App/DrawView.pyi index 1ce4ce3940..60a3549e89 100644 --- a/src/Mod/TechDraw/App/DrawViewPy.pyi +++ b/src/Mod/TechDraw/App/DrawView.pyi @@ -5,16 +5,10 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject @export( - Father="DocumentObjectPy", - Name="DrawViewPy", - Twin="DrawView", - TwinPointer="DrawView", Include="Mod/TechDraw/App/DrawView.h", Namespace="TechDraw", - FatherInclude="App/DocumentObjectPy.h", - FatherNamespace="App", ) -class DrawViewPy(DocumentObject): +class DrawView(DocumentObject): """ Feature for creating and manipulating Technical Drawing Views """ diff --git a/src/Mod/TechDraw/App/DrawViewAnnotationPy.pyi b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi similarity index 60% rename from src/Mod/TechDraw/App/DrawViewAnnotationPy.pyi rename to src/Mod/TechDraw/App/DrawViewAnnotation.pyi index adb71d3b33..17bebc8550 100644 --- a/src/Mod/TechDraw/App/DrawViewAnnotationPy.pyi +++ b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi @@ -2,16 +2,11 @@ from Base.Metadata import export from TechDraw.Drawview import DrawView @export( - Father="DrawViewPy", - Name="DrawViewAnnotationPy", - Twin="DrawViewAnnotation", - TwinPointer="DrawViewAnnotation", Include="Mod/TechDraw/App/DrawViewAnnotation.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawViewPy.h", - FatherNamespace="TechDraw", ) -class DrawViewAnnotationPy(DrawView): +class DrawViewAnnotation(DrawView): """ Feature for creating and manipulating Technical Drawing Annotation Views """ diff --git a/src/Mod/TechDraw/App/DrawViewAnnotationPy.xml b/src/Mod/TechDraw/App/DrawViewAnnotationPy.xml deleted file mode 100644 index 82a92ea422..0000000000 --- a/src/Mod/TechDraw/App/DrawViewAnnotationPy.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing Annotation Views - - - - diff --git a/src/Mod/TechDraw/App/DrawViewClipPy.pyi b/src/Mod/TechDraw/App/DrawViewClip.pyi similarity index 73% rename from src/Mod/TechDraw/App/DrawViewClipPy.pyi rename to src/Mod/TechDraw/App/DrawViewClip.pyi index 0245b557a1..1557e5ef6c 100644 --- a/src/Mod/TechDraw/App/DrawViewClipPy.pyi +++ b/src/Mod/TechDraw/App/DrawViewClip.pyi @@ -4,16 +4,11 @@ from Base.Metadata import export from TechDraw.DrawView import DrawView @export( - Father="DrawViewPy", - Name="DrawViewClipPy", - Twin="DrawViewClip", - TwinPointer="DrawViewClip", Include="Mod/TechDraw/App/DrawViewClip.h", Namespace="TechDraw", - FatherInclude="Mod/TechDraw/App/DrawViewPy.h", - FatherNamespace="TechDraw", + FatherInclude="Mod/TechDraw/App/DrawViewPy.h", ) -class DrawViewClipPy(DrawView): +class DrawViewClip(DrawView): """ Feature for creating and manipulating Technical Drawing Clip Views """ diff --git a/src/Mod/TechDraw/App/DrawViewClipPy.xml b/src/Mod/TechDraw/App/DrawViewClipPy.xml deleted file mode 100644 index 4345248785..0000000000 --- a/src/Mod/TechDraw/App/DrawViewClipPy.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing Clip Views - - - - addView(DrawView) - Add a View to this ClipView - - - - - removeView(DrawView) - Remove specified View to this ClipView - - - - - getChildViewNames() - get a list of the DrawViews in this ClipView - - - - - diff --git a/src/Mod/TechDraw/App/DrawViewCollectionPy.pyi b/src/Mod/TechDraw/App/DrawViewCollection.pyi similarity index 76% rename from src/Mod/TechDraw/App/DrawViewCollectionPy.pyi rename to src/Mod/TechDraw/App/DrawViewCollection.pyi index 6852681b7f..0e558016c2 100644 --- a/src/Mod/TechDraw/App/DrawViewCollectionPy.pyi +++ b/src/Mod/TechDraw/App/DrawViewCollection.pyi @@ -4,16 +4,11 @@ from Base.Metadata import export from TechDraw.DrawView import DrawView @export( - Father="DrawViewPy", - Name="DrawViewCollectionPy", - Twin="DrawViewCollection", - TwinPointer="DrawViewCollection", Include="Mod/TechDraw/App/DrawViewCollection.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawViewPy.h", - FatherNamespace="TechDraw", ) -class DrawViewCollectionPy(DrawView): +class DrawViewCollection(DrawView): """ Feature for creating and manipulating Technical Drawing View Collections """ diff --git a/src/Mod/TechDraw/App/DrawViewCollectionPy.xml b/src/Mod/TechDraw/App/DrawViewCollectionPy.xml deleted file mode 100644 index ded644e4b3..0000000000 --- a/src/Mod/TechDraw/App/DrawViewCollectionPy.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing View Collections - - - - addView(DrawView object) - Add a new View to this Group. Returns count of views. - - - - - removeView(DrawView object) - Remove specified Viewfrom this Group. Returns count of views in Group. - - - - - diff --git a/src/Mod/TechDraw/App/DrawViewDimExtentPy.pyi b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi similarity index 66% rename from src/Mod/TechDraw/App/DrawViewDimExtentPy.pyi rename to src/Mod/TechDraw/App/DrawViewDimExtent.pyi index a2149365e9..af65c4ba97 100644 --- a/src/Mod/TechDraw/App/DrawViewDimExtentPy.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi @@ -4,16 +4,11 @@ from Base.Metadata import export from TechDraw.DrawViewDimension import DrawViewDimension @export( - Father="DrawViewDimensionPy", - Name="DrawViewDimExtentPy", - Twin="DrawViewDimExtent", - TwinPointer="DrawViewDimExtent", Include="Mod/TechDraw/App/DrawViewDimExtent.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawViewDimensionPy.h", - FatherNamespace="TechDraw", ) -class DrawViewDimExtentPy(DrawViewDimension): +class DrawViewDimExtent(DrawViewDimension): """ Feature for creating and manipulating Technical Drawing DimExtents """ diff --git a/src/Mod/TechDraw/App/DrawViewDimExtentPy.xml b/src/Mod/TechDraw/App/DrawViewDimExtentPy.xml deleted file mode 100644 index 804d2c75da..0000000000 --- a/src/Mod/TechDraw/App/DrawViewDimExtentPy.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing DimExtents - - - - tbd() - returns tbd. - - - - - diff --git a/src/Mod/TechDraw/App/DrawViewDimensionPy.pyi b/src/Mod/TechDraw/App/DrawViewDimension.pyi similarity index 86% rename from src/Mod/TechDraw/App/DrawViewDimensionPy.pyi rename to src/Mod/TechDraw/App/DrawViewDimension.pyi index 207e32ec1e..0abe5c3857 100644 --- a/src/Mod/TechDraw/App/DrawViewDimensionPy.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimension.pyi @@ -4,16 +4,11 @@ from Base.Metadata import export from TechDraw.DrawView import DrawView @export( - Father="DrawViewPy", - Name="DrawViewDimensionPy", - Twin="DrawViewDimension", - TwinPointer="DrawViewDimension", Include="Mod/TechDraw/App/DrawViewDimension.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawViewPy.h", - FatherNamespace="TechDraw", ) -class DrawViewDimensionPy(DrawView): +class DrawViewDimension(DrawView): """ Feature for creating and manipulating Technical Drawing Dimensions """ diff --git a/src/Mod/TechDraw/App/DrawViewDimensionPy.xml b/src/Mod/TechDraw/App/DrawViewDimensionPy.xml deleted file mode 100644 index 62ca01526e..0000000000 --- a/src/Mod/TechDraw/App/DrawViewDimensionPy.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing Dimensions - - - - getRawValue() - returns Dimension value in mm. - - - - - getText() - returns Dimension text. - - - - - getLinearPoints() - returns list of points for linear Dimension - - - - - getArcPoints() - returns list of points for circle/arc Dimension - - - - - getAnglePoints() - returns list of points for angle Dimension - - - - - getAreaPoints() - returns list of values (center, filled area, actual area) for area Dimension. - - - - - getArrowPositions() - returns list of locations or Dimension Arrowheads. Locations are in unscaled coordinates of parent View - - - - - diff --git a/src/Mod/TechDraw/App/DrawViewPartPy.pyi b/src/Mod/TechDraw/App/DrawViewPart.pyi similarity index 97% rename from src/Mod/TechDraw/App/DrawViewPartPy.pyi rename to src/Mod/TechDraw/App/DrawViewPart.pyi index f42b16f290..60c9a073b6 100644 --- a/src/Mod/TechDraw/App/DrawViewPartPy.pyi +++ b/src/Mod/TechDraw/App/DrawViewPart.pyi @@ -4,16 +4,11 @@ from Base.Metadata import export from TechDraw.rawView import DrawView @export( - Father="DrawViewPy", - Name="DrawViewPartPy", - Twin="DrawViewPart", - TwinPointer="DrawViewPart", Include="Mod/TechDraw/App/DrawViewPart.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawViewPy.h", - FatherNamespace="TechDraw", ) -class DrawViewPartPy(DrawView): +class DrawViewPart(DrawView): """ Feature for creating and manipulating Technical Drawing Part Views """ diff --git a/src/Mod/TechDraw/App/DrawViewPartPy.xml b/src/Mod/TechDraw/App/DrawViewPartPy.xml deleted file mode 100644 index 6ffc963e7f..0000000000 --- a/src/Mod/TechDraw/App/DrawViewPartPy.xml +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing Part Views - - - - getVisibleEdges([conventionalCoords]) - get the visible edges in the View as Part::TopoShapeEdges. Edges are returned -in conventional coordinates if conventionalCoords is True. The default is to return Qt inverted Y coordinates. - - - - - getVisibleVertexes() - get the visible vertexes as App.Vector in the View's coordinate system. App.Vectors are returned -in conventional coordinates if conventionalCoords is True. The default is to return Qt inverted Y coordinates. - - - - - getHiddenEdges([conventionalCoords]) - get the hidden edges in the View as Part::TopoShapeEdges. Edges are returned -in conventional coordinates if conventionalCoords is True. The default is to return Qt inverted Y coordinates. - - - - - getHiddenVertexes() - get the hidden vertexes as App.Vector in the View's coordinate system. App.Vectors are returned -in conventional coordinates if conventionalCoords is True. The default is to return Qt inverted Y coordinates. - - - - - id = makeCosmeticVertex(p1) - add a CosmeticVertex at p1 (View coordinates). Returns unique id vertex. - - - - - id = makeCosmeticVertex3d(p1) - add a CosmeticVertex at p1 (3d model coordinates). Returns unique id vertex. - - - - - cv = getCosmeticVertex(id) - returns CosmeticVertex with unique id. - - - - - cv = getCosmeticVertexBySelection(name) - returns CosmeticVertex with name (Vertex6). Used in selections. - - - - - removeCosmeticVertex(cv) - remove CosmeticVertex from View. Returns None. - - - - - clearCosmeticVertices() - remove all CosmeticVertices from the View. Returns None. - - - - - tag = makeCosmeticLine(p1, p2) - add a CosmeticEdge from p1 to p2(View coordinates). Returns tag of new CosmeticEdge. - - - - - tag = makeCosmeticLine3D(p1, p2) - add a CosmeticEdge from p1 to p2(3D coordinates). Returns tag of new CosmeticEdge. - - - - - tag = makeCosmeticCircle(center, radius) - add a CosmeticEdge at center with radius radius(View coordinates). Returns tag of new CosmeticEdge. - - - - - tag = makeCosmeticCircleArc(center, radius, start, end) - add a CosmeticEdge at center with radius radius(View coordinates) from start angle to end angle. Returns tag of new CosmeticEdge. - - - - - tag = makeCosmeticCircle3d(center, radius) - add a CosmeticEdge at center (3d point) with radius. Returns tag of new CosmeticEdge. - - - - - tag = makeCosmeticCircleArc3d(center, radius, start, end) - add a CosmeticEdge at center (3d point) with radius from start angle to end angle. Returns tag of new CosmeticEdge. - - - - - ce = getCosmeticEdge(id) - returns CosmeticEdge with unique id. - - - - - ce = getCosmeticEdgeBySelection(name) - returns CosmeticEdge by name (Edge25). Used in selections - - - - - removeCosmeticEdge(ce) - remove CosmeticEdge ce from View. Returns None. - - - - - makeCenterLine(subNames, mode) - draw a center line on this viewPart. SubNames is a list of n Faces, 2 Edges or 2 Vertices (ex [Face1,Face2,Face3]. Returns unique tag of added CenterLine. - - - - - cl = getCenterLine(id) - returns CenterLine with unique id. - - - - - cl = getCenterLineBySelection(name) - returns CenterLine by name (Edge25). Used in selections - - - - - removeCenterLine(cl) - remove CenterLine cl from View. Returns None. - - - - - clearCosmeticEdges() - remove all CosmeticLines from the View. Returns None. - - - - - clearCenterLines() - remove all CenterLines from the View. Returns None. - - - - - clearGeomFormats() - remove all GeomFormats from the View. Returns None. - - - - - formatGeometricEdge(index, style, weight, color, visible). Returns None. - - - - - getEdgeByIndex(edgeIndex). Returns Part.TopoShape. - - - - - getEdgeBySelection(edgeName). Returns Part.TopoShape. - - - - - getVertexByIndex(vertexIndex). Returns Part.TopoShape. - - - - - getVertexBySelection(vertexName). Returns Part.TopoShape. - - - - - projectPoint(vector3d point, [bool invert]). Returns the projection of point in the -projection coordinate system of this DrawViewPart. Optionally inverts the Y coordinate of the -result. - - - - - - point3d = getGeometricCenter() - returns the geometric center of the source shapes. - - - - - requestPaint(). Redraw the graphic for this View. - - - - - diff --git a/src/Mod/TechDraw/App/DrawViewPy.xml b/src/Mod/TechDraw/App/DrawViewPy.xml deleted file mode 100644 index 8b61459a55..0000000000 --- a/src/Mod/TechDraw/App/DrawViewPy.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - Feature for creating and manipulating Technical Drawing Views - - - - translateLabel(translationContext, objectBaseName, objectUniqueName). -No return value. Replace the current label with a translated version where possible. - - - - - - float scale = getScale(). Returns the correct scale for this view. Handles whether to -use this view's scale property or a parent's view (as in a projection group). - - - - - - diff --git a/src/Mod/TechDraw/App/DrawViewSymbolPy.pyi b/src/Mod/TechDraw/App/DrawViewSymbol.pyi similarity index 70% rename from src/Mod/TechDraw/App/DrawViewSymbolPy.pyi rename to src/Mod/TechDraw/App/DrawViewSymbol.pyi index decbb8c772..1069a3f88e 100644 --- a/src/Mod/TechDraw/App/DrawViewSymbolPy.pyi +++ b/src/Mod/TechDraw/App/DrawViewSymbol.pyi @@ -4,16 +4,11 @@ from Base.Metadata import export from TechDraw.DrawView import DrawView @export( - Father="DrawViewPy", - Name="DrawViewSymbolPy", - Twin="DrawViewSymbol", - TwinPointer="DrawViewSymbol", Include="Mod/TechDraw/App/DrawViewSymbol.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawViewPy.h", - FatherNamespace="TechDraw", ) -class DrawViewSymbolPy(DrawView): +class DrawViewSymbol(DrawView): """ Feature for creating and manipulating Drawing SVG Symbol Views """ diff --git a/src/Mod/TechDraw/App/DrawViewSymbolPy.xml b/src/Mod/TechDraw/App/DrawViewSymbolPy.xml deleted file mode 100644 index fac8392dd3..0000000000 --- a/src/Mod/TechDraw/App/DrawViewSymbolPy.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Feature for creating and manipulating Drawing SVG Symbol Views - - - - dumpSymbol(fileSpec) - dump the contents of Symbol to a file - - - - - diff --git a/src/Mod/TechDraw/App/DrawWeldSymbolPy.pyi b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi similarity index 60% rename from src/Mod/TechDraw/App/DrawWeldSymbolPy.pyi rename to src/Mod/TechDraw/App/DrawWeldSymbol.pyi index 0069900aa8..41be571131 100644 --- a/src/Mod/TechDraw/App/DrawWeldSymbolPy.pyi +++ b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi @@ -2,16 +2,11 @@ from Base.Metadata import export from TechDraw.DrawView import DrawView @export( - Father="DrawViewPy", - Name="DrawWeldSymbolPy", - Twin="DrawWeldSymbol", - TwinPointer="DrawWeldSymbol", Include="Mod/TechDraw/App/DrawWeldSymbol.h", Namespace="TechDraw", FatherInclude="Mod/TechDraw/App/DrawViewPy.h", - FatherNamespace="TechDraw", ) -class DrawWeldSymbolPy(DrawView): +class DrawWeldSymbol(DrawView): """ Feature for adding welding tiles to leader lines """ diff --git a/src/Mod/TechDraw/App/DrawWeldSymbolPy.xml b/src/Mod/TechDraw/App/DrawWeldSymbolPy.xml deleted file mode 100644 index 165fac160c..0000000000 --- a/src/Mod/TechDraw/App/DrawWeldSymbolPy.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Feature for adding welding tiles to leader lines - - - - diff --git a/src/Mod/TechDraw/App/GeomFormatPy.pyi b/src/Mod/TechDraw/App/GeomFormat.pyi similarity index 74% rename from src/Mod/TechDraw/App/GeomFormatPy.pyi rename to src/Mod/TechDraw/App/GeomFormat.pyi index 4ed58a36c3..41641acf76 100644 --- a/src/Mod/TechDraw/App/GeomFormatPy.pyi +++ b/src/Mod/TechDraw/App/GeomFormat.pyi @@ -4,18 +4,12 @@ from Base.PyObjectBase import PyObjectBase from Base.Metadata import constmethod, export @export( - Father="PyObjectBase", - Name="GeomFormatPy", - Twin="GeomFormat", - TwinPointer="GeomFormat", Include="Mod/TechDraw/App/Cosmetic.h", Namespace="TechDraw", - FatherInclude="Base/PyObjectBase.h", - FatherNamespace="Base", Constructor=True, Delete=True, ) -class GeomFormatPy(PyObjectBase): +class GeomFormat(PyObjectBase): """ GeomFormat specifies appearance parameters for TechDraw Geometry objects """ diff --git a/src/Mod/TechDraw/App/GeomFormatPy.xml b/src/Mod/TechDraw/App/GeomFormatPy.xml deleted file mode 100644 index 2f399d425e..0000000000 --- a/src/Mod/TechDraw/App/GeomFormatPy.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - GeomFormat specifies appearance parameters for TechDraw Geometry objects - - - - Create a clone of this geomformat - - - - - Create a copy of this geomformat - - - - - Gives the tag of the GeomFormat as string. - - - - - diff --git a/src/Tools/bindings/templates/templateClassPyExport.py b/src/Tools/bindings/templates/templateClassPyExport.py index 54d2fb56fe..36341003c6 100644 --- a/src/Tools/bindings/templates/templateClassPyExport.py +++ b/src/Tools/bindings/templates/templateClassPyExport.py @@ -55,6 +55,7 @@ class TemplateClassPyExport(template.ModelTemplate): "Sketcher", "Spreadsheet", "Surface", + "TechDraw", ]: root, ext = os.path.splitext(path) return f"{root}_{ext}" From 0af34eeff6be37cd8b73cd55a5a0523762a20910 Mon Sep 17 00:00:00 2001 From: Ian 'z0r0' Abreu Date: Sun, 31 Aug 2025 18:28:41 -0400 Subject: [PATCH 07/10] Cleaning up xml file generation, and erroneous export annotations from interface bindings. --- src/Mod/CAM/App/Area.pyi | 1 - src/Mod/CAM/App/Path.pyi | 1 - src/Mod/CAM/PathSimulator/App/PathSim.pyi | 1 - .../templates/templateClassPyExport.py | 37 +++---------------- 4 files changed, 6 insertions(+), 34 deletions(-) diff --git a/src/Mod/CAM/App/Area.pyi b/src/Mod/CAM/App/Area.pyi index 28048bbe7f..bb955ad11a 100644 --- a/src/Mod/CAM/App/Area.pyi +++ b/src/Mod/CAM/App/Area.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export @export( Include="Mod/CAM/App/Area.h", Namespace="Path", - ReadOnly=["Sections", "Shapes"], Constructor=True, Delete=True, ) diff --git a/src/Mod/CAM/App/Path.pyi b/src/Mod/CAM/App/Path.pyi index 9e4c222114..d1b1fb3fbe 100644 --- a/src/Mod/CAM/App/Path.pyi +++ b/src/Mod/CAM/App/Path.pyi @@ -8,7 +8,6 @@ from Base.Persistence import Persistence Twin="Toolpath", TwinPointer="Toolpath", Namespace="Path", - ReadOnly=["Length", "Size", "BoundBox"], Delete=True, Constructor=True, ) diff --git a/src/Mod/CAM/PathSimulator/App/PathSim.pyi b/src/Mod/CAM/PathSimulator/App/PathSim.pyi index 0acd15b51d..c115ba46dc 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -7,7 +7,6 @@ from Base.Metadata import export FatherInclude="Base/BaseClassPy.h", Include="Mod/CAM/PathSimulator/App/PathSim.h", Namespace="PathSimulator", - ReadOnly=["Tool"], Constructor=True, Delete=True, ) diff --git a/src/Tools/bindings/templates/templateClassPyExport.py b/src/Tools/bindings/templates/templateClassPyExport.py index 36341003c6..b339a1aeea 100644 --- a/src/Tools/bindings/templates/templateClassPyExport.py +++ b/src/Tools/bindings/templates/templateClassPyExport.py @@ -35,31 +35,6 @@ def compareFiles(file1, file2): class TemplateClassPyExport(template.ModelTemplate): - # TODO: This is temporary, once all XML files are migrated, this can be removed. - def getPath(self, path): - if self.is_python and not self.export.ModuleName in [ - "Base", - "App", - "Assembly", - "CAM", - "Fem", - "Gui", - "Import", - "Material", - "Measure", - "Mesh", - "Part", - "PartDesign", - "Points", - "Robot", - "Sketcher", - "Spreadsheet", - "Surface", - "TechDraw", - ]: - root, ext = os.path.splitext(path) - return f"{root}_{ext}" - return path def Generate(self): # self.ParentNamespace = "Base" @@ -87,7 +62,7 @@ class TemplateClassPyExport(template.ModelTemplate): os.makedirs(subpath) # Imp.cpp must not exist, neither in outputDir nor in inputDir - outputImp = self.getPath(outputDir + exportName + "Imp.cpp") + outputImp = outputDir + exportName + "Imp.cpp" if not os.path.exists(outputImp): if not os.path.exists(inputDir + exportName + "Imp.cpp"): file = open(outputImp, "wb") @@ -95,12 +70,12 @@ class TemplateClassPyExport(template.ModelTemplate): model.generateTools.replace(self.TemplateImplement, locals(), file) file.close() - outputCpp = self.getPath(outputDir + exportName + ".cpp") + outputCpp = outputDir + exportName + ".cpp" with open(outputCpp, "wb") as file: print("TemplateClassPyExport", "TemplateModule", file.name) model.generateTools.replace(self.TemplateModule, locals(), file) - outputHeader = self.getPath(outputDir + exportName + ".h") + outputHeader = outputDir + exportName + ".h" with open(outputHeader, "wb") as file: print("TemplateClassPyExport", "TemplateHeader", file.name) model.generateTools.replace(self.TemplateHeader, locals(), file) @@ -117,15 +92,15 @@ class TemplateClassPyExport(template.ModelTemplate): if not os.path.exists(inputDir + exportName + "Imp.cpp"): outputImpXml = outputDir + exportName + "Imp.cpp" - outputImpPy = self.getPath(outputDir + exportName + "Imp.cpp") + outputImpPy = outputDir + exportName + "Imp.cpp" compareFiles(outputImpXml, outputImpPy) outputHeaderXml = outputDir + exportName + ".h" - outputHeaderPy = self.getPath(outputDir + exportName + ".h") + outputHeaderPy = outputDir + exportName + ".h" compareFiles(outputHeaderXml, outputHeaderPy) outputCppXml = outputDir + exportName + ".cpp" - outputCppPy = self.getPath(outputDir + exportName + ".cpp") + outputCppPy = outputDir + exportName + ".cpp" compareFiles(outputCppXml, outputCppPy) TemplateHeader = """ From b0b9f8fc354ceafcddbc0ccfefad946ee61ecdca Mon Sep 17 00:00:00 2001 From: Ian 'z0r0' Abreu Date: Mon, 1 Sep 2025 21:50:59 -0400 Subject: [PATCH 08/10] Adding license documentation to interface class docblocks. --- src/Mod/Assembly/App/AssemblyLink.pyi | 2 ++ src/Mod/Assembly/App/AssemblyObject.pyi | 2 ++ src/Mod/Assembly/App/BomGroup.pyi | 2 ++ src/Mod/Assembly/App/BomObject.pyi | 2 ++ src/Mod/Assembly/App/JointGroup.pyi | 2 ++ src/Mod/Assembly/App/SimulationGroup.pyi | 2 ++ src/Mod/Assembly/App/ViewGroup.pyi | 2 ++ src/Mod/Assembly/Gui/ViewProviderAssembly.pyi | 2 ++ src/Mod/CAM/App/Area.pyi | 2 ++ src/Mod/CAM/App/FeatureArea.pyi | 2 ++ src/Mod/CAM/App/FeaturePathCompound.pyi | 2 ++ src/Mod/CAM/App/Path.pyi | 2 ++ src/Mod/CAM/App/Voronoi.pyi | 2 ++ src/Mod/CAM/App/VoronoiCell.pyi | 2 ++ src/Mod/CAM/App/VoronoiEdge.pyi | 2 ++ src/Mod/CAM/App/VoronoiVertex.pyi | 2 ++ src/Mod/CAM/PathSimulator/App/PathSim.pyi | 2 ++ src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi | 2 ++ src/Mod/Fem/App/FemMesh.pyi | 2 ++ src/Mod/Fem/App/FemPostBranchFilter.pyi | 2 ++ src/Mod/Fem/App/FemPostFilter.pyi | 2 ++ src/Mod/Fem/App/FemPostObject.pyi | 2 ++ src/Mod/Fem/App/FemPostPipeline.pyi | 2 ++ src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi | 2 ++ src/Mod/Fem/Gui/ViewProviderFemMesh.pyi | 2 ++ src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi | 2 ++ src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi | 2 ++ src/Mod/Import/App/StepShape.pyi | 2 ++ src/Mod/Measure/App/MeasureBase.pyi | 2 ++ src/Mod/Measure/App/Measurement.pyi | 2 ++ src/Mod/Measure/Gui/QuickMeasure.pyi | 2 ++ src/Mod/Mesh/App/Edge.pyi | 2 ++ src/Mod/Mesh/App/Facet.pyi | 2 ++ src/Mod/Mesh/App/Mesh.pyi | 5 ++++- src/Mod/Mesh/App/MeshFeature.pyi | 2 ++ src/Mod/Mesh/App/MeshPoint.pyi | 2 ++ src/Mod/Mesh/Gui/ViewProviderMesh.pyi | 2 ++ src/Mod/Points/App/Points.pyi | 2 ++ src/Mod/Robot/App/Robot6Axis.pyi | 2 ++ src/Mod/Robot/App/RobotObject.pyi | 2 ++ src/Mod/Robot/App/Trajectory.pyi | 2 ++ src/Mod/Robot/App/Waypoint.pyi | 2 ++ src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi | 2 ++ src/Mod/Spreadsheet/App/PropertyRowHeights.pyi | 2 ++ src/Mod/Spreadsheet/App/PropertySheet.pyi | 2 ++ src/Mod/Spreadsheet/App/Sheet.pyi | 2 ++ src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi | 2 ++ src/Mod/Surface/App/Blending/BlendCurve.pyi | 2 ++ src/Mod/Surface/App/Blending/BlendPoint.pyi | 2 ++ src/Mod/TechDraw/App/CenterLine.pyi | 2 ++ src/Mod/TechDraw/App/CosmeticEdge.pyi | 2 ++ src/Mod/TechDraw/App/CosmeticExtension.pyi | 2 ++ src/Mod/TechDraw/App/CosmeticVertex.pyi | 2 ++ src/Mod/TechDraw/App/DrawBrokenView.pyi | 2 ++ src/Mod/TechDraw/App/DrawGeomHatch.pyi | 2 ++ src/Mod/TechDraw/App/DrawHatch.pyi | 2 ++ src/Mod/TechDraw/App/DrawLeaderLine.pyi | 2 ++ src/Mod/TechDraw/App/DrawPage.pyi | 2 ++ src/Mod/TechDraw/App/DrawParametricTemplate.pyi | 2 ++ src/Mod/TechDraw/App/DrawProjGroup.pyi | 2 ++ src/Mod/TechDraw/App/DrawProjGroupItem.pyi | 2 ++ src/Mod/TechDraw/App/DrawRichAnno.pyi | 2 ++ src/Mod/TechDraw/App/DrawSVGTemplate.pyi | 2 ++ src/Mod/TechDraw/App/DrawTemplate.pyi | 2 ++ src/Mod/TechDraw/App/DrawTile.pyi | 2 ++ src/Mod/TechDraw/App/DrawTileWeld.pyi | 2 ++ src/Mod/TechDraw/App/DrawView.pyi | 2 ++ src/Mod/TechDraw/App/DrawViewAnnotation.pyi | 2 ++ src/Mod/TechDraw/App/DrawViewClip.pyi | 2 ++ src/Mod/TechDraw/App/DrawViewCollection.pyi | 2 ++ src/Mod/TechDraw/App/DrawViewDimExtent.pyi | 2 ++ src/Mod/TechDraw/App/DrawViewDimension.pyi | 2 ++ src/Mod/TechDraw/App/DrawViewPart.pyi | 2 ++ src/Mod/TechDraw/App/DrawViewSymbol.pyi | 2 ++ src/Mod/TechDraw/App/DrawWeldSymbol.pyi | 2 ++ src/Mod/TechDraw/App/GeomFormat.pyi | 2 ++ 76 files changed, 154 insertions(+), 1 deletion(-) diff --git a/src/Mod/Assembly/App/AssemblyLink.pyi b/src/Mod/Assembly/App/AssemblyLink.pyi index f78aa8e613..30495d87c7 100644 --- a/src/Mod/Assembly/App/AssemblyLink.pyi +++ b/src/Mod/Assembly/App/AssemblyLink.pyi @@ -10,6 +10,8 @@ from App.Part import Part ) class AssemblyLink(Part): """ + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later This class handles document objects in Assembly """ diff --git a/src/Mod/Assembly/App/AssemblyObject.pyi b/src/Mod/Assembly/App/AssemblyObject.pyi index 29e9014607..1f86b97989 100644 --- a/src/Mod/Assembly/App/AssemblyObject.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -7,6 +7,8 @@ from App.Part import Part @export(Include="Mod/Assembly/App/AssemblyObject.h", Namespace="Assembly") class AssemblyObject(Part): """ + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later This class handles document objects in Assembly """ diff --git a/src/Mod/Assembly/App/BomGroup.pyi b/src/Mod/Assembly/App/BomGroup.pyi index eec7081082..32682e5041 100644 --- a/src/Mod/Assembly/App/BomGroup.pyi +++ b/src/Mod/Assembly/App/BomGroup.pyi @@ -5,5 +5,7 @@ from App.DocumentObjectGroup import DocumentObjectGroup @export(Include="Mod/Assembly/App/BomGroup.h", Namespace="Assembly") class BomGroup(DocumentObjectGroup): """ + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later This class is a group subclass for boms. """ diff --git a/src/Mod/Assembly/App/BomObject.pyi b/src/Mod/Assembly/App/BomObject.pyi index fb0581b921..0ddac8084e 100644 --- a/src/Mod/Assembly/App/BomObject.pyi +++ b/src/Mod/Assembly/App/BomObject.pyi @@ -8,5 +8,7 @@ from Spreadsheet.Sheet import Sheet ) class BomObject(Sheet): """ + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later This class is the BOM object of assemblies, it derives from Spreadsheet::Sheet. """ diff --git a/src/Mod/Assembly/App/JointGroup.pyi b/src/Mod/Assembly/App/JointGroup.pyi index f44a008fe3..9c66113fbb 100644 --- a/src/Mod/Assembly/App/JointGroup.pyi +++ b/src/Mod/Assembly/App/JointGroup.pyi @@ -5,5 +5,7 @@ from App.DocumentObjectGroup import DocumentObjectGroup @export(Include="Mod/Assembly/App/JointGroup.h", Namespace="Assembly") class JointGroup(DocumentObjectGroup): """ + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later This class is a group subclass for joints. """ diff --git a/src/Mod/Assembly/App/SimulationGroup.pyi b/src/Mod/Assembly/App/SimulationGroup.pyi index 56d1fcf155..018c759588 100644 --- a/src/Mod/Assembly/App/SimulationGroup.pyi +++ b/src/Mod/Assembly/App/SimulationGroup.pyi @@ -5,5 +5,7 @@ from App.DocumentObjectGroup import DocumentObjectGroup @export(Include="Mod/Assembly/App/SimulationGroup.h", Namespace="Assembly") class SimulationGroup(DocumentObjectGroup): """ + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later This class is a group subclass for joints. """ diff --git a/src/Mod/Assembly/App/ViewGroup.pyi b/src/Mod/Assembly/App/ViewGroup.pyi index 9a4eb0e1a2..cb70dc9f59 100644 --- a/src/Mod/Assembly/App/ViewGroup.pyi +++ b/src/Mod/Assembly/App/ViewGroup.pyi @@ -5,5 +5,7 @@ from App.DocumentObjectGroup import DocumentObjectGroup @export(Include="Mod/Assembly/App/ViewGroup.h", Namespace="Assembly") class ViewGroup(DocumentObjectGroup): """ + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later This class is a group subclass for joints. """ diff --git a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi index 6775edbd23..b70fe20fc7 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -7,6 +7,8 @@ from Gui.ViewProvider import ViewProvider @export(Include="Mod/Assembly/Gui/ViewProviderAssembly.h", Namespace="AssemblyGui") class ViewProviderAssembly(ViewProvider): """ + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later This is the ViewProviderAssembly class """ diff --git a/src/Mod/CAM/App/Area.pyi b/src/Mod/CAM/App/Area.pyi index bb955ad11a..b5178cdd8c 100644 --- a/src/Mod/CAM/App/Area.pyi +++ b/src/Mod/CAM/App/Area.pyi @@ -11,6 +11,8 @@ from Base.Metadata import export ) class Area(BaseClass): """ + Author: Zheng, Lei (realthunder.dev@gmail.com) + License: LGPL-2.1-or-later FreeCAD python wrapper of libarea Path.Area(key=value ...) diff --git a/src/Mod/CAM/App/FeatureArea.pyi b/src/Mod/CAM/App/FeatureArea.pyi index aa335f268a..78ff12076b 100644 --- a/src/Mod/CAM/App/FeatureArea.pyi +++ b/src/Mod/CAM/App/FeatureArea.pyi @@ -10,6 +10,8 @@ from App.DocumentObject import DocumentObject ) class FeatureArea(DocumentObject): """ + Author: Zheng, Lei (realthunder.dev@gmail.com) + License: LGPL-2.1-or-later This class handles Path Area features """ diff --git a/src/Mod/CAM/App/FeaturePathCompound.pyi b/src/Mod/CAM/App/FeaturePathCompound.pyi index 46b3f57256..de049bbb81 100644 --- a/src/Mod/CAM/App/FeaturePathCompound.pyi +++ b/src/Mod/CAM/App/FeaturePathCompound.pyi @@ -11,6 +11,8 @@ from App.DocumentObject import DocumentObject ) class FeaturePathCompound(DocumentObject): """ + Author: Yorik van Havre (yorik@uncreated.net) + License: LGPL-2.1-or-later This class handles Path Compound features """ diff --git a/src/Mod/CAM/App/Path.pyi b/src/Mod/CAM/App/Path.pyi index d1b1fb3fbe..d3788abaea 100644 --- a/src/Mod/CAM/App/Path.pyi +++ b/src/Mod/CAM/App/Path.pyi @@ -13,6 +13,8 @@ from Base.Persistence import Persistence ) class Path(Persistence): """ + Author: Yorik van Havre (yorik@uncreated.net) + License: LGPL-2.1-or-later Path([commands]): Represents a basic Gcode path commands (optional) is a list of Path commands """ diff --git a/src/Mod/CAM/App/Voronoi.pyi b/src/Mod/CAM/App/Voronoi.pyi index 8273feddd4..592ad2a553 100644 --- a/src/Mod/CAM/App/Voronoi.pyi +++ b/src/Mod/CAM/App/Voronoi.pyi @@ -11,6 +11,8 @@ from Base.Metadata import constmethod, export ) class Voronoi(BaseClass): """ + Author: sliptonic (shopinthewoods@gmail.com) + License: LGPL-2.1-or-later Voronoi([segments]): Create voronoi for given collection of line segments """ diff --git a/src/Mod/CAM/App/VoronoiCell.pyi b/src/Mod/CAM/App/VoronoiCell.pyi index 91e4ff5f40..f77ee7606e 100644 --- a/src/Mod/CAM/App/VoronoiCell.pyi +++ b/src/Mod/CAM/App/VoronoiCell.pyi @@ -12,6 +12,8 @@ from Base.Metadata import constmethod, export ) class VoronoiCell(BaseClass): """ + Author: sliptonic (shopinthewoods@gmail.com) + License: LGPL-2.1-or-later Cell of a Voronoi diagram """ diff --git a/src/Mod/CAM/App/VoronoiEdge.pyi b/src/Mod/CAM/App/VoronoiEdge.pyi index 828747880e..49cb0a4d2c 100644 --- a/src/Mod/CAM/App/VoronoiEdge.pyi +++ b/src/Mod/CAM/App/VoronoiEdge.pyi @@ -12,6 +12,8 @@ from Base.Metadata import constmethod, export ) class VoronoiEdge(BaseClass): """ + Author: sliptonic (shopinthewoods@gmail.com) + License: LGPL-2.1-or-later Edge of a Voronoi diagram """ diff --git a/src/Mod/CAM/App/VoronoiVertex.pyi b/src/Mod/CAM/App/VoronoiVertex.pyi index 71339eade5..6867da5642 100644 --- a/src/Mod/CAM/App/VoronoiVertex.pyi +++ b/src/Mod/CAM/App/VoronoiVertex.pyi @@ -12,6 +12,8 @@ from Base.Metadata import constmethod, export ) class VoronoiVertex(BaseClass): """ + Author: sliptonic (shopinthewoods@gmail.com) + License: LGPL-2.1-or-later Vertex of a Voronoi diagram """ diff --git a/src/Mod/CAM/PathSimulator/App/PathSim.pyi b/src/Mod/CAM/PathSimulator/App/PathSim.pyi index c115ba46dc..072b342e9e 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -12,6 +12,8 @@ from Base.Metadata import export ) class PathSim(BaseClass): """ + Author: Shai Seger (shaise_at_g-mail) + License: LGPL-2.1-or-later FreeCAD python wrapper of PathSimulator PathSimulator.PathSim(): diff --git a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi index ee479a4f82..f40f09b532 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -13,6 +13,8 @@ from Metadata import no_args ) class CAMSim(BaseClass): """ + Author: Shai Seger (shaise_at_g-mail) + License: LGPL-2.1-or-later FreeCAD python wrapper of CAMSimulator CAMSimulator.CAMSim(): diff --git a/src/Mod/Fem/App/FemMesh.pyi b/src/Mod/Fem/App/FemMesh.pyi index bc0f770c43..390affa8c7 100644 --- a/src/Mod/Fem/App/FemMesh.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -13,6 +13,8 @@ from App.ComplexGeoData import ComplexGeoData ) class FemMesh(ComplexGeoData): """ + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later FemMesh class """ diff --git a/src/Mod/Fem/App/FemPostBranchFilter.pyi b/src/Mod/Fem/App/FemPostBranchFilter.pyi index 014f4dc4d9..ef00908ea6 100644 --- a/src/Mod/Fem/App/FemPostBranchFilter.pyi +++ b/src/Mod/Fem/App/FemPostBranchFilter.pyi @@ -12,6 +12,8 @@ from Fem.FemPostFilter import FemPostFilter ) class FemPostBranchFilter(FemPostFilter): """ + Author: Stefan Tröger (stefantroeger@gmx.net) + License: LGPL-2.1-or-later The FemPostBranch class. """ diff --git a/src/Mod/Fem/App/FemPostFilter.pyi b/src/Mod/Fem/App/FemPostFilter.pyi index b80d4fd709..789b779ae4 100644 --- a/src/Mod/Fem/App/FemPostFilter.pyi +++ b/src/Mod/Fem/App/FemPostFilter.pyi @@ -12,6 +12,8 @@ from Fem.FemPostObject import FemPostObject ) class FemPostFilter(FemPostObject): """ + Author: Stefan Tröger (stefantroeger@gmx.net) + License: LGPL-2.1-or-later The FemPostFilter class. """ diff --git a/src/Mod/Fem/App/FemPostObject.pyi b/src/Mod/Fem/App/FemPostObject.pyi index 8d7d8452b9..9829890e7e 100644 --- a/src/Mod/Fem/App/FemPostObject.pyi +++ b/src/Mod/Fem/App/FemPostObject.pyi @@ -12,6 +12,8 @@ from App.GeoFeature import GeoFeature ) class FemPostObject(GeoFeature): """ + Author: Mario Passaglia (mpassaglia@cbc.uba.ar) + License: LGPL-2.1-or-later The FemPostObject class. """ diff --git a/src/Mod/Fem/App/FemPostPipeline.pyi b/src/Mod/Fem/App/FemPostPipeline.pyi index 296595a901..3bc6fcb9d0 100644 --- a/src/Mod/Fem/App/FemPostPipeline.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -12,6 +12,8 @@ from Fem.FemPostObject import FemPostObject ) class FemPostPipeline(FemPostObject): """ + Author: Stefan Tröger (stefantroeger@gmx.net) + License: LGPL-2.1-or-later The FemPostPipeline class. """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi index 607b3b30a8..e04d7a4c2d 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi @@ -10,6 +10,8 @@ from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject ) class ViewProviderFemConstraint(ViewProviderGeometryObject): """ + Author: Mario Passaglia (mpassaglia@cbc.uba.ar) + License: LGPL-2.1-or-later This is the ViewProviderFemConstraint class """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi index 67dde061fd..8e1cb5fa3c 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi @@ -10,6 +10,8 @@ from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject ) class ViewProviderFemMesh(ViewProviderGeometryObject): """ + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later ViewProviderFemMesh class """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi index 253eedfb10..67d2d3d3ff 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi @@ -13,6 +13,8 @@ from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject ) class ViewProviderFemPostFilter(ViewProviderDocumentObject): """ + Author: Stefan Tröger (stefantroeger@gmx.net) + License: LGPL-2.1-or-later ViewProviderFemPostPipeline class """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi index 5882dce89c..828b3b20c3 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi @@ -10,6 +10,8 @@ from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject ) class ViewProviderFemPostPipeline(ViewProviderDocumentObject): """ + Author: Uwe Stöhr (uwestoehr@lyx.org) + License: LGPL-2.1-or-later ViewProviderFemPostPipeline class """ diff --git a/src/Mod/Import/App/StepShape.pyi b/src/Mod/Import/App/StepShape.pyi index 924e514c49..18d20190db 100644 --- a/src/Mod/Import/App/StepShape.pyi +++ b/src/Mod/Import/App/StepShape.pyi @@ -11,6 +11,8 @@ from Base.PyObjectBase import PyObjectBase ) class StepShape(PyObjectBase): """ + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later StepShape in Import This class gives a interface to retrieve TopoShapes out of an loaded STEP file of any kind. """ diff --git a/src/Mod/Measure/App/MeasureBase.pyi b/src/Mod/Measure/App/MeasureBase.pyi index 8a54897167..dbf0502c8c 100644 --- a/src/Mod/Measure/App/MeasureBase.pyi +++ b/src/Mod/Measure/App/MeasureBase.pyi @@ -9,5 +9,7 @@ from App.DocumentObject import DocumentObject ) class MeasureBase(DocumentObject): """ + Author: David Friedli(hlorus) (david@friedli-be.ch) + License: LGPL-2.1-or-later User documentation here """ diff --git a/src/Mod/Measure/App/Measurement.pyi b/src/Mod/Measure/App/Measurement.pyi index 33d6843c2c..ebd4f2d5d6 100644 --- a/src/Mod/Measure/App/Measurement.pyi +++ b/src/Mod/Measure/App/Measurement.pyi @@ -10,6 +10,8 @@ from Base.Metadata import export ) class Measurement(BaseClass): """ + Author: Luke Parry (l.parry@warwick.ac.uk) + License: LGPL-2.1-or-later Make a measurement """ diff --git a/src/Mod/Measure/Gui/QuickMeasure.pyi b/src/Mod/Measure/Gui/QuickMeasure.pyi index 68dfbd0fe9..7b369f67ad 100644 --- a/src/Mod/Measure/Gui/QuickMeasure.pyi +++ b/src/Mod/Measure/Gui/QuickMeasure.pyi @@ -9,5 +9,7 @@ from Base.PyObjectBase import PyObjectBase ) class QuickMeasure(PyObjectBase): """ + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later Selection Observer for the QuickMeasure label. """ diff --git a/src/Mod/Mesh/App/Edge.pyi b/src/Mod/Mesh/App/Edge.pyi index 45538102af..c6bbb5e915 100644 --- a/src/Mod/Mesh/App/Edge.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -11,6 +11,8 @@ from Base.PyObjectBase import PyObjectBase ) class Edge(PyObjectBase): """ + Author: Werner Mayer (wmayer[at]users.sourceforge.net) + License: LGPL-2.1-or-later Edge in mesh This is an edge of a facet in a MeshObject. You can get it by e.g. iterating over the facets of a mesh and calling getEdge(index). diff --git a/src/Mod/Mesh/App/Facet.pyi b/src/Mod/Mesh/App/Facet.pyi index 37fb5e8287..25ccebc088 100644 --- a/src/Mod/Mesh/App/Facet.pyi +++ b/src/Mod/Mesh/App/Facet.pyi @@ -11,6 +11,8 @@ from Base.PyObjectBase import PyObjectBase ) class Facet(PyObjectBase): """ + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later Facet in mesh This is a facet in a MeshObject. You can get it by e.g. iterating a mesh. The facet has a connection to its mesh and allows therefore diff --git a/src/Mod/Mesh/App/Mesh.pyi b/src/Mod/Mesh/App/Mesh.pyi index c29b7e3d98..0543fc8aa8 100644 --- a/src/Mod/Mesh/App/Mesh.pyi +++ b/src/Mod/Mesh/App/Mesh.pyi @@ -20,7 +20,10 @@ from App.ComplexGeoData import ComplexGeoData class PropertyMeshKernel* parentProperty = nullptr;""" ) class Mesh(ComplexGeoData): - """Mesh() -- Create an empty mesh object. + """ + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later + Mesh() -- Create an empty mesh object. This class allows one to manipulate the mesh object by adding new facets, deleting facets, importing from an STL file, transforming the mesh and much more. diff --git a/src/Mod/Mesh/App/MeshFeature.pyi b/src/Mod/Mesh/App/MeshFeature.pyi index 54ee0c810f..5c65db70946 100644 --- a/src/Mod/Mesh/App/MeshFeature.pyi +++ b/src/Mod/Mesh/App/MeshFeature.pyi @@ -13,6 +13,8 @@ from App.GeoFeature import GeoFeature ) class MeshFeature(GeoFeature): """ + Author: Werner Mayer (wmayer@users.sourceforge.net) + License: LGPL-2.1-or-later The Mesh::Feature class handles meshes. The Mesh.MeshFeature() function is for internal use only and cannot be used to create instances of this class. Therefore you must have a reference to a document, e.g. 'd' then you can create an instance with diff --git a/src/Mod/Mesh/App/MeshPoint.pyi b/src/Mod/Mesh/App/MeshPoint.pyi index 67d82b5ade..d2e642b61e 100644 --- a/src/Mod/Mesh/App/MeshPoint.pyi +++ b/src/Mod/Mesh/App/MeshPoint.pyi @@ -11,6 +11,8 @@ from Base.PyObjectBase import PyObjectBase ) class MeshPoint(PyObjectBase): """ + Author: Juergen Riegel (FreeCAD@juergen-riegel.net) + License: LGPL-2.1-or-later Point in mesh This is a point in a MeshObject. You can get it by e.g. iterating a mesh. The point has a connection to its mesh and allows therefore diff --git a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi index 4747926c43..eae1c7b0c6 100644 --- a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi +++ b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi @@ -8,6 +8,8 @@ from Base.Metadata import export ) class ViewProviderMesh(ViewProviderGeometryObject): """ + Author: Werner Mayer (wmayer@users.sourceforge.net) + License: LGPL-2.1-or-later This is the ViewProvider base class """ diff --git a/src/Mod/Points/App/Points.pyi b/src/Mod/Points/App/Points.pyi index 860ec81bad..5d2d196565 100644 --- a/src/Mod/Points/App/Points.pyi +++ b/src/Mod/Points/App/Points.pyi @@ -15,6 +15,8 @@ from Data import object ) class Points(object): """ + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later Points() -- Create an empty points object. This class allows one to manipulate the Points object by adding new points, deleting facets, importing from an STL file, diff --git a/src/Mod/Robot/App/Robot6Axis.pyi b/src/Mod/Robot/App/Robot6Axis.pyi index f764c6036f..5d75de5cce 100644 --- a/src/Mod/Robot/App/Robot6Axis.pyi +++ b/src/Mod/Robot/App/Robot6Axis.pyi @@ -11,6 +11,8 @@ from Base.Persistence import Persistence ) class Robot6Axis(Persistence): """ + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later Robot6Axis class """ diff --git a/src/Mod/Robot/App/RobotObject.pyi b/src/Mod/Robot/App/RobotObject.pyi index ec30f9106d..64c40f4b58 100644 --- a/src/Mod/Robot/App/RobotObject.pyi +++ b/src/Mod/Robot/App/RobotObject.pyi @@ -10,6 +10,8 @@ from App.DocumentObject import DocumentObject ) class RobotObject(DocumentObject): """ + Author: Juergen Riegel (FreeCAD@juergen-riegel.net) + License: LGPL-2.1-or-later Robot document object """ diff --git a/src/Mod/Robot/App/Trajectory.pyi b/src/Mod/Robot/App/Trajectory.pyi index 34729f9663..7c748d2931 100644 --- a/src/Mod/Robot/App/Trajectory.pyi +++ b/src/Mod/Robot/App/Trajectory.pyi @@ -11,6 +11,8 @@ from Base.Persistence import Persistence ) class Trajectory(Persistence): """ + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later Trajectory class """ diff --git a/src/Mod/Robot/App/Waypoint.pyi b/src/Mod/Robot/App/Waypoint.pyi index e01c993a4e..838c0828fc 100644 --- a/src/Mod/Robot/App/Waypoint.pyi +++ b/src/Mod/Robot/App/Waypoint.pyi @@ -11,6 +11,8 @@ from Base.Persistence import Persistence ) class Waypoint(Persistence): """ + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later Waypoint class """ diff --git a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi index c222bb0bf2..f0214a7d90 100644 --- a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi +++ b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi @@ -8,5 +8,7 @@ from Base.Persistence import Persistence ) class PropertyColumnWidths(Persistence): """ + Author: Eivind Kvedalen (eivind@kvedalen.name) + License: LGPL-2.1-or-later Internal spreadsheet object """ diff --git a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi index 29a40ecf57..2e17ea82fc 100644 --- a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi +++ b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi @@ -8,5 +8,7 @@ from Base.Persistence import Persistence ) class PropertyRowHeights(Persistence): """ + Author: Eivind Kvedalen (eivind@kvedalen.name) + License: LGPL-2.1-or-later Internal spreadsheet object """ diff --git a/src/Mod/Spreadsheet/App/PropertySheet.pyi b/src/Mod/Spreadsheet/App/PropertySheet.pyi index d9a7e71260..ba65c1d6ab 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.pyi +++ b/src/Mod/Spreadsheet/App/PropertySheet.pyi @@ -11,5 +11,7 @@ from Base.Persistence import Persistence ) class PropertySheet(Persistence): """ + Author: Eivind Kvedalen (eivind@kvedalen.name) + License: LGPL-2.1-or-later Internal spreadsheet object """ diff --git a/src/Mod/Spreadsheet/App/Sheet.pyi b/src/Mod/Spreadsheet/App/Sheet.pyi index 08d4ca43a8..c020aaca14 100644 --- a/src/Mod/Spreadsheet/App/Sheet.pyi +++ b/src/Mod/Spreadsheet/App/Sheet.pyi @@ -11,6 +11,8 @@ from App.DocumentObject import DocumentObject ) class Sheet(DocumentObject): """ + Author: Eivind Kvedalen (eivind@kvedalen.name) + License: LGPL-2.1-or-later With this object you can manipulate spreadsheets """ diff --git a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi index 641eb78672..134d604217 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi @@ -12,6 +12,8 @@ from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject ) class ViewProviderSpreadsheet(ViewProviderDocumentObject): """ + Author: Jose Luis Cercos Pita (jlcercos@gmail.com) + License: LGPL-2.1-or-later ViewProviderSheet class """ diff --git a/src/Mod/Surface/App/Blending/BlendCurve.pyi b/src/Mod/Surface/App/Blending/BlendCurve.pyi index bc996f65a2..b058126713 100644 --- a/src/Mod/Surface/App/Blending/BlendCurve.pyi +++ b/src/Mod/Surface/App/Blending/BlendCurve.pyi @@ -11,6 +11,8 @@ from Base.Metadata import export ) class BlendCurve(PyObjectBase): """ + Author: Mattéo Grellier (matteogrellier@gmail.com) + License: LGPL-2.1-or-later Create a BlendCurve that interpolate 2 BlendPoints. curve = BlendCurve(BlendPoint1, BlendPoint2) """ diff --git a/src/Mod/Surface/App/Blending/BlendPoint.pyi b/src/Mod/Surface/App/Blending/BlendPoint.pyi index 6c3cc229e5..62a9278578 100644 --- a/src/Mod/Surface/App/Blending/BlendPoint.pyi +++ b/src/Mod/Surface/App/Blending/BlendPoint.pyi @@ -11,6 +11,8 @@ from Base.Metadata import constmethod, export ) class BlendPoint(PyObjectBase): """ + Author: Mattéo Grellier (matteogrellier@gmail.com) + License: LGPL-2.1-or-later Create BlendPoint from a point and some derivatives. myBlendPoint = BlendPoint([Point, D1, D2, ..., DN]) BlendPoint can also be constructed from an edge diff --git a/src/Mod/TechDraw/App/CenterLine.pyi b/src/Mod/TechDraw/App/CenterLine.pyi index 5d5af6a279..be065ce7ba 100644 --- a/src/Mod/TechDraw/App/CenterLine.pyi +++ b/src/Mod/TechDraw/App/CenterLine.pyi @@ -11,6 +11,8 @@ from Base.Metadata import constmethod, export ) class CenterLine(PyObjectBase): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later CenterLine specifies additional mark up edges in a View """ diff --git a/src/Mod/TechDraw/App/CosmeticEdge.pyi b/src/Mod/TechDraw/App/CosmeticEdge.pyi index e3738382f8..7b6da502ea 100644 --- a/src/Mod/TechDraw/App/CosmeticEdge.pyi +++ b/src/Mod/TechDraw/App/CosmeticEdge.pyi @@ -12,6 +12,8 @@ from Base.Metadata import export ) class CosmeticEdge(PyObjectBase): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later CosmeticEdge specifies an extra (cosmetic) edge in Views """ diff --git a/src/Mod/TechDraw/App/CosmeticExtension.pyi b/src/Mod/TechDraw/App/CosmeticExtension.pyi index f8608e676d..795a6f36e8 100644 --- a/src/Mod/TechDraw/App/CosmeticExtension.pyi +++ b/src/Mod/TechDraw/App/CosmeticExtension.pyi @@ -8,5 +8,7 @@ from App.DocumentObjectExtension import DocumentObjectExtension ) class CosmeticExtension(DocumentObjectExtension): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later This object represents cosmetic features for a DrawViewPart. """ diff --git a/src/Mod/TechDraw/App/CosmeticVertex.pyi b/src/Mod/TechDraw/App/CosmeticVertex.pyi index ab9fd8c9d5..c8dec0f702 100644 --- a/src/Mod/TechDraw/App/CosmeticVertex.pyi +++ b/src/Mod/TechDraw/App/CosmeticVertex.pyi @@ -11,6 +11,8 @@ from Base.Metadata import constmethod, export ) class CosmeticVertex(PyObjectBase): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later CosmeticVertex specifies an extra (cosmetic) vertex in Views """ diff --git a/src/Mod/TechDraw/App/DrawBrokenView.pyi b/src/Mod/TechDraw/App/DrawBrokenView.pyi index 75990e5573..2401822442 100644 --- a/src/Mod/TechDraw/App/DrawBrokenView.pyi +++ b/src/Mod/TechDraw/App/DrawBrokenView.pyi @@ -10,6 +10,8 @@ from TechDraw.DrawViewPart import DrawViewPart ) class DrawBrokenView(DrawViewPart): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing broken views """ diff --git a/src/Mod/TechDraw/App/DrawGeomHatch.pyi b/src/Mod/TechDraw/App/DrawGeomHatch.pyi index 3336b2ea4b..6255c0e5d4 100644 --- a/src/Mod/TechDraw/App/DrawGeomHatch.pyi +++ b/src/Mod/TechDraw/App/DrawGeomHatch.pyi @@ -9,6 +9,8 @@ from App.DocumentObject import DocumentObject ) class DrawGeomHatch(DocumentObject): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing GeomHatch areas """ diff --git a/src/Mod/TechDraw/App/DrawHatch.pyi b/src/Mod/TechDraw/App/DrawHatch.pyi index 8f964b5091..441644d553 100644 --- a/src/Mod/TechDraw/App/DrawHatch.pyi +++ b/src/Mod/TechDraw/App/DrawHatch.pyi @@ -8,6 +8,8 @@ from App.DocumentObject import DocumentObject ) class DrawHatch(DocumentObject): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Hatch areas """ diff --git a/src/Mod/TechDraw/App/DrawLeaderLine.pyi b/src/Mod/TechDraw/App/DrawLeaderLine.pyi index 216b0a8dff..5bf5e04474 100644 --- a/src/Mod/TechDraw/App/DrawLeaderLine.pyi +++ b/src/Mod/TechDraw/App/DrawLeaderLine.pyi @@ -8,5 +8,7 @@ from DrawView import DrawView ) class DrawLeaderLine(DrawView): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for adding leaders to Technical Drawings """ diff --git a/src/Mod/TechDraw/App/DrawPage.pyi b/src/Mod/TechDraw/App/DrawPage.pyi index a929df45b6..b0e516fa26 100644 --- a/src/Mod/TechDraw/App/DrawPage.pyi +++ b/src/Mod/TechDraw/App/DrawPage.pyi @@ -9,6 +9,8 @@ from App.DocumentObject import DocumentObject ) class DrawPage(DocumentObject): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Pages """ diff --git a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi index 8447884185..f6b13074ec 100644 --- a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi @@ -10,6 +10,8 @@ from DrawTemplate import DrawTemplate ) class DrawParametricTemplate(DrawTemplate): """ + Author: Luke Parry (l.parry@warwick.ac.uk) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Templates """ diff --git a/src/Mod/TechDraw/App/DrawProjGroup.pyi b/src/Mod/TechDraw/App/DrawProjGroup.pyi index 789daae7d1..483e4d945d 100644 --- a/src/Mod/TechDraw/App/DrawProjGroup.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroup.pyi @@ -10,6 +10,8 @@ from TechDraw.DrawViewCollection import DrawViewCollection ) class DrawProjGroup(DrawViewCollection): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Projection Groups """ diff --git a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi index 38e3712e6e..d55ae8e8ca 100644 --- a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi @@ -10,6 +10,8 @@ from TechDraw.DrawViewPart import DrawViewPart ) class DrawProjGroupItem(DrawViewPart): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating component Views Technical Drawing Projection Groups """ diff --git a/src/Mod/TechDraw/App/DrawRichAnno.pyi b/src/Mod/TechDraw/App/DrawRichAnno.pyi index b6892a6acd..335deab6d1 100644 --- a/src/Mod/TechDraw/App/DrawRichAnno.pyi +++ b/src/Mod/TechDraw/App/DrawRichAnno.pyi @@ -8,5 +8,7 @@ from TechDraw.DrawView import DrawView ) class DrawRichAnno(DrawView): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for adding rich annotation blocks to Technical Drawings """ diff --git a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi index 40b1566e01..4e804b4a37 100644 --- a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi @@ -10,6 +10,8 @@ from DrawTemplate import DrawTemplate ) class DrawSVGTemplate(DrawTemplate): """ + Author: Luke Parry (l.parry@warwick.ac.uk) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing SVG Templates """ diff --git a/src/Mod/TechDraw/App/DrawTemplate.pyi b/src/Mod/TechDraw/App/DrawTemplate.pyi index bb66893593..0c28342bd0 100644 --- a/src/Mod/TechDraw/App/DrawTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawTemplate.pyi @@ -8,5 +8,7 @@ from App.DocumentObject import DocumentObject ) class DrawTemplate(DocumentObject): """ + Author: Luke Parry (l.parry@warwick.ac.uk) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Templates """ diff --git a/src/Mod/TechDraw/App/DrawTile.pyi b/src/Mod/TechDraw/App/DrawTile.pyi index 973dccce21..39b7c9bdf9 100644 --- a/src/Mod/TechDraw/App/DrawTile.pyi +++ b/src/Mod/TechDraw/App/DrawTile.pyi @@ -8,5 +8,7 @@ from App.DocumentObject import DocumentObject ) class DrawTile(DocumentObject): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for adding tiles to leader lines """ diff --git a/src/Mod/TechDraw/App/DrawTileWeld.pyi b/src/Mod/TechDraw/App/DrawTileWeld.pyi index 1269aeaed9..05dc3c2178 100644 --- a/src/Mod/TechDraw/App/DrawTileWeld.pyi +++ b/src/Mod/TechDraw/App/DrawTileWeld.pyi @@ -8,5 +8,7 @@ from TechDraw.DrawTile import DrawTile ) class DrawTileWeld(DrawTile): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for adding welding tiles to leader lines """ diff --git a/src/Mod/TechDraw/App/DrawView.pyi b/src/Mod/TechDraw/App/DrawView.pyi index 60a3549e89..9d422a40dd 100644 --- a/src/Mod/TechDraw/App/DrawView.pyi +++ b/src/Mod/TechDraw/App/DrawView.pyi @@ -10,6 +10,8 @@ from App.DocumentObject import DocumentObject ) class DrawView(DocumentObject): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Views """ diff --git a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi index 17bebc8550..d9dded9e71 100644 --- a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi +++ b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi @@ -8,5 +8,7 @@ from TechDraw.Drawview import DrawView ) class DrawViewAnnotation(DrawView): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Annotation Views """ diff --git a/src/Mod/TechDraw/App/DrawViewClip.pyi b/src/Mod/TechDraw/App/DrawViewClip.pyi index 1557e5ef6c..898733ebf9 100644 --- a/src/Mod/TechDraw/App/DrawViewClip.pyi +++ b/src/Mod/TechDraw/App/DrawViewClip.pyi @@ -10,6 +10,8 @@ from TechDraw.DrawView import DrawView ) class DrawViewClip(DrawView): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Clip Views """ diff --git a/src/Mod/TechDraw/App/DrawViewCollection.pyi b/src/Mod/TechDraw/App/DrawViewCollection.pyi index 0e558016c2..cc766471ca 100644 --- a/src/Mod/TechDraw/App/DrawViewCollection.pyi +++ b/src/Mod/TechDraw/App/DrawViewCollection.pyi @@ -10,6 +10,8 @@ from TechDraw.DrawView import DrawView ) class DrawViewCollection(DrawView): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing View Collections """ diff --git a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi index af65c4ba97..27b9f79380 100644 --- a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi @@ -10,6 +10,8 @@ from TechDraw.DrawViewDimension import DrawViewDimension ) class DrawViewDimExtent(DrawViewDimension): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing DimExtents """ diff --git a/src/Mod/TechDraw/App/DrawViewDimension.pyi b/src/Mod/TechDraw/App/DrawViewDimension.pyi index 0abe5c3857..cfaf7dfec7 100644 --- a/src/Mod/TechDraw/App/DrawViewDimension.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimension.pyi @@ -10,6 +10,8 @@ from TechDraw.DrawView import DrawView ) class DrawViewDimension(DrawView): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Dimensions """ diff --git a/src/Mod/TechDraw/App/DrawViewPart.pyi b/src/Mod/TechDraw/App/DrawViewPart.pyi index 60c9a073b6..50be858372 100644 --- a/src/Mod/TechDraw/App/DrawViewPart.pyi +++ b/src/Mod/TechDraw/App/DrawViewPart.pyi @@ -10,6 +10,8 @@ from TechDraw.rawView import DrawView ) class DrawViewPart(DrawView): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Part Views """ diff --git a/src/Mod/TechDraw/App/DrawViewSymbol.pyi b/src/Mod/TechDraw/App/DrawViewSymbol.pyi index 1069a3f88e..eb1dd944b8 100644 --- a/src/Mod/TechDraw/App/DrawViewSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawViewSymbol.pyi @@ -10,6 +10,8 @@ from TechDraw.DrawView import DrawView ) class DrawViewSymbol(DrawView): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for creating and manipulating Drawing SVG Symbol Views """ diff --git a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi index 41be571131..f6a494af44 100644 --- a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi @@ -8,5 +8,7 @@ from TechDraw.DrawView import DrawView ) class DrawWeldSymbol(DrawView): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later Feature for adding welding tiles to leader lines """ diff --git a/src/Mod/TechDraw/App/GeomFormat.pyi b/src/Mod/TechDraw/App/GeomFormat.pyi index 41641acf76..28bb0373f7 100644 --- a/src/Mod/TechDraw/App/GeomFormat.pyi +++ b/src/Mod/TechDraw/App/GeomFormat.pyi @@ -11,6 +11,8 @@ from Base.Metadata import constmethod, export ) class GeomFormat(PyObjectBase): """ + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later GeomFormat specifies appearance parameters for TechDraw Geometry objects """ From b1c551026ee2661e0232777fa96f96e68dc69315 Mon Sep 17 00:00:00 2001 From: Ian 'z0r0' Abreu Date: Tue, 2 Sep 2025 08:25:37 -0400 Subject: [PATCH 09/10] reverting author metadata --- src/Mod/Assembly/App/AssemblyLink.pyi | 2 -- src/Mod/Assembly/App/AssemblyObject.pyi | 2 -- src/Mod/Assembly/App/BomGroup.pyi | 2 -- src/Mod/Assembly/App/BomObject.pyi | 2 -- src/Mod/Assembly/App/JointGroup.pyi | 2 -- src/Mod/Assembly/App/SimulationGroup.pyi | 2 -- src/Mod/Assembly/App/ViewGroup.pyi | 2 -- src/Mod/Assembly/Gui/ViewProviderAssembly.pyi | 2 -- src/Mod/CAM/App/Area.pyi | 2 -- src/Mod/CAM/App/FeatureArea.pyi | 2 -- src/Mod/CAM/App/FeaturePathCompound.pyi | 2 -- src/Mod/CAM/App/Path.pyi | 2 -- src/Mod/CAM/App/Voronoi.pyi | 2 -- src/Mod/CAM/App/VoronoiCell.pyi | 2 -- src/Mod/CAM/App/VoronoiEdge.pyi | 2 -- src/Mod/CAM/App/VoronoiVertex.pyi | 2 -- src/Mod/CAM/PathSimulator/App/PathSim.pyi | 2 -- src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi | 2 -- src/Mod/Fem/App/FemMesh.pyi | 2 -- src/Mod/Fem/App/FemPostBranchFilter.pyi | 2 -- src/Mod/Fem/App/FemPostFilter.pyi | 2 -- src/Mod/Fem/App/FemPostObject.pyi | 2 -- src/Mod/Fem/App/FemPostPipeline.pyi | 2 -- src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi | 2 -- src/Mod/Fem/Gui/ViewProviderFemMesh.pyi | 2 -- src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi | 2 -- src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi | 2 -- src/Mod/Import/App/StepShape.pyi | 2 -- src/Mod/Measure/App/MeasureBase.pyi | 2 -- src/Mod/Measure/App/Measurement.pyi | 2 -- src/Mod/Measure/Gui/QuickMeasure.pyi | 2 -- src/Mod/Mesh/App/Edge.pyi | 2 -- src/Mod/Mesh/App/Facet.pyi | 2 -- src/Mod/Mesh/App/Mesh.pyi | 5 +---- src/Mod/Mesh/App/MeshFeature.pyi | 2 -- src/Mod/Mesh/App/MeshPoint.pyi | 2 -- src/Mod/Mesh/Gui/ViewProviderMesh.pyi | 2 -- src/Mod/Points/App/Points.pyi | 2 -- src/Mod/Robot/App/Robot6Axis.pyi | 2 -- src/Mod/Robot/App/RobotObject.pyi | 2 -- src/Mod/Robot/App/Trajectory.pyi | 2 -- src/Mod/Robot/App/Waypoint.pyi | 2 -- src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi | 2 -- src/Mod/Spreadsheet/App/PropertyRowHeights.pyi | 2 -- src/Mod/Spreadsheet/App/PropertySheet.pyi | 2 -- src/Mod/Spreadsheet/App/Sheet.pyi | 2 -- src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi | 2 -- src/Mod/Surface/App/Blending/BlendCurve.pyi | 2 -- src/Mod/Surface/App/Blending/BlendPoint.pyi | 2 -- src/Mod/TechDraw/App/CenterLine.pyi | 2 -- src/Mod/TechDraw/App/CosmeticEdge.pyi | 2 -- src/Mod/TechDraw/App/CosmeticExtension.pyi | 2 -- src/Mod/TechDraw/App/CosmeticVertex.pyi | 2 -- src/Mod/TechDraw/App/DrawBrokenView.pyi | 2 -- src/Mod/TechDraw/App/DrawGeomHatch.pyi | 2 -- src/Mod/TechDraw/App/DrawHatch.pyi | 2 -- src/Mod/TechDraw/App/DrawLeaderLine.pyi | 2 -- src/Mod/TechDraw/App/DrawPage.pyi | 2 -- src/Mod/TechDraw/App/DrawParametricTemplate.pyi | 2 -- src/Mod/TechDraw/App/DrawProjGroup.pyi | 2 -- src/Mod/TechDraw/App/DrawProjGroupItem.pyi | 2 -- src/Mod/TechDraw/App/DrawRichAnno.pyi | 2 -- src/Mod/TechDraw/App/DrawSVGTemplate.pyi | 2 -- src/Mod/TechDraw/App/DrawTemplate.pyi | 2 -- src/Mod/TechDraw/App/DrawTile.pyi | 2 -- src/Mod/TechDraw/App/DrawTileWeld.pyi | 2 -- src/Mod/TechDraw/App/DrawView.pyi | 2 -- src/Mod/TechDraw/App/DrawViewAnnotation.pyi | 2 -- src/Mod/TechDraw/App/DrawViewClip.pyi | 2 -- src/Mod/TechDraw/App/DrawViewCollection.pyi | 2 -- src/Mod/TechDraw/App/DrawViewDimExtent.pyi | 2 -- src/Mod/TechDraw/App/DrawViewDimension.pyi | 2 -- src/Mod/TechDraw/App/DrawViewPart.pyi | 2 -- src/Mod/TechDraw/App/DrawViewSymbol.pyi | 2 -- src/Mod/TechDraw/App/DrawWeldSymbol.pyi | 2 -- src/Mod/TechDraw/App/GeomFormat.pyi | 2 -- 76 files changed, 1 insertion(+), 154 deletions(-) diff --git a/src/Mod/Assembly/App/AssemblyLink.pyi b/src/Mod/Assembly/App/AssemblyLink.pyi index 30495d87c7..f78aa8e613 100644 --- a/src/Mod/Assembly/App/AssemblyLink.pyi +++ b/src/Mod/Assembly/App/AssemblyLink.pyi @@ -10,8 +10,6 @@ from App.Part import Part ) class AssemblyLink(Part): """ - Author: Ondsel (development@ondsel.com) - License: LGPL-2.1-or-later This class handles document objects in Assembly """ diff --git a/src/Mod/Assembly/App/AssemblyObject.pyi b/src/Mod/Assembly/App/AssemblyObject.pyi index 1f86b97989..29e9014607 100644 --- a/src/Mod/Assembly/App/AssemblyObject.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -7,8 +7,6 @@ from App.Part import Part @export(Include="Mod/Assembly/App/AssemblyObject.h", Namespace="Assembly") class AssemblyObject(Part): """ - Author: Ondsel (development@ondsel.com) - License: LGPL-2.1-or-later This class handles document objects in Assembly """ diff --git a/src/Mod/Assembly/App/BomGroup.pyi b/src/Mod/Assembly/App/BomGroup.pyi index 32682e5041..eec7081082 100644 --- a/src/Mod/Assembly/App/BomGroup.pyi +++ b/src/Mod/Assembly/App/BomGroup.pyi @@ -5,7 +5,5 @@ from App.DocumentObjectGroup import DocumentObjectGroup @export(Include="Mod/Assembly/App/BomGroup.h", Namespace="Assembly") class BomGroup(DocumentObjectGroup): """ - Author: Ondsel (development@ondsel.com) - License: LGPL-2.1-or-later This class is a group subclass for boms. """ diff --git a/src/Mod/Assembly/App/BomObject.pyi b/src/Mod/Assembly/App/BomObject.pyi index 0ddac8084e..fb0581b921 100644 --- a/src/Mod/Assembly/App/BomObject.pyi +++ b/src/Mod/Assembly/App/BomObject.pyi @@ -8,7 +8,5 @@ from Spreadsheet.Sheet import Sheet ) class BomObject(Sheet): """ - Author: Ondsel (development@ondsel.com) - License: LGPL-2.1-or-later This class is the BOM object of assemblies, it derives from Spreadsheet::Sheet. """ diff --git a/src/Mod/Assembly/App/JointGroup.pyi b/src/Mod/Assembly/App/JointGroup.pyi index 9c66113fbb..f44a008fe3 100644 --- a/src/Mod/Assembly/App/JointGroup.pyi +++ b/src/Mod/Assembly/App/JointGroup.pyi @@ -5,7 +5,5 @@ from App.DocumentObjectGroup import DocumentObjectGroup @export(Include="Mod/Assembly/App/JointGroup.h", Namespace="Assembly") class JointGroup(DocumentObjectGroup): """ - Author: Ondsel (development@ondsel.com) - License: LGPL-2.1-or-later This class is a group subclass for joints. """ diff --git a/src/Mod/Assembly/App/SimulationGroup.pyi b/src/Mod/Assembly/App/SimulationGroup.pyi index 018c759588..56d1fcf155 100644 --- a/src/Mod/Assembly/App/SimulationGroup.pyi +++ b/src/Mod/Assembly/App/SimulationGroup.pyi @@ -5,7 +5,5 @@ from App.DocumentObjectGroup import DocumentObjectGroup @export(Include="Mod/Assembly/App/SimulationGroup.h", Namespace="Assembly") class SimulationGroup(DocumentObjectGroup): """ - Author: Ondsel (development@ondsel.com) - License: LGPL-2.1-or-later This class is a group subclass for joints. """ diff --git a/src/Mod/Assembly/App/ViewGroup.pyi b/src/Mod/Assembly/App/ViewGroup.pyi index cb70dc9f59..9a4eb0e1a2 100644 --- a/src/Mod/Assembly/App/ViewGroup.pyi +++ b/src/Mod/Assembly/App/ViewGroup.pyi @@ -5,7 +5,5 @@ from App.DocumentObjectGroup import DocumentObjectGroup @export(Include="Mod/Assembly/App/ViewGroup.h", Namespace="Assembly") class ViewGroup(DocumentObjectGroup): """ - Author: Ondsel (development@ondsel.com) - License: LGPL-2.1-or-later This class is a group subclass for joints. """ diff --git a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi index b70fe20fc7..6775edbd23 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -7,8 +7,6 @@ from Gui.ViewProvider import ViewProvider @export(Include="Mod/Assembly/Gui/ViewProviderAssembly.h", Namespace="AssemblyGui") class ViewProviderAssembly(ViewProvider): """ - Author: Ondsel (development@ondsel.com) - License: LGPL-2.1-or-later This is the ViewProviderAssembly class """ diff --git a/src/Mod/CAM/App/Area.pyi b/src/Mod/CAM/App/Area.pyi index b5178cdd8c..bb955ad11a 100644 --- a/src/Mod/CAM/App/Area.pyi +++ b/src/Mod/CAM/App/Area.pyi @@ -11,8 +11,6 @@ from Base.Metadata import export ) class Area(BaseClass): """ - Author: Zheng, Lei (realthunder.dev@gmail.com) - License: LGPL-2.1-or-later FreeCAD python wrapper of libarea Path.Area(key=value ...) diff --git a/src/Mod/CAM/App/FeatureArea.pyi b/src/Mod/CAM/App/FeatureArea.pyi index 78ff12076b..aa335f268a 100644 --- a/src/Mod/CAM/App/FeatureArea.pyi +++ b/src/Mod/CAM/App/FeatureArea.pyi @@ -10,8 +10,6 @@ from App.DocumentObject import DocumentObject ) class FeatureArea(DocumentObject): """ - Author: Zheng, Lei (realthunder.dev@gmail.com) - License: LGPL-2.1-or-later This class handles Path Area features """ diff --git a/src/Mod/CAM/App/FeaturePathCompound.pyi b/src/Mod/CAM/App/FeaturePathCompound.pyi index de049bbb81..46b3f57256 100644 --- a/src/Mod/CAM/App/FeaturePathCompound.pyi +++ b/src/Mod/CAM/App/FeaturePathCompound.pyi @@ -11,8 +11,6 @@ from App.DocumentObject import DocumentObject ) class FeaturePathCompound(DocumentObject): """ - Author: Yorik van Havre (yorik@uncreated.net) - License: LGPL-2.1-or-later This class handles Path Compound features """ diff --git a/src/Mod/CAM/App/Path.pyi b/src/Mod/CAM/App/Path.pyi index d3788abaea..d1b1fb3fbe 100644 --- a/src/Mod/CAM/App/Path.pyi +++ b/src/Mod/CAM/App/Path.pyi @@ -13,8 +13,6 @@ from Base.Persistence import Persistence ) class Path(Persistence): """ - Author: Yorik van Havre (yorik@uncreated.net) - License: LGPL-2.1-or-later Path([commands]): Represents a basic Gcode path commands (optional) is a list of Path commands """ diff --git a/src/Mod/CAM/App/Voronoi.pyi b/src/Mod/CAM/App/Voronoi.pyi index 592ad2a553..8273feddd4 100644 --- a/src/Mod/CAM/App/Voronoi.pyi +++ b/src/Mod/CAM/App/Voronoi.pyi @@ -11,8 +11,6 @@ from Base.Metadata import constmethod, export ) class Voronoi(BaseClass): """ - Author: sliptonic (shopinthewoods@gmail.com) - License: LGPL-2.1-or-later Voronoi([segments]): Create voronoi for given collection of line segments """ diff --git a/src/Mod/CAM/App/VoronoiCell.pyi b/src/Mod/CAM/App/VoronoiCell.pyi index f77ee7606e..91e4ff5f40 100644 --- a/src/Mod/CAM/App/VoronoiCell.pyi +++ b/src/Mod/CAM/App/VoronoiCell.pyi @@ -12,8 +12,6 @@ from Base.Metadata import constmethod, export ) class VoronoiCell(BaseClass): """ - Author: sliptonic (shopinthewoods@gmail.com) - License: LGPL-2.1-or-later Cell of a Voronoi diagram """ diff --git a/src/Mod/CAM/App/VoronoiEdge.pyi b/src/Mod/CAM/App/VoronoiEdge.pyi index 49cb0a4d2c..828747880e 100644 --- a/src/Mod/CAM/App/VoronoiEdge.pyi +++ b/src/Mod/CAM/App/VoronoiEdge.pyi @@ -12,8 +12,6 @@ from Base.Metadata import constmethod, export ) class VoronoiEdge(BaseClass): """ - Author: sliptonic (shopinthewoods@gmail.com) - License: LGPL-2.1-or-later Edge of a Voronoi diagram """ diff --git a/src/Mod/CAM/App/VoronoiVertex.pyi b/src/Mod/CAM/App/VoronoiVertex.pyi index 6867da5642..71339eade5 100644 --- a/src/Mod/CAM/App/VoronoiVertex.pyi +++ b/src/Mod/CAM/App/VoronoiVertex.pyi @@ -12,8 +12,6 @@ from Base.Metadata import constmethod, export ) class VoronoiVertex(BaseClass): """ - Author: sliptonic (shopinthewoods@gmail.com) - License: LGPL-2.1-or-later Vertex of a Voronoi diagram """ diff --git a/src/Mod/CAM/PathSimulator/App/PathSim.pyi b/src/Mod/CAM/PathSimulator/App/PathSim.pyi index 072b342e9e..c115ba46dc 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -12,8 +12,6 @@ from Base.Metadata import export ) class PathSim(BaseClass): """ - Author: Shai Seger (shaise_at_g-mail) - License: LGPL-2.1-or-later FreeCAD python wrapper of PathSimulator PathSimulator.PathSim(): diff --git a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi index f40f09b532..ee479a4f82 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -13,8 +13,6 @@ from Metadata import no_args ) class CAMSim(BaseClass): """ - Author: Shai Seger (shaise_at_g-mail) - License: LGPL-2.1-or-later FreeCAD python wrapper of CAMSimulator CAMSimulator.CAMSim(): diff --git a/src/Mod/Fem/App/FemMesh.pyi b/src/Mod/Fem/App/FemMesh.pyi index 390affa8c7..bc0f770c43 100644 --- a/src/Mod/Fem/App/FemMesh.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -13,8 +13,6 @@ from App.ComplexGeoData import ComplexGeoData ) class FemMesh(ComplexGeoData): """ - Author: Juergen Riegel (Juergen.Riegel@web.de) - License: LGPL-2.1-or-later FemMesh class """ diff --git a/src/Mod/Fem/App/FemPostBranchFilter.pyi b/src/Mod/Fem/App/FemPostBranchFilter.pyi index ef00908ea6..014f4dc4d9 100644 --- a/src/Mod/Fem/App/FemPostBranchFilter.pyi +++ b/src/Mod/Fem/App/FemPostBranchFilter.pyi @@ -12,8 +12,6 @@ from Fem.FemPostFilter import FemPostFilter ) class FemPostBranchFilter(FemPostFilter): """ - Author: Stefan Tröger (stefantroeger@gmx.net) - License: LGPL-2.1-or-later The FemPostBranch class. """ diff --git a/src/Mod/Fem/App/FemPostFilter.pyi b/src/Mod/Fem/App/FemPostFilter.pyi index 789b779ae4..b80d4fd709 100644 --- a/src/Mod/Fem/App/FemPostFilter.pyi +++ b/src/Mod/Fem/App/FemPostFilter.pyi @@ -12,8 +12,6 @@ from Fem.FemPostObject import FemPostObject ) class FemPostFilter(FemPostObject): """ - Author: Stefan Tröger (stefantroeger@gmx.net) - License: LGPL-2.1-or-later The FemPostFilter class. """ diff --git a/src/Mod/Fem/App/FemPostObject.pyi b/src/Mod/Fem/App/FemPostObject.pyi index 9829890e7e..8d7d8452b9 100644 --- a/src/Mod/Fem/App/FemPostObject.pyi +++ b/src/Mod/Fem/App/FemPostObject.pyi @@ -12,8 +12,6 @@ from App.GeoFeature import GeoFeature ) class FemPostObject(GeoFeature): """ - Author: Mario Passaglia (mpassaglia@cbc.uba.ar) - License: LGPL-2.1-or-later The FemPostObject class. """ diff --git a/src/Mod/Fem/App/FemPostPipeline.pyi b/src/Mod/Fem/App/FemPostPipeline.pyi index 3bc6fcb9d0..296595a901 100644 --- a/src/Mod/Fem/App/FemPostPipeline.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -12,8 +12,6 @@ from Fem.FemPostObject import FemPostObject ) class FemPostPipeline(FemPostObject): """ - Author: Stefan Tröger (stefantroeger@gmx.net) - License: LGPL-2.1-or-later The FemPostPipeline class. """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi index e04d7a4c2d..607b3b30a8 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi @@ -10,8 +10,6 @@ from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject ) class ViewProviderFemConstraint(ViewProviderGeometryObject): """ - Author: Mario Passaglia (mpassaglia@cbc.uba.ar) - License: LGPL-2.1-or-later This is the ViewProviderFemConstraint class """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi index 8e1cb5fa3c..67dde061fd 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi @@ -10,8 +10,6 @@ from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject ) class ViewProviderFemMesh(ViewProviderGeometryObject): """ - Author: Juergen Riegel (Juergen.Riegel@web.de) - License: LGPL-2.1-or-later ViewProviderFemMesh class """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi index 67d2d3d3ff..253eedfb10 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi @@ -13,8 +13,6 @@ from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject ) class ViewProviderFemPostFilter(ViewProviderDocumentObject): """ - Author: Stefan Tröger (stefantroeger@gmx.net) - License: LGPL-2.1-or-later ViewProviderFemPostPipeline class """ diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi index 828b3b20c3..5882dce89c 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi @@ -10,8 +10,6 @@ from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject ) class ViewProviderFemPostPipeline(ViewProviderDocumentObject): """ - Author: Uwe Stöhr (uwestoehr@lyx.org) - License: LGPL-2.1-or-later ViewProviderFemPostPipeline class """ diff --git a/src/Mod/Import/App/StepShape.pyi b/src/Mod/Import/App/StepShape.pyi index 18d20190db..924e514c49 100644 --- a/src/Mod/Import/App/StepShape.pyi +++ b/src/Mod/Import/App/StepShape.pyi @@ -11,8 +11,6 @@ from Base.PyObjectBase import PyObjectBase ) class StepShape(PyObjectBase): """ - Author: Juergen Riegel (Juergen.Riegel@web.de) - License: LGPL-2.1-or-later StepShape in Import This class gives a interface to retrieve TopoShapes out of an loaded STEP file of any kind. """ diff --git a/src/Mod/Measure/App/MeasureBase.pyi b/src/Mod/Measure/App/MeasureBase.pyi index dbf0502c8c..8a54897167 100644 --- a/src/Mod/Measure/App/MeasureBase.pyi +++ b/src/Mod/Measure/App/MeasureBase.pyi @@ -9,7 +9,5 @@ from App.DocumentObject import DocumentObject ) class MeasureBase(DocumentObject): """ - Author: David Friedli(hlorus) (david@friedli-be.ch) - License: LGPL-2.1-or-later User documentation here """ diff --git a/src/Mod/Measure/App/Measurement.pyi b/src/Mod/Measure/App/Measurement.pyi index ebd4f2d5d6..33d6843c2c 100644 --- a/src/Mod/Measure/App/Measurement.pyi +++ b/src/Mod/Measure/App/Measurement.pyi @@ -10,8 +10,6 @@ from Base.Metadata import export ) class Measurement(BaseClass): """ - Author: Luke Parry (l.parry@warwick.ac.uk) - License: LGPL-2.1-or-later Make a measurement """ diff --git a/src/Mod/Measure/Gui/QuickMeasure.pyi b/src/Mod/Measure/Gui/QuickMeasure.pyi index 7b369f67ad..68dfbd0fe9 100644 --- a/src/Mod/Measure/Gui/QuickMeasure.pyi +++ b/src/Mod/Measure/Gui/QuickMeasure.pyi @@ -9,7 +9,5 @@ from Base.PyObjectBase import PyObjectBase ) class QuickMeasure(PyObjectBase): """ - Author: Ondsel (development@ondsel.com) - License: LGPL-2.1-or-later Selection Observer for the QuickMeasure label. """ diff --git a/src/Mod/Mesh/App/Edge.pyi b/src/Mod/Mesh/App/Edge.pyi index c6bbb5e915..45538102af 100644 --- a/src/Mod/Mesh/App/Edge.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -11,8 +11,6 @@ from Base.PyObjectBase import PyObjectBase ) class Edge(PyObjectBase): """ - Author: Werner Mayer (wmayer[at]users.sourceforge.net) - License: LGPL-2.1-or-later Edge in mesh This is an edge of a facet in a MeshObject. You can get it by e.g. iterating over the facets of a mesh and calling getEdge(index). diff --git a/src/Mod/Mesh/App/Facet.pyi b/src/Mod/Mesh/App/Facet.pyi index 25ccebc088..37fb5e8287 100644 --- a/src/Mod/Mesh/App/Facet.pyi +++ b/src/Mod/Mesh/App/Facet.pyi @@ -11,8 +11,6 @@ from Base.PyObjectBase import PyObjectBase ) class Facet(PyObjectBase): """ - Author: Juergen Riegel (Juergen.Riegel@web.de) - License: LGPL-2.1-or-later Facet in mesh This is a facet in a MeshObject. You can get it by e.g. iterating a mesh. The facet has a connection to its mesh and allows therefore diff --git a/src/Mod/Mesh/App/Mesh.pyi b/src/Mod/Mesh/App/Mesh.pyi index 0543fc8aa8..c29b7e3d98 100644 --- a/src/Mod/Mesh/App/Mesh.pyi +++ b/src/Mod/Mesh/App/Mesh.pyi @@ -20,10 +20,7 @@ from App.ComplexGeoData import ComplexGeoData class PropertyMeshKernel* parentProperty = nullptr;""" ) class Mesh(ComplexGeoData): - """ - Author: Juergen Riegel (Juergen.Riegel@web.de) - License: LGPL-2.1-or-later - Mesh() -- Create an empty mesh object. + """Mesh() -- Create an empty mesh object. This class allows one to manipulate the mesh object by adding new facets, deleting facets, importing from an STL file, transforming the mesh and much more. diff --git a/src/Mod/Mesh/App/MeshFeature.pyi b/src/Mod/Mesh/App/MeshFeature.pyi index 5c65db70946..54ee0c810f 100644 --- a/src/Mod/Mesh/App/MeshFeature.pyi +++ b/src/Mod/Mesh/App/MeshFeature.pyi @@ -13,8 +13,6 @@ from App.GeoFeature import GeoFeature ) class MeshFeature(GeoFeature): """ - Author: Werner Mayer (wmayer@users.sourceforge.net) - License: LGPL-2.1-or-later The Mesh::Feature class handles meshes. The Mesh.MeshFeature() function is for internal use only and cannot be used to create instances of this class. Therefore you must have a reference to a document, e.g. 'd' then you can create an instance with diff --git a/src/Mod/Mesh/App/MeshPoint.pyi b/src/Mod/Mesh/App/MeshPoint.pyi index d2e642b61e..67d82b5ade 100644 --- a/src/Mod/Mesh/App/MeshPoint.pyi +++ b/src/Mod/Mesh/App/MeshPoint.pyi @@ -11,8 +11,6 @@ from Base.PyObjectBase import PyObjectBase ) class MeshPoint(PyObjectBase): """ - Author: Juergen Riegel (FreeCAD@juergen-riegel.net) - License: LGPL-2.1-or-later Point in mesh This is a point in a MeshObject. You can get it by e.g. iterating a mesh. The point has a connection to its mesh and allows therefore diff --git a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi index eae1c7b0c6..4747926c43 100644 --- a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi +++ b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi @@ -8,8 +8,6 @@ from Base.Metadata import export ) class ViewProviderMesh(ViewProviderGeometryObject): """ - Author: Werner Mayer (wmayer@users.sourceforge.net) - License: LGPL-2.1-or-later This is the ViewProvider base class """ diff --git a/src/Mod/Points/App/Points.pyi b/src/Mod/Points/App/Points.pyi index 5d2d196565..860ec81bad 100644 --- a/src/Mod/Points/App/Points.pyi +++ b/src/Mod/Points/App/Points.pyi @@ -15,8 +15,6 @@ from Data import object ) class Points(object): """ - Author: Juergen Riegel (Juergen.Riegel@web.de) - License: LGPL-2.1-or-later Points() -- Create an empty points object. This class allows one to manipulate the Points object by adding new points, deleting facets, importing from an STL file, diff --git a/src/Mod/Robot/App/Robot6Axis.pyi b/src/Mod/Robot/App/Robot6Axis.pyi index 5d75de5cce..f764c6036f 100644 --- a/src/Mod/Robot/App/Robot6Axis.pyi +++ b/src/Mod/Robot/App/Robot6Axis.pyi @@ -11,8 +11,6 @@ from Base.Persistence import Persistence ) class Robot6Axis(Persistence): """ - Author: Juergen Riegel (Juergen.Riegel@web.de) - License: LGPL-2.1-or-later Robot6Axis class """ diff --git a/src/Mod/Robot/App/RobotObject.pyi b/src/Mod/Robot/App/RobotObject.pyi index 64c40f4b58..ec30f9106d 100644 --- a/src/Mod/Robot/App/RobotObject.pyi +++ b/src/Mod/Robot/App/RobotObject.pyi @@ -10,8 +10,6 @@ from App.DocumentObject import DocumentObject ) class RobotObject(DocumentObject): """ - Author: Juergen Riegel (FreeCAD@juergen-riegel.net) - License: LGPL-2.1-or-later Robot document object """ diff --git a/src/Mod/Robot/App/Trajectory.pyi b/src/Mod/Robot/App/Trajectory.pyi index 7c748d2931..34729f9663 100644 --- a/src/Mod/Robot/App/Trajectory.pyi +++ b/src/Mod/Robot/App/Trajectory.pyi @@ -11,8 +11,6 @@ from Base.Persistence import Persistence ) class Trajectory(Persistence): """ - Author: Juergen Riegel (Juergen.Riegel@web.de) - License: LGPL-2.1-or-later Trajectory class """ diff --git a/src/Mod/Robot/App/Waypoint.pyi b/src/Mod/Robot/App/Waypoint.pyi index 838c0828fc..e01c993a4e 100644 --- a/src/Mod/Robot/App/Waypoint.pyi +++ b/src/Mod/Robot/App/Waypoint.pyi @@ -11,8 +11,6 @@ from Base.Persistence import Persistence ) class Waypoint(Persistence): """ - Author: Juergen Riegel (Juergen.Riegel@web.de) - License: LGPL-2.1-or-later Waypoint class """ diff --git a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi index f0214a7d90..c222bb0bf2 100644 --- a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi +++ b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi @@ -8,7 +8,5 @@ from Base.Persistence import Persistence ) class PropertyColumnWidths(Persistence): """ - Author: Eivind Kvedalen (eivind@kvedalen.name) - License: LGPL-2.1-or-later Internal spreadsheet object """ diff --git a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi index 2e17ea82fc..29a40ecf57 100644 --- a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi +++ b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi @@ -8,7 +8,5 @@ from Base.Persistence import Persistence ) class PropertyRowHeights(Persistence): """ - Author: Eivind Kvedalen (eivind@kvedalen.name) - License: LGPL-2.1-or-later Internal spreadsheet object """ diff --git a/src/Mod/Spreadsheet/App/PropertySheet.pyi b/src/Mod/Spreadsheet/App/PropertySheet.pyi index ba65c1d6ab..d9a7e71260 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.pyi +++ b/src/Mod/Spreadsheet/App/PropertySheet.pyi @@ -11,7 +11,5 @@ from Base.Persistence import Persistence ) class PropertySheet(Persistence): """ - Author: Eivind Kvedalen (eivind@kvedalen.name) - License: LGPL-2.1-or-later Internal spreadsheet object """ diff --git a/src/Mod/Spreadsheet/App/Sheet.pyi b/src/Mod/Spreadsheet/App/Sheet.pyi index c020aaca14..08d4ca43a8 100644 --- a/src/Mod/Spreadsheet/App/Sheet.pyi +++ b/src/Mod/Spreadsheet/App/Sheet.pyi @@ -11,8 +11,6 @@ from App.DocumentObject import DocumentObject ) class Sheet(DocumentObject): """ - Author: Eivind Kvedalen (eivind@kvedalen.name) - License: LGPL-2.1-or-later With this object you can manipulate spreadsheets """ diff --git a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi index 134d604217..641eb78672 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi @@ -12,8 +12,6 @@ from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject ) class ViewProviderSpreadsheet(ViewProviderDocumentObject): """ - Author: Jose Luis Cercos Pita (jlcercos@gmail.com) - License: LGPL-2.1-or-later ViewProviderSheet class """ diff --git a/src/Mod/Surface/App/Blending/BlendCurve.pyi b/src/Mod/Surface/App/Blending/BlendCurve.pyi index b058126713..bc996f65a2 100644 --- a/src/Mod/Surface/App/Blending/BlendCurve.pyi +++ b/src/Mod/Surface/App/Blending/BlendCurve.pyi @@ -11,8 +11,6 @@ from Base.Metadata import export ) class BlendCurve(PyObjectBase): """ - Author: Mattéo Grellier (matteogrellier@gmail.com) - License: LGPL-2.1-or-later Create a BlendCurve that interpolate 2 BlendPoints. curve = BlendCurve(BlendPoint1, BlendPoint2) """ diff --git a/src/Mod/Surface/App/Blending/BlendPoint.pyi b/src/Mod/Surface/App/Blending/BlendPoint.pyi index 62a9278578..6c3cc229e5 100644 --- a/src/Mod/Surface/App/Blending/BlendPoint.pyi +++ b/src/Mod/Surface/App/Blending/BlendPoint.pyi @@ -11,8 +11,6 @@ from Base.Metadata import constmethod, export ) class BlendPoint(PyObjectBase): """ - Author: Mattéo Grellier (matteogrellier@gmail.com) - License: LGPL-2.1-or-later Create BlendPoint from a point and some derivatives. myBlendPoint = BlendPoint([Point, D1, D2, ..., DN]) BlendPoint can also be constructed from an edge diff --git a/src/Mod/TechDraw/App/CenterLine.pyi b/src/Mod/TechDraw/App/CenterLine.pyi index be065ce7ba..5d5af6a279 100644 --- a/src/Mod/TechDraw/App/CenterLine.pyi +++ b/src/Mod/TechDraw/App/CenterLine.pyi @@ -11,8 +11,6 @@ from Base.Metadata import constmethod, export ) class CenterLine(PyObjectBase): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later CenterLine specifies additional mark up edges in a View """ diff --git a/src/Mod/TechDraw/App/CosmeticEdge.pyi b/src/Mod/TechDraw/App/CosmeticEdge.pyi index 7b6da502ea..e3738382f8 100644 --- a/src/Mod/TechDraw/App/CosmeticEdge.pyi +++ b/src/Mod/TechDraw/App/CosmeticEdge.pyi @@ -12,8 +12,6 @@ from Base.Metadata import export ) class CosmeticEdge(PyObjectBase): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later CosmeticEdge specifies an extra (cosmetic) edge in Views """ diff --git a/src/Mod/TechDraw/App/CosmeticExtension.pyi b/src/Mod/TechDraw/App/CosmeticExtension.pyi index 795a6f36e8..f8608e676d 100644 --- a/src/Mod/TechDraw/App/CosmeticExtension.pyi +++ b/src/Mod/TechDraw/App/CosmeticExtension.pyi @@ -8,7 +8,5 @@ from App.DocumentObjectExtension import DocumentObjectExtension ) class CosmeticExtension(DocumentObjectExtension): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later This object represents cosmetic features for a DrawViewPart. """ diff --git a/src/Mod/TechDraw/App/CosmeticVertex.pyi b/src/Mod/TechDraw/App/CosmeticVertex.pyi index c8dec0f702..ab9fd8c9d5 100644 --- a/src/Mod/TechDraw/App/CosmeticVertex.pyi +++ b/src/Mod/TechDraw/App/CosmeticVertex.pyi @@ -11,8 +11,6 @@ from Base.Metadata import constmethod, export ) class CosmeticVertex(PyObjectBase): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later CosmeticVertex specifies an extra (cosmetic) vertex in Views """ diff --git a/src/Mod/TechDraw/App/DrawBrokenView.pyi b/src/Mod/TechDraw/App/DrawBrokenView.pyi index 2401822442..75990e5573 100644 --- a/src/Mod/TechDraw/App/DrawBrokenView.pyi +++ b/src/Mod/TechDraw/App/DrawBrokenView.pyi @@ -10,8 +10,6 @@ from TechDraw.DrawViewPart import DrawViewPart ) class DrawBrokenView(DrawViewPart): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing broken views """ diff --git a/src/Mod/TechDraw/App/DrawGeomHatch.pyi b/src/Mod/TechDraw/App/DrawGeomHatch.pyi index 6255c0e5d4..3336b2ea4b 100644 --- a/src/Mod/TechDraw/App/DrawGeomHatch.pyi +++ b/src/Mod/TechDraw/App/DrawGeomHatch.pyi @@ -9,8 +9,6 @@ from App.DocumentObject import DocumentObject ) class DrawGeomHatch(DocumentObject): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing GeomHatch areas """ diff --git a/src/Mod/TechDraw/App/DrawHatch.pyi b/src/Mod/TechDraw/App/DrawHatch.pyi index 441644d553..8f964b5091 100644 --- a/src/Mod/TechDraw/App/DrawHatch.pyi +++ b/src/Mod/TechDraw/App/DrawHatch.pyi @@ -8,8 +8,6 @@ from App.DocumentObject import DocumentObject ) class DrawHatch(DocumentObject): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Hatch areas """ diff --git a/src/Mod/TechDraw/App/DrawLeaderLine.pyi b/src/Mod/TechDraw/App/DrawLeaderLine.pyi index 5bf5e04474..216b0a8dff 100644 --- a/src/Mod/TechDraw/App/DrawLeaderLine.pyi +++ b/src/Mod/TechDraw/App/DrawLeaderLine.pyi @@ -8,7 +8,5 @@ from DrawView import DrawView ) class DrawLeaderLine(DrawView): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for adding leaders to Technical Drawings """ diff --git a/src/Mod/TechDraw/App/DrawPage.pyi b/src/Mod/TechDraw/App/DrawPage.pyi index b0e516fa26..a929df45b6 100644 --- a/src/Mod/TechDraw/App/DrawPage.pyi +++ b/src/Mod/TechDraw/App/DrawPage.pyi @@ -9,8 +9,6 @@ from App.DocumentObject import DocumentObject ) class DrawPage(DocumentObject): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Pages """ diff --git a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi index f6b13074ec..8447884185 100644 --- a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi @@ -10,8 +10,6 @@ from DrawTemplate import DrawTemplate ) class DrawParametricTemplate(DrawTemplate): """ - Author: Luke Parry (l.parry@warwick.ac.uk) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Templates """ diff --git a/src/Mod/TechDraw/App/DrawProjGroup.pyi b/src/Mod/TechDraw/App/DrawProjGroup.pyi index 483e4d945d..789daae7d1 100644 --- a/src/Mod/TechDraw/App/DrawProjGroup.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroup.pyi @@ -10,8 +10,6 @@ from TechDraw.DrawViewCollection import DrawViewCollection ) class DrawProjGroup(DrawViewCollection): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Projection Groups """ diff --git a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi index d55ae8e8ca..38e3712e6e 100644 --- a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi @@ -10,8 +10,6 @@ from TechDraw.DrawViewPart import DrawViewPart ) class DrawProjGroupItem(DrawViewPart): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating component Views Technical Drawing Projection Groups """ diff --git a/src/Mod/TechDraw/App/DrawRichAnno.pyi b/src/Mod/TechDraw/App/DrawRichAnno.pyi index 335deab6d1..b6892a6acd 100644 --- a/src/Mod/TechDraw/App/DrawRichAnno.pyi +++ b/src/Mod/TechDraw/App/DrawRichAnno.pyi @@ -8,7 +8,5 @@ from TechDraw.DrawView import DrawView ) class DrawRichAnno(DrawView): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for adding rich annotation blocks to Technical Drawings """ diff --git a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi index 4e804b4a37..40b1566e01 100644 --- a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi @@ -10,8 +10,6 @@ from DrawTemplate import DrawTemplate ) class DrawSVGTemplate(DrawTemplate): """ - Author: Luke Parry (l.parry@warwick.ac.uk) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing SVG Templates """ diff --git a/src/Mod/TechDraw/App/DrawTemplate.pyi b/src/Mod/TechDraw/App/DrawTemplate.pyi index 0c28342bd0..bb66893593 100644 --- a/src/Mod/TechDraw/App/DrawTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawTemplate.pyi @@ -8,7 +8,5 @@ from App.DocumentObject import DocumentObject ) class DrawTemplate(DocumentObject): """ - Author: Luke Parry (l.parry@warwick.ac.uk) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Templates """ diff --git a/src/Mod/TechDraw/App/DrawTile.pyi b/src/Mod/TechDraw/App/DrawTile.pyi index 39b7c9bdf9..973dccce21 100644 --- a/src/Mod/TechDraw/App/DrawTile.pyi +++ b/src/Mod/TechDraw/App/DrawTile.pyi @@ -8,7 +8,5 @@ from App.DocumentObject import DocumentObject ) class DrawTile(DocumentObject): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for adding tiles to leader lines """ diff --git a/src/Mod/TechDraw/App/DrawTileWeld.pyi b/src/Mod/TechDraw/App/DrawTileWeld.pyi index 05dc3c2178..1269aeaed9 100644 --- a/src/Mod/TechDraw/App/DrawTileWeld.pyi +++ b/src/Mod/TechDraw/App/DrawTileWeld.pyi @@ -8,7 +8,5 @@ from TechDraw.DrawTile import DrawTile ) class DrawTileWeld(DrawTile): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for adding welding tiles to leader lines """ diff --git a/src/Mod/TechDraw/App/DrawView.pyi b/src/Mod/TechDraw/App/DrawView.pyi index 9d422a40dd..60a3549e89 100644 --- a/src/Mod/TechDraw/App/DrawView.pyi +++ b/src/Mod/TechDraw/App/DrawView.pyi @@ -10,8 +10,6 @@ from App.DocumentObject import DocumentObject ) class DrawView(DocumentObject): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Views """ diff --git a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi index d9dded9e71..17bebc8550 100644 --- a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi +++ b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi @@ -8,7 +8,5 @@ from TechDraw.Drawview import DrawView ) class DrawViewAnnotation(DrawView): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Annotation Views """ diff --git a/src/Mod/TechDraw/App/DrawViewClip.pyi b/src/Mod/TechDraw/App/DrawViewClip.pyi index 898733ebf9..1557e5ef6c 100644 --- a/src/Mod/TechDraw/App/DrawViewClip.pyi +++ b/src/Mod/TechDraw/App/DrawViewClip.pyi @@ -10,8 +10,6 @@ from TechDraw.DrawView import DrawView ) class DrawViewClip(DrawView): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Clip Views """ diff --git a/src/Mod/TechDraw/App/DrawViewCollection.pyi b/src/Mod/TechDraw/App/DrawViewCollection.pyi index cc766471ca..0e558016c2 100644 --- a/src/Mod/TechDraw/App/DrawViewCollection.pyi +++ b/src/Mod/TechDraw/App/DrawViewCollection.pyi @@ -10,8 +10,6 @@ from TechDraw.DrawView import DrawView ) class DrawViewCollection(DrawView): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing View Collections """ diff --git a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi index 27b9f79380..af65c4ba97 100644 --- a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi @@ -10,8 +10,6 @@ from TechDraw.DrawViewDimension import DrawViewDimension ) class DrawViewDimExtent(DrawViewDimension): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing DimExtents """ diff --git a/src/Mod/TechDraw/App/DrawViewDimension.pyi b/src/Mod/TechDraw/App/DrawViewDimension.pyi index cfaf7dfec7..0abe5c3857 100644 --- a/src/Mod/TechDraw/App/DrawViewDimension.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimension.pyi @@ -10,8 +10,6 @@ from TechDraw.DrawView import DrawView ) class DrawViewDimension(DrawView): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Dimensions """ diff --git a/src/Mod/TechDraw/App/DrawViewPart.pyi b/src/Mod/TechDraw/App/DrawViewPart.pyi index 50be858372..60c9a073b6 100644 --- a/src/Mod/TechDraw/App/DrawViewPart.pyi +++ b/src/Mod/TechDraw/App/DrawViewPart.pyi @@ -10,8 +10,6 @@ from TechDraw.rawView import DrawView ) class DrawViewPart(DrawView): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Technical Drawing Part Views """ diff --git a/src/Mod/TechDraw/App/DrawViewSymbol.pyi b/src/Mod/TechDraw/App/DrawViewSymbol.pyi index eb1dd944b8..1069a3f88e 100644 --- a/src/Mod/TechDraw/App/DrawViewSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawViewSymbol.pyi @@ -10,8 +10,6 @@ from TechDraw.DrawView import DrawView ) class DrawViewSymbol(DrawView): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for creating and manipulating Drawing SVG Symbol Views """ diff --git a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi index f6a494af44..41be571131 100644 --- a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi @@ -8,7 +8,5 @@ from TechDraw.DrawView import DrawView ) class DrawWeldSymbol(DrawView): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later Feature for adding welding tiles to leader lines """ diff --git a/src/Mod/TechDraw/App/GeomFormat.pyi b/src/Mod/TechDraw/App/GeomFormat.pyi index 28bb0373f7..41641acf76 100644 --- a/src/Mod/TechDraw/App/GeomFormat.pyi +++ b/src/Mod/TechDraw/App/GeomFormat.pyi @@ -11,8 +11,6 @@ from Base.Metadata import constmethod, export ) class GeomFormat(PyObjectBase): """ - Author: WandererFan (wandererfan@gmail.com) - License: LGPL-2.1-or-later GeomFormat specifies appearance parameters for TechDraw Geometry objects """ From 78ec52f1a8590c844383bc06807cfa0f67c7850d Mon Sep 17 00:00:00 2001 From: Ian 'z0r0' Abreu Date: Tue, 2 Sep 2025 08:28:47 -0400 Subject: [PATCH 10/10] updating docblock locations. --- src/Mod/Assembly/App/AssemblyLink.pyi | 3 +++ src/Mod/Assembly/App/AssemblyObject.pyi | 3 +++ src/Mod/Assembly/App/BomGroup.pyi | 3 +++ src/Mod/Assembly/App/BomObject.pyi | 3 +++ src/Mod/Assembly/App/JointGroup.pyi | 3 +++ src/Mod/Assembly/App/SimulationGroup.pyi | 3 +++ src/Mod/Assembly/App/ViewGroup.pyi | 3 +++ src/Mod/Assembly/Gui/ViewProviderAssembly.pyi | 3 +++ src/Mod/CAM/App/Area.pyi | 3 +++ src/Mod/CAM/App/FeatureArea.pyi | 3 +++ src/Mod/CAM/App/FeaturePathCompound.pyi | 3 +++ src/Mod/CAM/App/Path.pyi | 3 +++ src/Mod/CAM/App/Voronoi.pyi | 3 +++ src/Mod/CAM/App/VoronoiCell.pyi | 3 +++ src/Mod/CAM/App/VoronoiEdge.pyi | 3 +++ src/Mod/CAM/App/VoronoiVertex.pyi | 3 +++ src/Mod/CAM/PathSimulator/App/PathSim.pyi | 3 +++ src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi | 3 +++ src/Mod/Fem/App/FemMesh.pyi | 3 +++ src/Mod/Fem/App/FemPostBranchFilter.pyi | 3 +++ src/Mod/Fem/App/FemPostFilter.pyi | 3 +++ src/Mod/Fem/App/FemPostObject.pyi | 3 +++ src/Mod/Fem/App/FemPostPipeline.pyi | 3 +++ src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi | 3 +++ src/Mod/Fem/Gui/ViewProviderFemMesh.pyi | 3 +++ src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi | 3 +++ src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi | 3 +++ src/Mod/Import/App/StepShape.pyi | 3 +++ src/Mod/Measure/App/MeasureBase.pyi | 3 +++ src/Mod/Measure/App/Measurement.pyi | 3 +++ src/Mod/Measure/Gui/QuickMeasure.pyi | 3 +++ src/Mod/Mesh/App/Edge.pyi | 3 +++ src/Mod/Mesh/App/Facet.pyi | 3 +++ src/Mod/Mesh/App/Mesh.pyi | 6 +++++- src/Mod/Mesh/App/MeshFeature.pyi | 3 +++ src/Mod/Mesh/App/MeshPoint.pyi | 3 +++ src/Mod/Mesh/Gui/ViewProviderMesh.pyi | 3 +++ src/Mod/Points/App/Points.pyi | 3 +++ src/Mod/Robot/App/Robot6Axis.pyi | 3 +++ src/Mod/Robot/App/RobotObject.pyi | 3 +++ src/Mod/Robot/App/Trajectory.pyi | 3 +++ src/Mod/Robot/App/Waypoint.pyi | 3 +++ src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi | 3 +++ src/Mod/Spreadsheet/App/PropertyRowHeights.pyi | 3 +++ src/Mod/Spreadsheet/App/PropertySheet.pyi | 3 +++ src/Mod/Spreadsheet/App/Sheet.pyi | 3 +++ src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi | 3 +++ src/Mod/Surface/App/Blending/BlendCurve.pyi | 3 +++ src/Mod/Surface/App/Blending/BlendPoint.pyi | 3 +++ src/Mod/TechDraw/App/CenterLine.pyi | 3 +++ src/Mod/TechDraw/App/CosmeticEdge.pyi | 3 +++ src/Mod/TechDraw/App/CosmeticExtension.pyi | 3 +++ src/Mod/TechDraw/App/CosmeticVertex.pyi | 3 +++ src/Mod/TechDraw/App/DrawBrokenView.pyi | 3 +++ src/Mod/TechDraw/App/DrawGeomHatch.pyi | 3 +++ src/Mod/TechDraw/App/DrawHatch.pyi | 3 +++ src/Mod/TechDraw/App/DrawLeaderLine.pyi | 3 +++ src/Mod/TechDraw/App/DrawPage.pyi | 3 +++ src/Mod/TechDraw/App/DrawParametricTemplate.pyi | 3 +++ src/Mod/TechDraw/App/DrawProjGroup.pyi | 3 +++ src/Mod/TechDraw/App/DrawProjGroupItem.pyi | 3 +++ src/Mod/TechDraw/App/DrawRichAnno.pyi | 3 +++ src/Mod/TechDraw/App/DrawSVGTemplate.pyi | 3 +++ src/Mod/TechDraw/App/DrawTemplate.pyi | 3 +++ src/Mod/TechDraw/App/DrawTile.pyi | 3 +++ src/Mod/TechDraw/App/DrawTileWeld.pyi | 3 +++ src/Mod/TechDraw/App/DrawView.pyi | 3 +++ src/Mod/TechDraw/App/DrawViewAnnotation.pyi | 3 +++ src/Mod/TechDraw/App/DrawViewClip.pyi | 3 +++ src/Mod/TechDraw/App/DrawViewCollection.pyi | 3 +++ src/Mod/TechDraw/App/DrawViewDimExtent.pyi | 3 +++ src/Mod/TechDraw/App/DrawViewDimension.pyi | 3 +++ src/Mod/TechDraw/App/DrawViewPart.pyi | 3 +++ src/Mod/TechDraw/App/DrawViewSymbol.pyi | 3 +++ src/Mod/TechDraw/App/DrawWeldSymbol.pyi | 3 +++ src/Mod/TechDraw/App/GeomFormat.pyi | 3 +++ 76 files changed, 230 insertions(+), 1 deletion(-) diff --git a/src/Mod/Assembly/App/AssemblyLink.pyi b/src/Mod/Assembly/App/AssemblyLink.pyi index f78aa8e613..e5305bef46 100644 --- a/src/Mod/Assembly/App/AssemblyLink.pyi +++ b/src/Mod/Assembly/App/AssemblyLink.pyi @@ -11,6 +11,9 @@ from App.Part import Part class AssemblyLink(Part): """ This class handles document objects in Assembly + + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later """ Joints: Final[list] diff --git a/src/Mod/Assembly/App/AssemblyObject.pyi b/src/Mod/Assembly/App/AssemblyObject.pyi index 29e9014607..d72db28d34 100644 --- a/src/Mod/Assembly/App/AssemblyObject.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -8,6 +8,9 @@ from App.Part import Part class AssemblyObject(Part): """ This class handles document objects in Assembly + + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later """ @constmethod diff --git a/src/Mod/Assembly/App/BomGroup.pyi b/src/Mod/Assembly/App/BomGroup.pyi index eec7081082..7157bc70ad 100644 --- a/src/Mod/Assembly/App/BomGroup.pyi +++ b/src/Mod/Assembly/App/BomGroup.pyi @@ -6,4 +6,7 @@ from App.DocumentObjectGroup import DocumentObjectGroup class BomGroup(DocumentObjectGroup): """ This class is a group subclass for boms. + + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/Assembly/App/BomObject.pyi b/src/Mod/Assembly/App/BomObject.pyi index fb0581b921..9e6df7de1b 100644 --- a/src/Mod/Assembly/App/BomObject.pyi +++ b/src/Mod/Assembly/App/BomObject.pyi @@ -9,4 +9,7 @@ from Spreadsheet.Sheet import Sheet class BomObject(Sheet): """ This class is the BOM object of assemblies, it derives from Spreadsheet::Sheet. + + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/Assembly/App/JointGroup.pyi b/src/Mod/Assembly/App/JointGroup.pyi index f44a008fe3..1a23e0f5c5 100644 --- a/src/Mod/Assembly/App/JointGroup.pyi +++ b/src/Mod/Assembly/App/JointGroup.pyi @@ -6,4 +6,7 @@ from App.DocumentObjectGroup import DocumentObjectGroup class JointGroup(DocumentObjectGroup): """ This class is a group subclass for joints. + + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/Assembly/App/SimulationGroup.pyi b/src/Mod/Assembly/App/SimulationGroup.pyi index 56d1fcf155..bcd589cd8c 100644 --- a/src/Mod/Assembly/App/SimulationGroup.pyi +++ b/src/Mod/Assembly/App/SimulationGroup.pyi @@ -6,4 +6,7 @@ from App.DocumentObjectGroup import DocumentObjectGroup class SimulationGroup(DocumentObjectGroup): """ This class is a group subclass for joints. + + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/Assembly/App/ViewGroup.pyi b/src/Mod/Assembly/App/ViewGroup.pyi index 9a4eb0e1a2..c5d3ad26e3 100644 --- a/src/Mod/Assembly/App/ViewGroup.pyi +++ b/src/Mod/Assembly/App/ViewGroup.pyi @@ -6,4 +6,7 @@ from App.DocumentObjectGroup import DocumentObjectGroup class ViewGroup(DocumentObjectGroup): """ This class is a group subclass for joints. + + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi index 6775edbd23..7d7e36313b 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -8,6 +8,9 @@ from Gui.ViewProvider import ViewProvider class ViewProviderAssembly(ViewProvider): """ This is the ViewProviderAssembly class + + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later """ def isInEditMode(self) -> Any: diff --git a/src/Mod/CAM/App/Area.pyi b/src/Mod/CAM/App/Area.pyi index bb955ad11a..69a6c81679 100644 --- a/src/Mod/CAM/App/Area.pyi +++ b/src/Mod/CAM/App/Area.pyi @@ -17,6 +17,9 @@ class Area(BaseClass): The constructor accepts the same parameters as setParams(...) to configure the object All arguments are optional. + + Author: Zheng, Lei (realthunder.dev@gmail.com) + License: LGPL-2.1-or-later """ def add(self, **kwargs) -> Any: diff --git a/src/Mod/CAM/App/FeatureArea.pyi b/src/Mod/CAM/App/FeatureArea.pyi index aa335f268a..c8827527fe 100644 --- a/src/Mod/CAM/App/FeatureArea.pyi +++ b/src/Mod/CAM/App/FeatureArea.pyi @@ -11,6 +11,9 @@ from App.DocumentObject import DocumentObject class FeatureArea(DocumentObject): """ This class handles Path Area features + + Author: Zheng, Lei (realthunder.dev@gmail.com) + License: LGPL-2.1-or-later """ def getArea(self) -> Any: diff --git a/src/Mod/CAM/App/FeaturePathCompound.pyi b/src/Mod/CAM/App/FeaturePathCompound.pyi index 46b3f57256..1337d465a3 100644 --- a/src/Mod/CAM/App/FeaturePathCompound.pyi +++ b/src/Mod/CAM/App/FeaturePathCompound.pyi @@ -12,6 +12,9 @@ from App.DocumentObject import DocumentObject class FeaturePathCompound(DocumentObject): """ This class handles Path Compound features + + Author: Yorik van Havre (yorik@uncreated.net) + License: LGPL-2.1-or-later """ def addObject(self) -> Any: diff --git a/src/Mod/CAM/App/Path.pyi b/src/Mod/CAM/App/Path.pyi index d1b1fb3fbe..b6b69550ab 100644 --- a/src/Mod/CAM/App/Path.pyi +++ b/src/Mod/CAM/App/Path.pyi @@ -15,6 +15,9 @@ class Path(Persistence): """ Path([commands]): Represents a basic Gcode path commands (optional) is a list of Path commands + + Author: Yorik van Havre (yorik@uncreated.net) + License: LGPL-2.1-or-later """ def addCommands(self) -> Any: diff --git a/src/Mod/CAM/App/Voronoi.pyi b/src/Mod/CAM/App/Voronoi.pyi index 8273feddd4..3549103dfc 100644 --- a/src/Mod/CAM/App/Voronoi.pyi +++ b/src/Mod/CAM/App/Voronoi.pyi @@ -12,6 +12,9 @@ from Base.Metadata import constmethod, export class Voronoi(BaseClass): """ Voronoi([segments]): Create voronoi for given collection of line segments + + Author: sliptonic (shopinthewoods@gmail.com) + License: LGPL-2.1-or-later """ @constmethod diff --git a/src/Mod/CAM/App/VoronoiCell.pyi b/src/Mod/CAM/App/VoronoiCell.pyi index 91e4ff5f40..80a23597bd 100644 --- a/src/Mod/CAM/App/VoronoiCell.pyi +++ b/src/Mod/CAM/App/VoronoiCell.pyi @@ -13,6 +13,9 @@ from Base.Metadata import constmethod, export class VoronoiCell(BaseClass): """ Cell of a Voronoi diagram + + Author: sliptonic (shopinthewoods@gmail.com) + License: LGPL-2.1-or-later """ @constmethod diff --git a/src/Mod/CAM/App/VoronoiEdge.pyi b/src/Mod/CAM/App/VoronoiEdge.pyi index 828747880e..fae416b14c 100644 --- a/src/Mod/CAM/App/VoronoiEdge.pyi +++ b/src/Mod/CAM/App/VoronoiEdge.pyi @@ -13,6 +13,9 @@ from Base.Metadata import constmethod, export class VoronoiEdge(BaseClass): """ Edge of a Voronoi diagram + + Author: sliptonic (shopinthewoods@gmail.com) + License: LGPL-2.1-or-later """ @constmethod diff --git a/src/Mod/CAM/App/VoronoiVertex.pyi b/src/Mod/CAM/App/VoronoiVertex.pyi index 71339eade5..a694091baa 100644 --- a/src/Mod/CAM/App/VoronoiVertex.pyi +++ b/src/Mod/CAM/App/VoronoiVertex.pyi @@ -13,6 +13,9 @@ from Base.Metadata import constmethod, export class VoronoiVertex(BaseClass): """ Vertex of a Voronoi diagram + + Author: sliptonic (shopinthewoods@gmail.com) + License: LGPL-2.1-or-later """ @constmethod diff --git a/src/Mod/CAM/PathSimulator/App/PathSim.pyi b/src/Mod/CAM/PathSimulator/App/PathSim.pyi index c115ba46dc..257f54ed03 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -17,6 +17,9 @@ class PathSim(BaseClass): PathSimulator.PathSim(): Create a path simulator object + + Author: Shai Seger (shaise_at_g-mail) + License: LGPL-2.1-or-later """ def BeginSimulation(self, **kwargs) -> Any: diff --git a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi index ee479a4f82..5b565b3fac 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -18,6 +18,9 @@ class CAMSim(BaseClass): CAMSimulator.CAMSim(): Create a path simulator object + + Author: Shai Seger (shaise_at_g-mail) + License: LGPL-2.1-or-later """ def BeginSimulation(self, **kwargs) -> Any: diff --git a/src/Mod/Fem/App/FemMesh.pyi b/src/Mod/Fem/App/FemMesh.pyi index bc0f770c43..04f2fa8f3b 100644 --- a/src/Mod/Fem/App/FemMesh.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -14,6 +14,9 @@ from App.ComplexGeoData import ComplexGeoData class FemMesh(ComplexGeoData): """ FemMesh class + + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later """ def setShape(self) -> Any: diff --git a/src/Mod/Fem/App/FemPostBranchFilter.pyi b/src/Mod/Fem/App/FemPostBranchFilter.pyi index 014f4dc4d9..ece7da0df6 100644 --- a/src/Mod/Fem/App/FemPostBranchFilter.pyi +++ b/src/Mod/Fem/App/FemPostBranchFilter.pyi @@ -13,6 +13,9 @@ from Fem.FemPostFilter import FemPostFilter class FemPostBranchFilter(FemPostFilter): """ The FemPostBranch class. + + Author: Stefan Tröger (stefantroeger@gmx.net) + License: LGPL-2.1-or-later """ def getFilter(self) -> Any: diff --git a/src/Mod/Fem/App/FemPostFilter.pyi b/src/Mod/Fem/App/FemPostFilter.pyi index b80d4fd709..aa11328dcd 100644 --- a/src/Mod/Fem/App/FemPostFilter.pyi +++ b/src/Mod/Fem/App/FemPostFilter.pyi @@ -13,6 +13,9 @@ from Fem.FemPostObject import FemPostObject class FemPostFilter(FemPostObject): """ The FemPostFilter class. + + Author: Stefan Tröger (stefantroeger@gmx.net) + License: LGPL-2.1-or-later """ def addFilterPipeline(self) -> Any: diff --git a/src/Mod/Fem/App/FemPostObject.pyi b/src/Mod/Fem/App/FemPostObject.pyi index 8d7d8452b9..7f40fd4e04 100644 --- a/src/Mod/Fem/App/FemPostObject.pyi +++ b/src/Mod/Fem/App/FemPostObject.pyi @@ -13,6 +13,9 @@ from App.GeoFeature import GeoFeature class FemPostObject(GeoFeature): """ The FemPostObject class. + + Author: Mario Passaglia (mpassaglia@cbc.uba.ar) + License: LGPL-2.1-or-later """ def writeVTK(self) -> Any: diff --git a/src/Mod/Fem/App/FemPostPipeline.pyi b/src/Mod/Fem/App/FemPostPipeline.pyi index 296595a901..9541c17c3b 100644 --- a/src/Mod/Fem/App/FemPostPipeline.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -13,6 +13,9 @@ from Fem.FemPostObject import FemPostObject class FemPostPipeline(FemPostObject): """ The FemPostPipeline class. + + Author: Stefan Tröger (stefantroeger@gmx.net) + License: LGPL-2.1-or-later """ def read(self) -> Any: diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi index 607b3b30a8..25bbf21b09 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi @@ -11,6 +11,9 @@ from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject class ViewProviderFemConstraint(ViewProviderGeometryObject): """ This is the ViewProviderFemConstraint class + + Author: Mario Passaglia (mpassaglia@cbc.uba.ar) + License: LGPL-2.1-or-later """ def loadSymbol(self) -> Any: diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi index 67dde061fd..12d32a201b 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi @@ -11,6 +11,9 @@ from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject class ViewProviderFemMesh(ViewProviderGeometryObject): """ ViewProviderFemMesh class + + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later """ def applyDisplacement(self) -> Any: diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi index 253eedfb10..31df8d37cc 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi @@ -14,6 +14,9 @@ from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject class ViewProviderFemPostFilter(ViewProviderDocumentObject): """ ViewProviderFemPostPipeline class + + Author: Stefan Tröger (stefantroeger@gmx.net) + License: LGPL-2.1-or-later """ def createDisplayTaskWidget(self) -> Any: diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi index 5882dce89c..5b839711aa 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi @@ -11,6 +11,9 @@ from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject class ViewProviderFemPostPipeline(ViewProviderDocumentObject): """ ViewProviderFemPostPipeline class + + Author: Uwe Stöhr (uwestoehr@lyx.org) + License: LGPL-2.1-or-later """ def transformField(self) -> Any: diff --git a/src/Mod/Import/App/StepShape.pyi b/src/Mod/Import/App/StepShape.pyi index 924e514c49..d72609d138 100644 --- a/src/Mod/Import/App/StepShape.pyi +++ b/src/Mod/Import/App/StepShape.pyi @@ -13,6 +13,9 @@ class StepShape(PyObjectBase): """ StepShape in Import This class gives a interface to retrieve TopoShapes out of an loaded STEP file of any kind. + + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later """ def read(self) -> Any: diff --git a/src/Mod/Measure/App/MeasureBase.pyi b/src/Mod/Measure/App/MeasureBase.pyi index 8a54897167..24d6c6f527 100644 --- a/src/Mod/Measure/App/MeasureBase.pyi +++ b/src/Mod/Measure/App/MeasureBase.pyi @@ -10,4 +10,7 @@ from App.DocumentObject import DocumentObject class MeasureBase(DocumentObject): """ User documentation here + + Author: David Friedli(hlorus) (david@friedli-be.ch) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/Measure/App/Measurement.pyi b/src/Mod/Measure/App/Measurement.pyi index 33d6843c2c..8034ebffb7 100644 --- a/src/Mod/Measure/App/Measurement.pyi +++ b/src/Mod/Measure/App/Measurement.pyi @@ -11,6 +11,9 @@ from Base.Metadata import export class Measurement(BaseClass): """ Make a measurement + + Author: Luke Parry (l.parry@warwick.ac.uk) + License: LGPL-2.1-or-later """ def addReference3D(self) -> Any: diff --git a/src/Mod/Measure/Gui/QuickMeasure.pyi b/src/Mod/Measure/Gui/QuickMeasure.pyi index 68dfbd0fe9..d265bbea34 100644 --- a/src/Mod/Measure/Gui/QuickMeasure.pyi +++ b/src/Mod/Measure/Gui/QuickMeasure.pyi @@ -10,4 +10,7 @@ from Base.PyObjectBase import PyObjectBase class QuickMeasure(PyObjectBase): """ Selection Observer for the QuickMeasure label. + + Author: Ondsel (development@ondsel.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/Mesh/App/Edge.pyi b/src/Mod/Mesh/App/Edge.pyi index 45538102af..548234e5c8 100644 --- a/src/Mod/Mesh/App/Edge.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -14,6 +14,9 @@ class Edge(PyObjectBase): Edge in mesh This is an edge of a facet in a MeshObject. You can get it by e.g. iterating over the facets of a mesh and calling getEdge(index). + + Author: Werner Mayer (wmayer[at]users.sourceforge.net) + License: LGPL-2.1-or-later """ def intersectWithEdge(self) -> Any: diff --git a/src/Mod/Mesh/App/Facet.pyi b/src/Mod/Mesh/App/Facet.pyi index 37fb5e8287..01eab62741 100644 --- a/src/Mod/Mesh/App/Facet.pyi +++ b/src/Mod/Mesh/App/Facet.pyi @@ -17,6 +17,9 @@ class Facet(PyObjectBase): topological operations. It is also possible to create an unbounded facet e.g. to create a mesh. In this case the topological operations will fail. The same is when you cut the bound to the mesh by calling unbound(). + + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later """ def unbound(self) -> Any: diff --git a/src/Mod/Mesh/App/Mesh.pyi b/src/Mod/Mesh/App/Mesh.pyi index c29b7e3d98..7a6b65cf4e 100644 --- a/src/Mod/Mesh/App/Mesh.pyi +++ b/src/Mod/Mesh/App/Mesh.pyi @@ -20,7 +20,8 @@ from App.ComplexGeoData import ComplexGeoData class PropertyMeshKernel* parentProperty = nullptr;""" ) class Mesh(ComplexGeoData): - """Mesh() -- Create an empty mesh object. + """ + Mesh() -- Create an empty mesh object. This class allows one to manipulate the mesh object by adding new facets, deleting facets, importing from an STL file, transforming the mesh and much more. @@ -34,6 +35,9 @@ class Mesh(ComplexGeoData): f = d.addObject("Mesh::Feature", "Mesh") # Create a mesh feature f.Mesh = m # Assign the mesh object to the internal property d.recompute() + + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later """ def read(self, **kwargs) -> Any: diff --git a/src/Mod/Mesh/App/MeshFeature.pyi b/src/Mod/Mesh/App/MeshFeature.pyi index 54ee0c810f..6f795a5230 100644 --- a/src/Mod/Mesh/App/MeshFeature.pyi +++ b/src/Mod/Mesh/App/MeshFeature.pyi @@ -17,6 +17,9 @@ class MeshFeature(GeoFeature): The Mesh.MeshFeature() function is for internal use only and cannot be used to create instances of this class. Therefore you must have a reference to a document, e.g. 'd' then you can create an instance with d.addObject("Mesh::Feature"). + + Author: Werner Mayer (wmayer@users.sourceforge.net) + License: LGPL-2.1-or-later """ def countPoints(self) -> Any: diff --git a/src/Mod/Mesh/App/MeshPoint.pyi b/src/Mod/Mesh/App/MeshPoint.pyi index 67d82b5ade..eed777ebd0 100644 --- a/src/Mod/Mesh/App/MeshPoint.pyi +++ b/src/Mod/Mesh/App/MeshPoint.pyi @@ -17,6 +17,9 @@ class MeshPoint(PyObjectBase): topological operations. It is also possible to create an unbounded mesh point e.g. to create a mesh. In this case the topological operations will fail. The same is when you cut the bound to the mesh by calling unbound(). + + Author: Juergen Riegel (FreeCAD@juergen-riegel.net) + License: LGPL-2.1-or-later """ def unbound(self) -> Any: diff --git a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi index 4747926c43..2120989a25 100644 --- a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi +++ b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi @@ -9,6 +9,9 @@ from Base.Metadata import export class ViewProviderMesh(ViewProviderGeometryObject): """ This is the ViewProvider base class + + Author: Werner Mayer (wmayer@users.sourceforge.net) + License: LGPL-2.1-or-later """ def setSelection(self) -> Any: diff --git a/src/Mod/Points/App/Points.pyi b/src/Mod/Points/App/Points.pyi index 860ec81bad..f84dabb13e 100644 --- a/src/Mod/Points/App/Points.pyi +++ b/src/Mod/Points/App/Points.pyi @@ -19,6 +19,9 @@ class Points(object): This class allows one to manipulate the Points object by adding new points, deleting facets, importing from an STL file, transforming and much more. + + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later """ @constmethod diff --git a/src/Mod/Robot/App/Robot6Axis.pyi b/src/Mod/Robot/App/Robot6Axis.pyi index f764c6036f..267c1bc606 100644 --- a/src/Mod/Robot/App/Robot6Axis.pyi +++ b/src/Mod/Robot/App/Robot6Axis.pyi @@ -12,6 +12,9 @@ from Base.Persistence import Persistence class Robot6Axis(Persistence): """ Robot6Axis class + + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later """ def check(self) -> Any: diff --git a/src/Mod/Robot/App/RobotObject.pyi b/src/Mod/Robot/App/RobotObject.pyi index ec30f9106d..14b7b6729d 100644 --- a/src/Mod/Robot/App/RobotObject.pyi +++ b/src/Mod/Robot/App/RobotObject.pyi @@ -11,6 +11,9 @@ from App.DocumentObject import DocumentObject class RobotObject(DocumentObject): """ Robot document object + + Author: Juergen Riegel (FreeCAD@juergen-riegel.net) + License: LGPL-2.1-or-later """ def getRobot(self) -> Any: diff --git a/src/Mod/Robot/App/Trajectory.pyi b/src/Mod/Robot/App/Trajectory.pyi index 34729f9663..5c3263398c 100644 --- a/src/Mod/Robot/App/Trajectory.pyi +++ b/src/Mod/Robot/App/Trajectory.pyi @@ -12,6 +12,9 @@ from Base.Persistence import Persistence class Trajectory(Persistence): """ Trajectory class + + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later """ def insertWaypoints(self) -> Any: diff --git a/src/Mod/Robot/App/Waypoint.pyi b/src/Mod/Robot/App/Waypoint.pyi index e01c993a4e..375e49c63f 100644 --- a/src/Mod/Robot/App/Waypoint.pyi +++ b/src/Mod/Robot/App/Waypoint.pyi @@ -12,6 +12,9 @@ from Base.Persistence import Persistence class Waypoint(Persistence): """ Waypoint class + + Author: Juergen Riegel (Juergen.Riegel@web.de) + License: LGPL-2.1-or-later """ Name: str diff --git a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi index c222bb0bf2..0bcb7c9cd0 100644 --- a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi +++ b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi @@ -9,4 +9,7 @@ from Base.Persistence import Persistence class PropertyColumnWidths(Persistence): """ Internal spreadsheet object + + Author: Eivind Kvedalen (eivind@kvedalen.name) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi index 29a40ecf57..6f27b86034 100644 --- a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi +++ b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi @@ -9,4 +9,7 @@ from Base.Persistence import Persistence class PropertyRowHeights(Persistence): """ Internal spreadsheet object + + Author: Eivind Kvedalen (eivind@kvedalen.name) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/Spreadsheet/App/PropertySheet.pyi b/src/Mod/Spreadsheet/App/PropertySheet.pyi index d9a7e71260..f8be8e14f0 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.pyi +++ b/src/Mod/Spreadsheet/App/PropertySheet.pyi @@ -12,4 +12,7 @@ from Base.Persistence import Persistence class PropertySheet(Persistence): """ Internal spreadsheet object + + Author: Eivind Kvedalen (eivind@kvedalen.name) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/Spreadsheet/App/Sheet.pyi b/src/Mod/Spreadsheet/App/Sheet.pyi index 08d4ca43a8..d71ff4e19a 100644 --- a/src/Mod/Spreadsheet/App/Sheet.pyi +++ b/src/Mod/Spreadsheet/App/Sheet.pyi @@ -12,6 +12,9 @@ from App.DocumentObject import DocumentObject class Sheet(DocumentObject): """ With this object you can manipulate spreadsheets + + Author: Eivind Kvedalen (eivind@kvedalen.name) + License: LGPL-2.1-or-later """ def set(self) -> Any: diff --git a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi index 641eb78672..5add098af1 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi @@ -13,6 +13,9 @@ from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject class ViewProviderSpreadsheet(ViewProviderDocumentObject): """ ViewProviderSheet class + + Author: Jose Luis Cercos Pita (jlcercos@gmail.com) + License: LGPL-2.1-or-later """ def getView(self) -> Any: diff --git a/src/Mod/Surface/App/Blending/BlendCurve.pyi b/src/Mod/Surface/App/Blending/BlendCurve.pyi index bc996f65a2..f4fea1856a 100644 --- a/src/Mod/Surface/App/Blending/BlendCurve.pyi +++ b/src/Mod/Surface/App/Blending/BlendCurve.pyi @@ -13,6 +13,9 @@ class BlendCurve(PyObjectBase): """ Create a BlendCurve that interpolate 2 BlendPoints. curve = BlendCurve(BlendPoint1, BlendPoint2) + + Author: Mattéo Grellier (matteogrellier@gmail.com) + License: LGPL-2.1-or-later """ def compute(self) -> Any: diff --git a/src/Mod/Surface/App/Blending/BlendPoint.pyi b/src/Mod/Surface/App/Blending/BlendPoint.pyi index 6c3cc229e5..de10747f85 100644 --- a/src/Mod/Surface/App/Blending/BlendPoint.pyi +++ b/src/Mod/Surface/App/Blending/BlendPoint.pyi @@ -15,6 +15,9 @@ class BlendPoint(PyObjectBase): myBlendPoint = BlendPoint([Point, D1, D2, ..., DN]) BlendPoint can also be constructed from an edge myBlendPoint = BlendPoint(Edge, parameter = float, continuity = int) + + Author: Mattéo Grellier (matteogrellier@gmail.com) + License: LGPL-2.1-or-later """ @constmethod diff --git a/src/Mod/TechDraw/App/CenterLine.pyi b/src/Mod/TechDraw/App/CenterLine.pyi index 5d5af6a279..b652ef2b99 100644 --- a/src/Mod/TechDraw/App/CenterLine.pyi +++ b/src/Mod/TechDraw/App/CenterLine.pyi @@ -12,6 +12,9 @@ from Base.Metadata import constmethod, export class CenterLine(PyObjectBase): """ CenterLine specifies additional mark up edges in a View + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ @constmethod diff --git a/src/Mod/TechDraw/App/CosmeticEdge.pyi b/src/Mod/TechDraw/App/CosmeticEdge.pyi index e3738382f8..1403bc370d 100644 --- a/src/Mod/TechDraw/App/CosmeticEdge.pyi +++ b/src/Mod/TechDraw/App/CosmeticEdge.pyi @@ -13,6 +13,9 @@ from Base.Metadata import export 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] diff --git a/src/Mod/TechDraw/App/CosmeticExtension.pyi b/src/Mod/TechDraw/App/CosmeticExtension.pyi index f8608e676d..07218eb29f 100644 --- a/src/Mod/TechDraw/App/CosmeticExtension.pyi +++ b/src/Mod/TechDraw/App/CosmeticExtension.pyi @@ -9,4 +9,7 @@ from App.DocumentObjectExtension import DocumentObjectExtension class CosmeticExtension(DocumentObjectExtension): """ This object represents cosmetic features for a DrawViewPart. + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/CosmeticVertex.pyi b/src/Mod/TechDraw/App/CosmeticVertex.pyi index ab9fd8c9d5..ae3da97780 100644 --- a/src/Mod/TechDraw/App/CosmeticVertex.pyi +++ b/src/Mod/TechDraw/App/CosmeticVertex.pyi @@ -12,6 +12,9 @@ from Base.Metadata import constmethod, export class CosmeticVertex(PyObjectBase): """ CosmeticVertex specifies an extra (cosmetic) vertex in Views + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ @constmethod diff --git a/src/Mod/TechDraw/App/DrawBrokenView.pyi b/src/Mod/TechDraw/App/DrawBrokenView.pyi index 75990e5573..73cec4d14d 100644 --- a/src/Mod/TechDraw/App/DrawBrokenView.pyi +++ b/src/Mod/TechDraw/App/DrawBrokenView.pyi @@ -11,6 +11,9 @@ from TechDraw.DrawViewPart import DrawViewPart class DrawBrokenView(DrawViewPart): """ Feature for creating and manipulating Technical Drawing broken views + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def mapPoint3dToView(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawGeomHatch.pyi b/src/Mod/TechDraw/App/DrawGeomHatch.pyi index 3336b2ea4b..de603f8670 100644 --- a/src/Mod/TechDraw/App/DrawGeomHatch.pyi +++ b/src/Mod/TechDraw/App/DrawGeomHatch.pyi @@ -10,6 +10,9 @@ from App.DocumentObject import DocumentObject class DrawGeomHatch(DocumentObject): """ Feature for creating and manipulating Technical Drawing GeomHatch areas + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def translateLabel(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawHatch.pyi b/src/Mod/TechDraw/App/DrawHatch.pyi index 8f964b5091..690f6c8f9f 100644 --- a/src/Mod/TechDraw/App/DrawHatch.pyi +++ b/src/Mod/TechDraw/App/DrawHatch.pyi @@ -9,6 +9,9 @@ from App.DocumentObject import DocumentObject class DrawHatch(DocumentObject): """ Feature for creating and manipulating Technical Drawing Hatch areas + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def translateLabel(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawLeaderLine.pyi b/src/Mod/TechDraw/App/DrawLeaderLine.pyi index 216b0a8dff..797e4a9438 100644 --- a/src/Mod/TechDraw/App/DrawLeaderLine.pyi +++ b/src/Mod/TechDraw/App/DrawLeaderLine.pyi @@ -9,4 +9,7 @@ from DrawView import DrawView class DrawLeaderLine(DrawView): """ Feature for adding leaders to Technical Drawings + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawPage.pyi b/src/Mod/TechDraw/App/DrawPage.pyi index a929df45b6..f76b42d7e8 100644 --- a/src/Mod/TechDraw/App/DrawPage.pyi +++ b/src/Mod/TechDraw/App/DrawPage.pyi @@ -10,6 +10,9 @@ from App.DocumentObject import DocumentObject class DrawPage(DocumentObject): """ Feature for creating and manipulating Technical Drawing Pages + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def addView(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi index 8447884185..1bdc533308 100644 --- a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi @@ -11,6 +11,9 @@ from DrawTemplate import DrawTemplate class DrawParametricTemplate(DrawTemplate): """ Feature for creating and manipulating Technical Drawing Templates + + Author: Luke Parry (l.parry@warwick.ac.uk) + License: LGPL-2.1-or-later """ def drawLine(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawProjGroup.pyi b/src/Mod/TechDraw/App/DrawProjGroup.pyi index 789daae7d1..489b009b0e 100644 --- a/src/Mod/TechDraw/App/DrawProjGroup.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroup.pyi @@ -11,6 +11,9 @@ from TechDraw.DrawViewCollection import DrawViewCollection class DrawProjGroup(DrawViewCollection): """ Feature for creating and manipulating Technical Drawing Projection Groups + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def addProjection(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi index 38e3712e6e..e2848a4d63 100644 --- a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi @@ -11,6 +11,9 @@ from TechDraw.DrawViewPart import DrawViewPart class DrawProjGroupItem(DrawViewPart): """ Feature for creating and manipulating component Views Technical Drawing Projection Groups + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def autoPosition(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawRichAnno.pyi b/src/Mod/TechDraw/App/DrawRichAnno.pyi index b6892a6acd..258184f688 100644 --- a/src/Mod/TechDraw/App/DrawRichAnno.pyi +++ b/src/Mod/TechDraw/App/DrawRichAnno.pyi @@ -9,4 +9,7 @@ from TechDraw.DrawView import DrawView class DrawRichAnno(DrawView): """ Feature for adding rich annotation blocks to Technical Drawings + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi index 40b1566e01..2cc9f29114 100644 --- a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi @@ -11,6 +11,9 @@ from DrawTemplate import DrawTemplate class DrawSVGTemplate(DrawTemplate): """ Feature for creating and manipulating Technical Drawing SVG Templates + + Author: Luke Parry (l.parry@warwick.ac.uk) + License: LGPL-2.1-or-later """ def getEditFieldContent(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawTemplate.pyi b/src/Mod/TechDraw/App/DrawTemplate.pyi index bb66893593..26639c1638 100644 --- a/src/Mod/TechDraw/App/DrawTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawTemplate.pyi @@ -9,4 +9,7 @@ from App.DocumentObject import DocumentObject class DrawTemplate(DocumentObject): """ Feature for creating and manipulating Technical Drawing Templates + + Author: Luke Parry (l.parry@warwick.ac.uk) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawTile.pyi b/src/Mod/TechDraw/App/DrawTile.pyi index 973dccce21..f6db6b7b25 100644 --- a/src/Mod/TechDraw/App/DrawTile.pyi +++ b/src/Mod/TechDraw/App/DrawTile.pyi @@ -9,4 +9,7 @@ from App.DocumentObject import DocumentObject class DrawTile(DocumentObject): """ Feature for adding tiles to leader lines + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawTileWeld.pyi b/src/Mod/TechDraw/App/DrawTileWeld.pyi index 1269aeaed9..b90ddf5c31 100644 --- a/src/Mod/TechDraw/App/DrawTileWeld.pyi +++ b/src/Mod/TechDraw/App/DrawTileWeld.pyi @@ -9,4 +9,7 @@ from TechDraw.DrawTile import DrawTile class DrawTileWeld(DrawTile): """ Feature for adding welding tiles to leader lines + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawView.pyi b/src/Mod/TechDraw/App/DrawView.pyi index 60a3549e89..c86dcce3e5 100644 --- a/src/Mod/TechDraw/App/DrawView.pyi +++ b/src/Mod/TechDraw/App/DrawView.pyi @@ -11,6 +11,9 @@ from App.DocumentObject import DocumentObject class DrawView(DocumentObject): """ Feature for creating and manipulating Technical Drawing Views + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def translateLabel(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi index 17bebc8550..504207e028 100644 --- a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi +++ b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi @@ -9,4 +9,7 @@ from TechDraw.Drawview import DrawView class DrawViewAnnotation(DrawView): """ Feature for creating and manipulating Technical Drawing Annotation Views + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawViewClip.pyi b/src/Mod/TechDraw/App/DrawViewClip.pyi index 1557e5ef6c..0288c0fff0 100644 --- a/src/Mod/TechDraw/App/DrawViewClip.pyi +++ b/src/Mod/TechDraw/App/DrawViewClip.pyi @@ -11,6 +11,9 @@ from TechDraw.DrawView import DrawView class DrawViewClip(DrawView): """ Feature for creating and manipulating Technical Drawing Clip Views + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def addView(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawViewCollection.pyi b/src/Mod/TechDraw/App/DrawViewCollection.pyi index 0e558016c2..216c7cbfeb 100644 --- a/src/Mod/TechDraw/App/DrawViewCollection.pyi +++ b/src/Mod/TechDraw/App/DrawViewCollection.pyi @@ -11,6 +11,9 @@ from TechDraw.DrawView import DrawView class DrawViewCollection(DrawView): """ Feature for creating and manipulating Technical Drawing View Collections + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def addView(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi index af65c4ba97..e9aeb5b3ba 100644 --- a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi @@ -11,6 +11,9 @@ from TechDraw.DrawViewDimension import DrawViewDimension class DrawViewDimExtent(DrawViewDimension): """ Feature for creating and manipulating Technical Drawing DimExtents + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def tbd(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawViewDimension.pyi b/src/Mod/TechDraw/App/DrawViewDimension.pyi index 0abe5c3857..362f33dee1 100644 --- a/src/Mod/TechDraw/App/DrawViewDimension.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimension.pyi @@ -11,6 +11,9 @@ from TechDraw.DrawView import DrawView class DrawViewDimension(DrawView): """ Feature for creating and manipulating Technical Drawing Dimensions + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def getRawValue(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawViewPart.pyi b/src/Mod/TechDraw/App/DrawViewPart.pyi index 60c9a073b6..8cdd911e2c 100644 --- a/src/Mod/TechDraw/App/DrawViewPart.pyi +++ b/src/Mod/TechDraw/App/DrawViewPart.pyi @@ -11,6 +11,9 @@ from TechDraw.rawView import DrawView class DrawViewPart(DrawView): """ Feature for creating and manipulating Technical Drawing Part Views + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def getVisibleEdges(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawViewSymbol.pyi b/src/Mod/TechDraw/App/DrawViewSymbol.pyi index 1069a3f88e..b30eefac83 100644 --- a/src/Mod/TechDraw/App/DrawViewSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawViewSymbol.pyi @@ -11,6 +11,9 @@ from TechDraw.DrawView import DrawView class DrawViewSymbol(DrawView): """ Feature for creating and manipulating Drawing SVG Symbol Views + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ def dumpSymbol(self) -> Any: diff --git a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi index 41be571131..589aa83a62 100644 --- a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi @@ -9,4 +9,7 @@ from TechDraw.DrawView import DrawView class DrawWeldSymbol(DrawView): """ Feature for adding welding tiles to leader lines + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/GeomFormat.pyi b/src/Mod/TechDraw/App/GeomFormat.pyi index 41641acf76..a69a9ee5e9 100644 --- a/src/Mod/TechDraw/App/GeomFormat.pyi +++ b/src/Mod/TechDraw/App/GeomFormat.pyi @@ -12,6 +12,9 @@ from Base.Metadata import constmethod, export class GeomFormat(PyObjectBase): """ GeomFormat specifies appearance parameters for TechDraw Geometry objects + + Author: WandererFan (wandererfan@gmail.com) + License: LGPL-2.1-or-later """ @constmethod