Finalizing Python interface bindings for Robot, Spreadsheet, Surface.
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,73 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
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">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Juergen Riegel" EMail="Juergen.Riegel@web.de" />
|
||||
<UserDocu>Robot6Axis class</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="check">
|
||||
<Documentation>
|
||||
<UserDocu>Checks the shape and report errors in the shape structure.
|
||||
This is a more detailed check as done in isValid().</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="Axis1" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Pose of Axis 1 in degrees</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Axis1" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Axis2" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Pose of Axis 2 in degrees</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Axis2" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Axis3" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Pose of Axis 3 in degrees</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Axis3" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Axis4" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Pose of Axis 4 in degrees</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Axis4" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Axis5" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Pose of Axis 5 in degrees</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Axis5" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Axis6" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Pose of Axis 6 in degrees</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Axis6" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Tcp" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Tool center point frame. Where the tool of the robot is</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Tcp" Type="Object"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Base" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Actual Base system in respect to the robot world system</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Base" Type="Object"/>
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,25 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="DocumentObjectPy"
|
||||
Name="RobotObjectPy"
|
||||
Twin="RobotObject"
|
||||
TwinPointer="RobotObject"
|
||||
Include="Mod/Robot/App/RobotObject.h"
|
||||
Namespace="Robot"
|
||||
FatherInclude="App/DocumentObjectPy.h"
|
||||
FatherNamespace="App">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Juergen Riegel" EMail="FreeCAD@juergen-riegel.net" />
|
||||
<UserDocu>Robot document object</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="getRobot">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Returns a copy of the robot. Be aware, the robot behaves the same
|
||||
like the robot of the object but is a copy!
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,67 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
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">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Juergen Riegel" EMail="Juergen.Riegel@web.de" />
|
||||
<UserDocu>Trajectory class</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="insertWaypoints">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
adds one or a list of waypoint to the end of the trajectory
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="position">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
returns a Frame to a given time in the trajectory
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="velocity">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
returns the velocity to a given time in the trajectory
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="deleteLast">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
deleteLast(n) - delete n waypoints at the end
|
||||
deleteLast() - delete the last waypoint
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="Duration" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>duration of the trajectory</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Duration" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Length" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>length of the trajectory</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Length" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Waypoints" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>waypoints of this trajectory</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Waypoints" Type="List"/>
|
||||
</Attribute>
|
||||
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,65 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
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">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Juergen Riegel" EMail="Juergen.Riegel@web.de" />
|
||||
<UserDocu>Waypoint class</UserDocu>
|
||||
</Documentation>
|
||||
<Attribute Name="Name" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Name of the waypoint</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Name" Type="String"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Type" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Type of the waypoint[PTP|LIN|CIRC|WAIT]</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Type" Type="String"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Pos" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>End position (destination) of the waypoint</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Pos" Type="Object"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Cont" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Control the continuity to the next waypoint in the trajectory</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Cont" Type="Boolean"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Velocity" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>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
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Velocity" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Tool" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Describe which tool frame to use for that point</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Tool" Type="Long"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Base" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Describe which Base frame to use for that point</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Base" Type="Long"/>
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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_)
|
||||
|
||||
12
src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi
Normal file
12
src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi
Normal file
@@ -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
|
||||
"""
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="PersistencePy"
|
||||
Name="PropertyColumnWidthsPy"
|
||||
Twin="PropertyColumnWidths"
|
||||
TwinPointer="PropertyColumnWidths"
|
||||
Include="Mod/Spreadsheet/App/PropertyColumnWidths.h"
|
||||
Namespace="Spreadsheet"
|
||||
FatherInclude="Base/PersistencePy.h"
|
||||
FatherNamespace="Base"
|
||||
Constructor="true">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Eivind Kvedalen" EMail="eivind@kvedalen.name" />
|
||||
<UserDocu>Internal spreadsheet object</UserDocu>
|
||||
</Documentation>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="PersistencePy"
|
||||
Name="PropertyRowHeightsPy"
|
||||
Twin="PropertyRowHeights"
|
||||
TwinPointer="PropertyRowHeights"
|
||||
Include="Mod/Spreadsheet/App/PropertyRowHeights.h"
|
||||
Namespace="Spreadsheet"
|
||||
FatherInclude="Base/PersistencePy.h"
|
||||
FatherNamespace="Base"
|
||||
Constructor="true">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Eivind Kvedalen" EMail="eivind@kvedalen.name" />
|
||||
<UserDocu>Internal spreadsheet object</UserDocu>
|
||||
</Documentation>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="PersistencePy"
|
||||
Name="PropertySheetPy"
|
||||
Twin="PropertySheet"
|
||||
TwinPointer="PropertySheet"
|
||||
Include="Mod/Spreadsheet/App/PropertySheet.h"
|
||||
Namespace="Spreadsheet"
|
||||
FatherInclude="Base/PersistencePy.h"
|
||||
FatherNamespace="Base"
|
||||
Constructor="true">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Eivind Kvedalen" EMail="eivind@kvedalen.name" />
|
||||
<UserDocu>Internal spreadsheet object</UserDocu>
|
||||
</Documentation>
|
||||
<Sequence
|
||||
sq_length="false"
|
||||
sq_concat="false"
|
||||
sq_repeat="false"
|
||||
sq_item="false"
|
||||
mp_subscript="true"
|
||||
sq_ass_item="false"
|
||||
mp_ass_subscript="false"
|
||||
sq_contains="false"
|
||||
sq_inplace_concat="false"
|
||||
sq_inplace_repeat="false">
|
||||
</Sequence>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,231 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="DocumentObjectPy"
|
||||
Name="SheetPy"
|
||||
Twin="Sheet"
|
||||
TwinPointer="Sheet"
|
||||
Include="Mod/Spreadsheet/App/Sheet.h"
|
||||
Namespace="Spreadsheet"
|
||||
FatherInclude="App/DocumentObjectPy.h"
|
||||
FatherNamespace="App"
|
||||
Constructor="true">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Eivind Kvedalen" EMail="eivind@kvedalen.name" />
|
||||
<UserDocu>With this object you can manipulate spreadsheets</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="set">
|
||||
<Documentation>
|
||||
<UserDocu>Set data into a cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="get">
|
||||
<Documentation>
|
||||
<UserDocu>Get evaluated cell contents</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getContents">
|
||||
<Documentation>
|
||||
<UserDocu>Get cell contents</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="clear">
|
||||
<Documentation>
|
||||
<UserDocu>Clear a cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="clearAll">
|
||||
<Documentation>
|
||||
<UserDocu>Clear all cells in the spreadsheet</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="importFile">
|
||||
<Documentation>
|
||||
<UserDocu>Import file into spreadsheet</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="exportFile">
|
||||
<Documentation>
|
||||
<UserDocu>Export file from spreadsheet</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="mergeCells">
|
||||
<Documentation>
|
||||
<UserDocu>Merge given cell area into one cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="splitCell">
|
||||
<Documentation>
|
||||
<UserDocu>Split a previously merged cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="insertColumns">
|
||||
<Documentation>
|
||||
<UserDocu>Insert a given number of columns into the spreadsheet.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="removeColumns">
|
||||
<Documentation>
|
||||
<UserDocu>Remove a given number of columns from the spreadsheet.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="insertRows">
|
||||
<Documentation>
|
||||
<UserDocu>Insert a given number of rows into the spreadsheet.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="removeRows">
|
||||
<Documentation>
|
||||
<UserDocu>Remove a given number of rows from the spreadsheet.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setAlignment">
|
||||
<Documentation>
|
||||
<UserDocu>Set alignment of the cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getAlignment">
|
||||
<Documentation>
|
||||
<UserDocu>Get alignment of the cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setStyle">
|
||||
<Documentation>
|
||||
<UserDocu>Set style of the cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getStyle">
|
||||
<Documentation>
|
||||
<UserDocu>Get style of the cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setDisplayUnit">
|
||||
<Documentation>
|
||||
<UserDocu>Set display unit for cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setAlias">
|
||||
<Documentation>
|
||||
<UserDocu>Set alias for cell address</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getAlias">
|
||||
<Documentation>
|
||||
<UserDocu>Get alias for cell address</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getCellFromAlias">
|
||||
<Documentation>
|
||||
<UserDocu>Get cell address given an alias</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getDisplayUnit">
|
||||
<Documentation>
|
||||
<UserDocu>Get display unit for cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setForeground">
|
||||
<Documentation>
|
||||
<UserDocu>Set foreground color of the cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getForeground">
|
||||
<Documentation>
|
||||
<UserDocu>Get foreground color of the cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setBackground">
|
||||
<Documentation>
|
||||
<UserDocu>Set background color of the cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getBackground">
|
||||
<Documentation>
|
||||
<UserDocu>Get background color of the cell</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setColumnWidth">
|
||||
<Documentation>
|
||||
<UserDocu>Set given spreadsheet column to given width</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getColumnWidth">
|
||||
<Documentation>
|
||||
<UserDocu>Get given spreadsheet column width</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setRowHeight">
|
||||
<Documentation>
|
||||
<UserDocu>Set given spreadsheet row to given height</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getRowHeight">
|
||||
<Documentation>
|
||||
<UserDocu>Get given spreadsheet row height</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="touchCells">
|
||||
<Documentation>
|
||||
<UserDocu>touchCells(from, to=None): touch cells in the given range</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="recomputeCells">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
recomputeCells(from, to=None)
|
||||
|
||||
Manually recompute cells in the given range with the given order without
|
||||
following dependency order.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
|
||||
<Methode Name="getUsedCells">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
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.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
|
||||
<Methode Name="getNonEmptyCells">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
getNonEmptyCells()
|
||||
|
||||
Get a list of the names of all cells with data in them.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
|
||||
<Methode Name="getUsedRange">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
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.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
|
||||
<Methode Name="getNonEmptyRange">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
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.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,46 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="ViewProviderDocumentObjectPy"
|
||||
Name="ViewProviderSpreadsheetPy"
|
||||
Twin="ViewProviderSheet"
|
||||
TwinPointer="ViewProviderSheet"
|
||||
Include="Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.h"
|
||||
Namespace="SpreadsheetGui"
|
||||
FatherInclude="Gui/ViewProviderDocumentObjectPy.h"
|
||||
FatherNamespace="Gui"
|
||||
Constructor="false"
|
||||
Delete="false">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Jose Luis Cercos Pita" EMail="jlcercos@gmail.com" />
|
||||
<UserDocu>ViewProviderSheet class</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="getView">
|
||||
<Documentation>
|
||||
<UserDocu>Get access to the sheet view</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="showSheetMdi">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Create (if necessary) and switch to the Spreadsheet MDI.
|
||||
|
||||
showSheetMdi()
|
||||
|
||||
Returns: None
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="exportAsFile">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Export the sheet as a file.
|
||||
|
||||
exportAsFile()
|
||||
|
||||
Returns: None
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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)
|
||||
@@ -1,41 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="PyObjectBase"
|
||||
FatherInclude="Base/BaseClassPy.h"
|
||||
FatherNamespace="Base"
|
||||
Name="BlendCurvePy"
|
||||
PythonName="Surface.BlendCurve"
|
||||
Twin="BlendCurve"
|
||||
TwinPointer="BlendCurve"
|
||||
Include="Mod/Surface/App/Blending/BlendCurve.h"
|
||||
Namespace="Surface"
|
||||
Constructor="true"
|
||||
Delete="true">
|
||||
<Documentation>
|
||||
</Documentation>
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Mattéo Grellier" EMail="matteogrellier@gmail.com" />
|
||||
<UserDocu>
|
||||
Create a BlendCurve that interpolate 2 BlendPoints.
|
||||
curve = BlendCurve(BlendPoint1, BlendPoint2)
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="compute">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Return the BezierCurve that interpolate the input BlendPoints.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setSize">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
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)
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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])
|
||||
@@ -1,57 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="PyObjectBase"
|
||||
FatherInclude="Base/BaseClassPy.h"
|
||||
FatherNamespace="Base"
|
||||
Name="BlendPointPy"
|
||||
PythonName="Surface.BlendPoint"
|
||||
Twin="BlendPoint"
|
||||
TwinPointer="BlendPoint"
|
||||
Include="Mod/Surface/App/Blending/BlendPoint.h"
|
||||
Namespace="Surface"
|
||||
Constructor="true"
|
||||
Delete="true">
|
||||
<Documentation>
|
||||
</Documentation>
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Mattéo Grellier" EMail="matteogrellier@gmail.com" />
|
||||
<UserDocu>
|
||||
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)
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
<Attribute Name="Vectors" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>The list of vectors of this BlendPoint.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="vectors" Type="List"/>
|
||||
</Attribute>
|
||||
<Methode Name="getSize" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Return BlendPoint first derivative length.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setSize">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Resizes the BlendPoint vectors,
|
||||
by setting the length of the first derivative.
|
||||
theBlendPoint.setSize(new_size)
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setvectors">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Set the vectors of BlendPoint.
|
||||
BlendPoint.setvectors([Point, D1, D2, ..., DN])
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user