Files
create/src/Mod/TechDraw/App/CosmeticEdgePy.xml
WandererFan b71c2a3278 [TD]Cosmetic function overhaul (#14216)
* [TD]Cosmetic geometry and tools update

- all cosmetics to store geometry in same form
- all cosmetics to survive scaling and rotation
- extension functions to survive scaling and rotation

* [TD]overhaul leader point storage and editing

- add py routine makeLeader(points)

* [TD]add leader conversion utility

* [TD]Set Leader RotateWithView default to true

* [TD]fix intersection vertex position

* [TD]add CosmeticEdge::makeLineFromCanonicalPoints

* [TD]fix 2 Extension tools

- positioning in DrawCosmeticCircle
- mishandling of points in execLineParallelPerpendicular

* [TD]Remove duplicate constexpr

* [TD]fix 2x Cosmetic arc tools

* [TD]refactor LineFormat out of Cosmetic

* [TD]move cosmetic appearance settings to LineFormat

* [TD]remove 2 unused methods

* [TD]apply format to blue line & circle tools

* [TD]fix ballon arrowhead does not rotate with view

* [TD]fix CosmeticCircle3Points

* [TD]allow multiple cosmetic object deletions

* [TD]fix extend/shorten centerline
2024-05-23 09:41:42 -04:00

70 lines
2.7 KiB
XML

<?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>