Skip to content

Commit

Permalink
[TD]Py routines for CenterLines
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Dec 17, 2019
1 parent 1ad2d35 commit a04d0f2
Show file tree
Hide file tree
Showing 21 changed files with 910 additions and 314 deletions.
79 changes: 67 additions & 12 deletions src/Mod/TechDraw/App/CenterLinePy.xml
Expand Up @@ -13,7 +13,7 @@
Delete="true">
<Documentation>
<Author Licence="LGPL" Name="WandererFan" EMail="wandererfan@gmail.com" />
<UserDocu>CenterLine specifies appearance parameters for TechDraw Geometry objects</UserDocu>
<UserDocu>CenterLine specifies additional mark up edges in a View</UserDocu>
</Documentation>
<Methode Name="clone" Const="true">
<Documentation>
Expand All @@ -25,22 +25,77 @@
<UserDocu>Create a copy of this centerline</UserDocu>
</Documentation>
</Methode>
<Methode Name="setFormat">
<Documentation>
<UserDocu>Change the appearance of this CenterLine. cl.setFormat(style, color, weight, visible)</UserDocu>
</Documentation>
</Methode>

<Methode Name="getFormat">
<Documentation>
<UserDocu>returns the appearance attributes of this CenterLine. returns tuple(style, color, weight, visible).</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="Object"/>
</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="Object"/>
</Attribute>
<Attribute Name="Faces">
<Documentation>
<UserDocu>The names of source Faces for this CenterLine.</UserDocu>
</Documentation>
<Parameter Name="Faces" Type="Object"/>
</Attribute>
<Attribute Name="Points">
<Documentation>
<UserDocu>The names of source Points for this CenterLine.</UserDocu>
</Documentation>
<Parameter Name="Points" Type="Object"/>
</Attribute>
</PythonExport>
</GenerateModel>

0 comments on commit a04d0f2

Please sign in to comment.