Finalizing Python interface bindings for TechDraw.
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,101 +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"
|
||||
Name="CenterLinePy"
|
||||
Twin="CenterLine"
|
||||
TwinPointer="CenterLine"
|
||||
Include="Mod/TechDraw/App/CenterLine.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Base/PyObjectBase.h"
|
||||
FatherNamespace="Base"
|
||||
Constructor="true"
|
||||
Delete="true">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>CenterLine specifies additional mark up edges in a View</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="clone" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Create a clone of this centerline</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="copy" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Create a copy of this centerline</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="Tag" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Gives the tag of the CenterLine as string.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Tag" Type="String"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Type" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>0 - face, 1 - 2 line, 2 - 2 point.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Type" Type="Long"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Mode">
|
||||
<Documentation>
|
||||
<UserDocu>0 - vert/ 1 - horiz/ 2 - aligned.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Mode" Type="Long"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Format">
|
||||
<Documentation>
|
||||
<UserDocu>The appearance attributes (style, color, weight, visible) for this CenterLine.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Format" Type="Dict"/>
|
||||
</Attribute>
|
||||
<Attribute Name="HorizShift">
|
||||
<Documentation>
|
||||
<UserDocu>The left/right offset for this CenterLine.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="HorizShift" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="VertShift">
|
||||
<Documentation>
|
||||
<UserDocu>The up/down offset for this CenterLine.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="VertShift" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Rotation">
|
||||
<Documentation>
|
||||
<UserDocu>The rotation of the Centerline in degrees.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Rotation" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Extension">
|
||||
<Documentation>
|
||||
<UserDocu>The additional length to be added to this CenterLine.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Extension" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Flip">
|
||||
<Documentation>
|
||||
<UserDocu>Reverse the order of points for 2 point CenterLine.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Flip" Type="Boolean"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Edges">
|
||||
<Documentation>
|
||||
<UserDocu>The names of source edges for this CenterLine.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Edges" Type="List"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Faces">
|
||||
<Documentation>
|
||||
<UserDocu>The names of source Faces for this CenterLine.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Faces" Type="List"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Points">
|
||||
<Documentation>
|
||||
<UserDocu>The names of source Points for this CenterLine.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Points" Type="List"/>
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,69 +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"
|
||||
Name="CosmeticEdgePy"
|
||||
Twin="CosmeticEdge"
|
||||
TwinPointer="CosmeticEdge"
|
||||
Include="Mod/TechDraw/App/Cosmetic.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Base/GeometryPyCXX.h"
|
||||
FatherNamespace="Base"
|
||||
Constructor="true"
|
||||
Delete="true">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>CosmeticEdge specifies an extra (cosmetic) edge in Views</UserDocu>
|
||||
</Documentation>
|
||||
<Attribute Name="Tag" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Gives the tag of the CosmeticEdge as string.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Tag" Type="String"/>
|
||||
</Attribute>
|
||||
<!-- <Attribute Name="Owner" ReadOnly="true">-->
|
||||
<!-- <Documentation>-->
|
||||
<!-- <UserDocu>Gives the name of the View which owns this CosmeticEdge as string.</UserDocu>-->
|
||||
<!-- </Documentation>-->
|
||||
<!-- <Parameter Name="Owner" Type="String"/>-->
|
||||
<!-- </Attribute> -->
|
||||
<Attribute Name="Start">
|
||||
<Documentation>
|
||||
<UserDocu>Gives the position of one end of this CosmeticEdge as vector.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Start" Type="Vector"/>
|
||||
</Attribute>
|
||||
<Attribute Name="End">
|
||||
<Documentation>
|
||||
<UserDocu>Gives the position of one end of this CosmeticEdge as vector.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="End" Type="Vector"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Center">
|
||||
<Documentation>
|
||||
<UserDocu>Gives the position of center point of this CosmeticEdge as vector.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Center" Type="Vector"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Radius">
|
||||
<Documentation>
|
||||
<UserDocu>Gives the radius of CosmeticEdge in mm.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Radius" Type="Float"/>
|
||||
</Attribute>
|
||||
|
||||
|
||||
<!-- <Attribute Name="Geometry">-->
|
||||
<!-- <Documentation>-->
|
||||
<!-- <UserDocu>The edge geometry for this CosmeticEdge.</UserDocu>-->
|
||||
<!-- </Documentation>-->
|
||||
<!-- <Parameter Name="Geometry" Type="Object"/>-->
|
||||
<!-- </Attribute> -->
|
||||
<Attribute Name="Format">
|
||||
<Documentation>
|
||||
<UserDocu>The appearance attributes (style, weight, color, visible) for this CosmeticEdge.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Format" Type="Dict"/>
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
12
src/Mod/TechDraw/App/CosmeticExtension.pyi
Normal file
12
src/Mod/TechDraw/App/CosmeticExtension.pyi
Normal file
@@ -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.
|
||||
"""
|
||||
@@ -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.
|
||||
"""
|
||||
@@ -1,17 +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="DocumentObjectExtensionPy"
|
||||
Name="CosmeticExtensionPy"
|
||||
Twin="CosmeticExtension"
|
||||
TwinPointer="CosmeticExtension"
|
||||
Include="Mod/TechDraw/App/CosmeticExtension.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="App/DocumentObjectExtensionPy.h"
|
||||
FatherNamespace="App">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>This object represents cosmetic features for a DrawViewPart.</UserDocu>
|
||||
</Documentation>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -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="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">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>CosmeticVertex specifies an extra (cosmetic) vertex in Views</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="clone" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Create a clone of this CosmeticVertex</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="copy" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Create a copy of this CosmeticVertex</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="Tag" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Gives the tag of the CosmeticVertex as string.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Tag" Type="String"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Point">
|
||||
<Documentation>
|
||||
<UserDocu>Gives the position of this CosmeticVertex as vector.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Point" Type="Object"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Show">
|
||||
<Documentation>
|
||||
<UserDocu>Show/hide the vertex.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Show" Type="Boolean"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Color" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>set/return the vertex's colour using a tuple (rgba).</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Color" Type="Object"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Size" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>set/return the vertex's radius in mm.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Size" Type="Object"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Style" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>set/return the vertex's style as integer.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Style" Type="Object"/>
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,33 +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="DrawViewPartPy"
|
||||
Name="DrawBrokenViewPy"
|
||||
Twin="DrawBrokenView"
|
||||
TwinPointer="DrawBrokenView"
|
||||
Include="Mod/TechDraw/App/DrawBrokenView.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPartPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing broken views</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="mapPoint3dToView">
|
||||
<Documentation>
|
||||
<UserDocu>point2d = mapPoint3dToView(point3d) - returns the position of the 3d point within the broken view.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="mapPoint2dFromView">
|
||||
<Documentation>
|
||||
<UserDocu>point2d = mapPoint2dFromView(point3d) - returns the position of the 2d point within an unbroken view.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getCompressedCenter">
|
||||
<Documentation>
|
||||
<UserDocu>point3d = getCompressedCenter() - returns the geometric center of the source shapes after break cuts and gap compression.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -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="DrawGeomHatchPy"
|
||||
Twin="DrawGeomHatch"
|
||||
TwinPointer="DrawGeomHatch"
|
||||
Include="Mod/TechDraw/App/DrawGeomHatch.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="App/DocumentObjectPy.h"
|
||||
FatherNamespace="App">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing GeomHatch areas</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="translateLabel">
|
||||
<Documentation>
|
||||
<UserDocu>translateLabel(translationContext, objectBaseName, objectUniqueName).
|
||||
No return value. Replace the current label with a translated version where possible.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -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="DrawHatchPy"
|
||||
Twin="DrawHatch"
|
||||
TwinPointer="DrawHatch"
|
||||
Include="Mod/TechDraw/App/DrawHatch.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="App/DocumentObjectPy.h"
|
||||
FatherNamespace="App">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing Hatch areas</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="translateLabel">
|
||||
<Documentation>
|
||||
<UserDocu>translateLabel(translationContext, objectBaseName, objectUniqueName).
|
||||
No return value. Replace the current label with a translated version where possible.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -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="DrawViewPy"
|
||||
Name="DrawLeaderLinePy"
|
||||
Twin="DrawLeaderLine"
|
||||
TwinPointer="DrawLeaderLine"
|
||||
Include="Mod/TechDraw/App/DrawLeaderLine.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for adding leaders to Technical Drawings</UserDocu>
|
||||
</Documentation>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,68 +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="DrawPagePy"
|
||||
Twin="DrawPage"
|
||||
TwinPointer="DrawPage"
|
||||
Include="Mod/TechDraw/App/DrawPage.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="App/DocumentObjectPy.h"
|
||||
FatherNamespace="App">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing Pages</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="addView">
|
||||
<Documentation>
|
||||
<UserDocu>addView(DrawView) - Add a View to this Page</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="removeView">
|
||||
<Documentation>
|
||||
<UserDocu>removeView(DrawView) - Remove a View to this Page</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getViews">
|
||||
<Documentation>
|
||||
<UserDocu>getViews() - returns a list of all the views on page excluding Views inside Collections</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getAllViews">
|
||||
<Documentation>
|
||||
<UserDocu>getAllViews() - returns a list of all the views on page including Views inside Collections</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="translateLabel">
|
||||
<Documentation>
|
||||
<UserDocu>translateLabel(translationContext, objectBaseName, objectUniqueName).
|
||||
No return value. Replace the current label with a translated version where possible.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="PageWidth" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Returns the width of this page</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="PageWidth" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="PageHeight" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Returns the height of this page</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="PageHeight" Type="Float"/>
|
||||
</Attribute>
|
||||
<Attribute Name="PageOrientation" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Returns the orientation of this page</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="PageOrientation" Type="String"/>
|
||||
</Attribute>
|
||||
<Methode Name="requestPaint">
|
||||
<Documentation>
|
||||
<UserDocu>Ask the Gui to redraw this page</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,28 +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="DrawTemplatePy"
|
||||
Name="DrawParametricTemplatePy"
|
||||
Twin="DrawParametricTemplate"
|
||||
TwinPointer="DrawParametricTemplate"
|
||||
Include="Mod/TechDraw/App/DrawParametricTemplate.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="DrawTemplatePy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Luke Parry" EMail="l.parry@warwick.ac.uk" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing Templates</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="drawLine">
|
||||
<Documentation>
|
||||
<UserDocu>Draw a line</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="GeometryCount" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Number of geometry in template</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="GeometryCount" Type="Long"/>
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,23 +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="DrawViewPartPy"
|
||||
Name="DrawProjGroupItemPy"
|
||||
Twin="DrawProjGroupItem"
|
||||
TwinPointer="DrawProjGroupItem"
|
||||
Include="Mod/TechDraw/App/DrawProjGroupItem.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPartPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating component Views Technical Drawing Projection Groups</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="autoPosition">
|
||||
<Documentation>
|
||||
<UserDocu>autoPosition() - Move to AutoDistribute/Unlocked position on Page. Returns none.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -1,43 +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="DrawViewCollectionPy"
|
||||
Name="DrawProjGroupPy"
|
||||
Twin="DrawProjGroup"
|
||||
TwinPointer="DrawProjGroup"
|
||||
Include="Mod/TechDraw/App/DrawProjGroup.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewCollectionPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing Projection Groups</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="addProjection">
|
||||
<Documentation>
|
||||
<UserDocu>addProjection(string projectionType) - Add a new Projection Item to this Group. Returns DocObj.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="removeProjection">
|
||||
<Documentation>
|
||||
<UserDocu>removeProjection(string projectionType) - Remove specified Projection Item from this Group. Returns int number of views in Group.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="purgeProjections">
|
||||
<Documentation>
|
||||
<UserDocu>purgeProjections() - Remove all Projection Items from this Group. Returns int number of views in Group (0).</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getItemByLabel">
|
||||
<Documentation>
|
||||
<UserDocu>getItemByLabel(string projectionType) - return specified Projection Item</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getXYPosition">
|
||||
<Documentation>
|
||||
<UserDocu>getXYPosition(string projectionType) - return the AutoDistribute position for specified Projection Item</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -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="DrawViewPy"
|
||||
Name="DrawRichAnnoPy"
|
||||
Twin="DrawRichAnno"
|
||||
TwinPointer="DrawRichAnno"
|
||||
Include="Mod/TechDraw/App/DrawRichAnno.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for adding rich annotation blocks to Technical Drawings</UserDocu>
|
||||
</Documentation>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,34 +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="DrawTemplatePy"
|
||||
Name="DrawSVGTemplatePy"
|
||||
Twin="DrawSVGTemplate"
|
||||
TwinPointer="DrawSVGTemplate"
|
||||
Include="Mod/TechDraw/App/DrawSVGTemplate.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="DrawTemplatePy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Luke Parry" EMail="l.parry@warwick.ac.uk" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing SVG Templates</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="getEditFieldContent">
|
||||
<Documentation>
|
||||
<UserDocu>getEditFieldContent(EditFieldName) - returns the content of a specific Editable Text Field</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setEditFieldContent">
|
||||
<Documentation>
|
||||
<UserDocu>setEditFieldContent(EditFieldName, NewContent) - sets a specific Editable Text Field to a new value</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="translateLabel">
|
||||
<Documentation>
|
||||
<UserDocu>translateLabel(translationContext, objectBaseName, objectUniqueName).
|
||||
No return value. Replace the current label with a translated version where possible.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,17 +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="DrawTemplatePy"
|
||||
Twin="DrawTemplate"
|
||||
TwinPointer="DrawTemplate"
|
||||
Include="Mod/TechDraw/App/DrawTemplate.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="App/DocumentObjectPy.h"
|
||||
FatherNamespace="App">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Luke Parry" EMail="l.parry@warwick.ac.uk" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing Templates</UserDocu>
|
||||
</Documentation>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -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="DocumentObjectPy"
|
||||
Name="DrawTilePy"
|
||||
Twin="DrawTile"
|
||||
TwinPointer="DrawTile"
|
||||
Include="Mod/TechDraw/App/DrawTile.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="App/DocumentObjectPy.h"
|
||||
FatherNamespace="App">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for adding tiles to leader lines</UserDocu>
|
||||
</Documentation>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -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="DrawTilePy"
|
||||
Name="DrawTileWeldPy"
|
||||
Twin="DrawTileWeld"
|
||||
TwinPointer="DrawTileWeld"
|
||||
Include="Mod/TechDraw/App/DrawTileWeld.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawTilePy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for adding welding tiles to leader lines</UserDocu>
|
||||
</Documentation>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -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
|
||||
"""
|
||||
@@ -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="DrawViewPy"
|
||||
Name="DrawViewAnnotationPy"
|
||||
Twin="DrawViewAnnotation"
|
||||
TwinPointer="DrawViewAnnotation"
|
||||
Include="Mod/TechDraw/App/DrawViewAnnotation.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing Annotation Views</UserDocu>
|
||||
</Documentation>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,33 +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="DrawViewPy"
|
||||
Name="DrawViewClipPy"
|
||||
Twin="DrawViewClip"
|
||||
TwinPointer="DrawViewClip"
|
||||
Include="Mod/TechDraw/App/DrawViewClip.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing Clip Views</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="addView">
|
||||
<Documentation>
|
||||
<UserDocu>addView(DrawView) - Add a View to this ClipView</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="removeView">
|
||||
<Documentation>
|
||||
<UserDocu>removeView(DrawView) - Remove specified View to this ClipView</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getChildViewNames">
|
||||
<Documentation>
|
||||
<UserDocu>getChildViewNames() - get a list of the DrawViews in this ClipView</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,28 +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="DrawViewPy"
|
||||
Name="DrawViewCollectionPy"
|
||||
Twin="DrawViewCollection"
|
||||
TwinPointer="DrawViewCollection"
|
||||
Include="Mod/TechDraw/App/DrawViewCollection.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing View Collections</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="addView">
|
||||
<Documentation>
|
||||
<UserDocu>addView(DrawView object) - Add a new View to this Group. Returns count of views.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="removeView">
|
||||
<Documentation>
|
||||
<UserDocu>removeView(DrawView object) - Remove specified Viewfrom this Group. Returns count of views in Group.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,23 +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="DrawViewDimensionPy"
|
||||
Name="DrawViewDimExtentPy"
|
||||
Twin="DrawViewDimExtent"
|
||||
TwinPointer="DrawViewDimExtent"
|
||||
Include="Mod/TechDraw/App/DrawViewDimExtent.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewDimensionPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing DimExtents</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="tbd">
|
||||
<Documentation>
|
||||
<UserDocu>tbd() - returns tbd.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,53 +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="DrawViewPy"
|
||||
Name="DrawViewDimensionPy"
|
||||
Twin="DrawViewDimension"
|
||||
TwinPointer="DrawViewDimension"
|
||||
Include="Mod/TechDraw/App/DrawViewDimension.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing Dimensions</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="getRawValue">
|
||||
<Documentation>
|
||||
<UserDocu>getRawValue() - returns Dimension value in mm.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getText">
|
||||
<Documentation>
|
||||
<UserDocu>getText() - returns Dimension text.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getLinearPoints">
|
||||
<Documentation>
|
||||
<UserDocu>getLinearPoints() - returns list of points for linear Dimension</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getArcPoints">
|
||||
<Documentation>
|
||||
<UserDocu>getArcPoints() - returns list of points for circle/arc Dimension</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getAnglePoints">
|
||||
<Documentation>
|
||||
<UserDocu>getAnglePoints() - returns list of points for angle Dimension</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getAreaPoints">
|
||||
<Documentation>
|
||||
<UserDocu>getAreaPoints() - returns list of values (center, filled area, actual area) for area Dimension.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getArrowPositions">
|
||||
<Documentation>
|
||||
<UserDocu>getArrowPositions() - returns list of locations or Dimension Arrowheads. Locations are in unscaled coordinates of parent View </UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,195 +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="DrawViewPy"
|
||||
Name="DrawViewPartPy"
|
||||
Twin="DrawViewPart"
|
||||
TwinPointer="DrawViewPart"
|
||||
Include="Mod/TechDraw/App/DrawViewPart.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing Part Views</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="getVisibleEdges">
|
||||
<Documentation>
|
||||
<UserDocu>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.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getVisibleVertexes">
|
||||
<Documentation>
|
||||
<UserDocu>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.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getHiddenEdges">
|
||||
<Documentation>
|
||||
<UserDocu>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.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getHiddenVertexes">
|
||||
<Documentation>
|
||||
<UserDocu>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.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="makeCosmeticVertex">
|
||||
<Documentation>
|
||||
<UserDocu>id = makeCosmeticVertex(p1) - add a CosmeticVertex at p1 (View coordinates). Returns unique id vertex.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="makeCosmeticVertex3d">
|
||||
<Documentation>
|
||||
<UserDocu>id = makeCosmeticVertex3d(p1) - add a CosmeticVertex at p1 (3d model coordinates). Returns unique id vertex.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getCosmeticVertex">
|
||||
<Documentation>
|
||||
<UserDocu>cv = getCosmeticVertex(id) - returns CosmeticVertex with unique id.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getCosmeticVertexBySelection">
|
||||
<Documentation>
|
||||
<UserDocu>cv = getCosmeticVertexBySelection(name) - returns CosmeticVertex with name (Vertex6). Used in selections.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="removeCosmeticVertex">
|
||||
<Documentation>
|
||||
<UserDocu>removeCosmeticVertex(cv) - remove CosmeticVertex from View. Returns None.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="clearCosmeticVertices">
|
||||
<Documentation>
|
||||
<UserDocu>clearCosmeticVertices() - remove all CosmeticVertices from the View. Returns None.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="makeCosmeticLine">
|
||||
<Documentation>
|
||||
<UserDocu>tag = makeCosmeticLine(p1, p2) - add a CosmeticEdge from p1 to p2(View coordinates). Returns tag of new CosmeticEdge.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="makeCosmeticLine3D">
|
||||
<Documentation>
|
||||
<UserDocu>tag = makeCosmeticLine3D(p1, p2) - add a CosmeticEdge from p1 to p2(3D coordinates). Returns tag of new CosmeticEdge.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="makeCosmeticCircle">
|
||||
<Documentation>
|
||||
<UserDocu>tag = makeCosmeticCircle(center, radius) - add a CosmeticEdge at center with radius radius(View coordinates). Returns tag of new CosmeticEdge.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="makeCosmeticCircleArc">
|
||||
<Documentation>
|
||||
<UserDocu>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.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="makeCosmeticCircle3d">
|
||||
<Documentation>
|
||||
<UserDocu>tag = makeCosmeticCircle3d(center, radius) - add a CosmeticEdge at center (3d point) with radius. Returns tag of new CosmeticEdge.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="makeCosmeticCircleArc3d">
|
||||
<Documentation>
|
||||
<UserDocu>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.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getCosmeticEdge">
|
||||
<Documentation>
|
||||
<UserDocu>ce = getCosmeticEdge(id) - returns CosmeticEdge with unique id.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getCosmeticEdgeBySelection">
|
||||
<Documentation>
|
||||
<UserDocu>ce = getCosmeticEdgeBySelection(name) - returns CosmeticEdge by name (Edge25). Used in selections</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="removeCosmeticEdge">
|
||||
<Documentation>
|
||||
<UserDocu>removeCosmeticEdge(ce) - remove CosmeticEdge ce from View. Returns None.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="makeCenterLine">
|
||||
<Documentation>
|
||||
<UserDocu>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.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getCenterLine">
|
||||
<Documentation>
|
||||
<UserDocu>cl = getCenterLine(id) - returns CenterLine with unique id.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getCenterLineBySelection">
|
||||
<Documentation>
|
||||
<UserDocu>cl = getCenterLineBySelection(name) - returns CenterLine by name (Edge25). Used in selections</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="removeCenterLine">
|
||||
<Documentation>
|
||||
<UserDocu>removeCenterLine(cl) - remove CenterLine cl from View. Returns None.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="clearCosmeticEdges">
|
||||
<Documentation>
|
||||
<UserDocu>clearCosmeticEdges() - remove all CosmeticLines from the View. Returns None.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="clearCenterLines">
|
||||
<Documentation>
|
||||
<UserDocu>clearCenterLines() - remove all CenterLines from the View. Returns None.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="clearGeomFormats">
|
||||
<Documentation>
|
||||
<UserDocu>clearGeomFormats() - remove all GeomFormats from the View. Returns None.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="formatGeometricEdge">
|
||||
<Documentation>
|
||||
<UserDocu>formatGeometricEdge(index, style, weight, color, visible). Returns None.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getEdgeByIndex">
|
||||
<Documentation>
|
||||
<UserDocu>getEdgeByIndex(edgeIndex). Returns Part.TopoShape.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getEdgeBySelection">
|
||||
<Documentation>
|
||||
<UserDocu>getEdgeBySelection(edgeName). Returns Part.TopoShape.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getVertexByIndex">
|
||||
<Documentation>
|
||||
<UserDocu>getVertexByIndex(vertexIndex). Returns Part.TopoShape.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getVertexBySelection">
|
||||
<Documentation>
|
||||
<UserDocu>getVertexBySelection(vertexName). Returns Part.TopoShape.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="projectPoint">
|
||||
<Documentation>
|
||||
<UserDocu>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.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getGeometricCenter">
|
||||
<Documentation>
|
||||
<UserDocu>point3d = getGeometricCenter() - returns the geometric center of the source shapes.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="requestPaint">
|
||||
<Documentation>
|
||||
<UserDocu>requestPaint(). Redraw the graphic for this View.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -1,32 +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="DrawViewPy"
|
||||
Twin="DrawView"
|
||||
TwinPointer="DrawView"
|
||||
Include="Mod/TechDraw/App/DrawView.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="App/DocumentObjectPy.h"
|
||||
FatherNamespace="App">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Technical Drawing Views</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="translateLabel">
|
||||
<Documentation>
|
||||
<UserDocu>translateLabel(translationContext, objectBaseName, objectUniqueName).
|
||||
No return value. Replace the current label with a translated version where possible.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getScale">
|
||||
<Documentation>
|
||||
<UserDocu>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).
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,23 +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="DrawViewPy"
|
||||
Name="DrawViewSymbolPy"
|
||||
Twin="DrawViewSymbol"
|
||||
TwinPointer="DrawViewSymbol"
|
||||
Include="Mod/TechDraw/App/DrawViewSymbol.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for creating and manipulating Drawing SVG Symbol Views</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="dumpSymbol">
|
||||
<Documentation>
|
||||
<UserDocu>dumpSymbol(fileSpec) - dump the contents of Symbol to a file</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -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="DrawViewPy"
|
||||
Name="DrawWeldSymbolPy"
|
||||
Twin="DrawWeldSymbol"
|
||||
TwinPointer="DrawWeldSymbol"
|
||||
Include="Mod/TechDraw/App/DrawWeldSymbol.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Mod/TechDraw/App/DrawViewPy.h"
|
||||
FatherNamespace="TechDraw">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>Feature for adding welding tiles to leader lines</UserDocu>
|
||||
</Documentation>
|
||||
<CustomAttributes />
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -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
|
||||
"""
|
||||
@@ -1,35 +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"
|
||||
Name="GeomFormatPy"
|
||||
Twin="GeomFormat"
|
||||
TwinPointer="GeomFormat"
|
||||
Include="Mod/TechDraw/App/Cosmetic.h"
|
||||
Namespace="TechDraw"
|
||||
FatherInclude="Base/PyObjectBase.h"
|
||||
FatherNamespace="Base"
|
||||
Constructor="true"
|
||||
Delete="true">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
|
||||
<UserDocu>GeomFormat specifies appearance parameters for TechDraw Geometry objects</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="clone" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Create a clone of this geomformat</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="copy" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Create a copy of this geomformat</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="Tag" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Gives the tag of the GeomFormat as string.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Tag" Type="String"/>
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
@@ -55,6 +55,7 @@ class TemplateClassPyExport(template.ModelTemplate):
|
||||
"Sketcher",
|
||||
"Spreadsheet",
|
||||
"Surface",
|
||||
"TechDraw",
|
||||
]:
|
||||
root, ext = os.path.splitext(path)
|
||||
return f"{root}_{ext}"
|
||||
|
||||
Reference in New Issue
Block a user