[Draft] Removed annotation styles objects
Removed Annotation styles current implementation. As pointed out by yorik, in https://forum.freecadweb.org/viewtopic.php?f=23&t=44051&p=385710#p385179, this feature will be added using document Meta property.
This commit is contained in:
committed by
Yorik van Havre
parent
8e3dfe7c26
commit
0745f760a0
@@ -67,7 +67,6 @@ SET(Draft_objects
|
||||
draftobjects/draft_annotation.py
|
||||
draftobjects/label.py
|
||||
draftobjects/dimension.py
|
||||
draftobjects/dimensionstyle.py
|
||||
draftobjects/text.py
|
||||
draftobjects/README.md
|
||||
)
|
||||
@@ -80,7 +79,6 @@ SET(Draft_view_providers
|
||||
draftviewproviders/view_draft_annotation.py
|
||||
draftviewproviders/view_label.py
|
||||
draftviewproviders/view_dimension.py
|
||||
draftviewproviders/view_dimensionstyle.py
|
||||
draftviewproviders/view_text.py
|
||||
draftviewproviders/README.md
|
||||
)
|
||||
@@ -89,7 +87,6 @@ SET(Draft_GUI_tools
|
||||
draftguitools/__init__.py
|
||||
draftguitools/gui_base.py
|
||||
draftguitools/gui_circulararray.py
|
||||
draftguitools/gui_dimensionstyle.py
|
||||
draftguitools/gui_orthoarray.py
|
||||
draftguitools/gui_polararray.py
|
||||
draftguitools/gui_planeproxy.py
|
||||
|
||||
@@ -86,7 +86,6 @@ class DraftWorkbench(FreeCADGui.Workbench):
|
||||
from draftguitools import gui_polararray
|
||||
from draftguitools import gui_orthoarray
|
||||
from draftguitools import gui_arrays
|
||||
from draftguitools import gui_style_dimension
|
||||
FreeCADGui.addLanguagePath(":/translations")
|
||||
FreeCADGui.addIconPath(":/icons")
|
||||
except Exception as exc:
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
<file>icons/Draft_DelPoint.svg</file>
|
||||
<file>icons/Draft_Dimension.svg</file>
|
||||
<file>icons/Draft_Dimension_Tree.svg</file>
|
||||
<file>icons/Draft_Dimension_Style.svg</file>
|
||||
<file>icons/Draft_Dimension_Style_Tree.svg</file>
|
||||
<file>icons/Draft_DimensionAngular.svg</file>
|
||||
<file>icons/Draft_DimensionRadius.svg</file>
|
||||
<file>icons/Draft_Dot.svg</file>
|
||||
|
||||
@@ -1,404 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="64px"
|
||||
height="64px"
|
||||
id="svg2676"
|
||||
version="1.1">
|
||||
<defs
|
||||
id="defs2678">
|
||||
<linearGradient
|
||||
id="linearGradient4077">
|
||||
<stop
|
||||
style="stop-color:#888a85;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4079" />
|
||||
<stop
|
||||
style="stop-color:#2e3436;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop4081" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3836-0">
|
||||
<stop
|
||||
style="stop-color:#c4a000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3838-2" />
|
||||
<stop
|
||||
style="stop-color:#fce94f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3840-5" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient3836-0"
|
||||
id="linearGradient3105"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.83309445,0,0,0.83309445,-2.4108426,2.7318647)"
|
||||
x1="-18"
|
||||
y1="18"
|
||||
x2="-22"
|
||||
y2="5" />
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient3836-0-6"
|
||||
id="linearGradient3105-3"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.83309445,0,0,0.83309445,-2.4108426,2.7318647)"
|
||||
x1="-18"
|
||||
y1="18"
|
||||
x2="-22"
|
||||
y2="5" />
|
||||
<linearGradient
|
||||
id="linearGradient3836-0-6">
|
||||
<stop
|
||||
style="stop-color:#c4a000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3838-2-7" />
|
||||
<stop
|
||||
style="stop-color:#fce94f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3840-5-5" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient3836-0-2"
|
||||
id="linearGradient3105-1"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.83309445,0,0,0.83309445,-2.4108426,2.7318647)"
|
||||
x1="-18"
|
||||
y1="18"
|
||||
x2="-22"
|
||||
y2="5" />
|
||||
<linearGradient
|
||||
id="linearGradient3836-0-2">
|
||||
<stop
|
||||
style="stop-color:#c4a000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3838-2-70" />
|
||||
<stop
|
||||
style="stop-color:#fce94f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3840-5-9" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient3836-0-1"
|
||||
id="linearGradient3105-6"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.83309445,0,0,0.83309445,-2.4108426,2.7318647)"
|
||||
x1="-18"
|
||||
y1="18"
|
||||
x2="-22"
|
||||
y2="5" />
|
||||
<linearGradient
|
||||
id="linearGradient3836-0-1">
|
||||
<stop
|
||||
style="stop-color:#c4a000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3838-2-8" />
|
||||
<stop
|
||||
style="stop-color:#fce94f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3840-5-7" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="5"
|
||||
x2="-22"
|
||||
y1="18"
|
||||
x1="-18"
|
||||
gradientTransform="matrix(0.83309445,0,0,0.83309445,-2.4108426,2.7318647)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3246"
|
||||
xlink:href="#linearGradient3836-0-1" />
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient3836-0-3"
|
||||
id="linearGradient3105-2"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.83309445,0,0,0.83309445,-2.4108426,2.7318647)"
|
||||
x1="-18"
|
||||
y1="18"
|
||||
x2="-22"
|
||||
y2="5" />
|
||||
<linearGradient
|
||||
id="linearGradient3836-0-3">
|
||||
<stop
|
||||
style="stop-color:#c4a000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3838-2-75" />
|
||||
<stop
|
||||
style="stop-color:#fce94f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3840-5-92" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="5"
|
||||
x2="-22"
|
||||
y1="18"
|
||||
x1="-18"
|
||||
gradientTransform="matrix(0.83309445,0,0,0.83309445,-2.4108426,2.7318647)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3286"
|
||||
xlink:href="#linearGradient3836-0-3" />
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient4077"
|
||||
id="linearGradient4091"
|
||||
x1="458.2142"
|
||||
y1="34.613808"
|
||||
x2="459.69397"
|
||||
y2="30.174515"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient4077-9"
|
||||
id="linearGradient4093-8"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="458.2142"
|
||||
y1="34.613808"
|
||||
x2="459.69397"
|
||||
y2="30.174515" />
|
||||
<linearGradient
|
||||
id="linearGradient4077-9">
|
||||
<stop
|
||||
style="stop-color:#888a85;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4079-6" />
|
||||
<stop
|
||||
style="stop-color:#2e3436;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop4081-0" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient4077-0"
|
||||
id="linearGradient4093-4"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="458.2142"
|
||||
y1="34.613808"
|
||||
x2="459.69397"
|
||||
y2="30.174515" />
|
||||
<linearGradient
|
||||
id="linearGradient4077-0">
|
||||
<stop
|
||||
style="stop-color:#888a85;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4079-9" />
|
||||
<stop
|
||||
style="stop-color:#2e3436;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop4081-4" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="30.174515"
|
||||
x2="459.69397"
|
||||
y1="34.613808"
|
||||
x1="458.2142"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient4145"
|
||||
xlink:href="#linearGradient4077-0" />
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient4077-0"
|
||||
id="linearGradient3819"
|
||||
x1="230.03166"
|
||||
y1="675.04034"
|
||||
x2="155.01889"
|
||||
y2="643.28284"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient4077-0-2"
|
||||
id="linearGradient3819-1"
|
||||
x1="230.03166"
|
||||
y1="675.04034"
|
||||
x2="155.01889"
|
||||
y2="643.28284"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
id="linearGradient4077-0-2">
|
||||
<stop
|
||||
style="stop-color:#888a85;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4079-9-7" />
|
||||
<stop
|
||||
style="stop-color:#2e3436;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop4081-4-7" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="643.28284"
|
||||
x2="155.01889"
|
||||
y1="675.04034"
|
||||
x1="230.03166"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3836"
|
||||
xlink:href="#linearGradient4077-0-2" />
|
||||
</defs>
|
||||
<g
|
||||
id="layer1">
|
||||
<g
|
||||
id="g3966"
|
||||
transform="matrix(0.9463094,0,0,0.9463094,-423.94991,-0.8705343)">
|
||||
<g
|
||||
id="g3946">
|
||||
<g
|
||||
id="g3801"
|
||||
transform="matrix(0.8389287,0,0,0.8389287,70.961422,17.159235)" />
|
||||
<rect
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#2e3436;stroke-width:2.11347365;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="rect3151"
|
||||
width="4.2269473"
|
||||
height="23.248205"
|
||||
x="455.40063"
|
||||
y="35.79224" />
|
||||
<rect
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#2e3436;stroke-width:2.11347365;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="rect3151-2"
|
||||
width="4.2269473"
|
||||
height="23.248205"
|
||||
x="504.01053"
|
||||
y="35.79224" />
|
||||
<rect
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#2e3436;stroke-width:2.11347365;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="rect3151-2-9"
|
||||
width="50.723419"
|
||||
height="4.2269483"
|
||||
x="456.45734"
|
||||
y="31.565294" />
|
||||
<g
|
||||
id="g3095"
|
||||
transform="translate(-0.54837935,1.7985813)">
|
||||
<g
|
||||
id="g3827-1"
|
||||
transform="matrix(0.63422399,0,0,0.63422399,419.26594,-6.6998585)">
|
||||
<g
|
||||
id="g3797-9"
|
||||
transform="translate(31.322131,40.570289)">
|
||||
<g
|
||||
id="g3101"
|
||||
transform="matrix(1.0929417,0,0,1.0929417,50.053814,46.859677)">
|
||||
<path
|
||||
style="fill:#fce94f;stroke:#2e2900;stroke-width:3.04899836;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="path4250-71"
|
||||
d="M -25.459643,6.3070256 A 9.1609585,9.1605407 0.02042846 1 1 -11.54333,18.224065 9.1609585,9.1605407 0.02042846 1 1 -25.459643,6.3070256 z" />
|
||||
<path
|
||||
style="fill:url(#linearGradient3105);fill-opacity:1;stroke:#fce94f;stroke-width:3.04899716;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="path4250-7-3"
|
||||
d="m -22.932948,8.4748746 a 5.8316609,5.8316612 0 1 1 8.858783,7.5865014 5.8316609,5.8316612 0 0 1 -8.858783,-7.5865014 z" />
|
||||
</g>
|
||||
<g
|
||||
id="g3101-9"
|
||||
transform="matrix(1.0944996,0,0,1.0944996,126.74426,46.82392)">
|
||||
<path
|
||||
style="fill:#fce94f;stroke:#2e2900;stroke-width:3.04465842;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="path4250-71-2"
|
||||
d="M -25.459643,6.3070256 A 9.1609585,9.1605407 0.02042846 1 1 -11.54333,18.224065 9.1609585,9.1605407 0.02042846 1 1 -25.459643,6.3070256 z" />
|
||||
<path
|
||||
style="fill:url(#linearGradient3246);fill-opacity:1;stroke:#fce94f;stroke-width:3.04465723;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="path4250-7-3-0"
|
||||
d="m -22.932948,8.4748746 a 5.8316609,5.8316612 0 1 1 8.858783,7.5865014 5.8316609,5.8316612 0 0 1 -8.858783,-7.5865014 z" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
id="g3805"
|
||||
transform="matrix(0.71412546,0,0,0.71412546,121.83779,8.9601678)"
|
||||
style="fill:url(#linearGradient4091);fill-opacity:1;stroke:#000000;stroke-width:2.95952702">
|
||||
<path
|
||||
transform="matrix(-0.09267867,-0.07912434,0.07912434,-0.09267867,436.47946,110.93746)"
|
||||
d="m 245.71428,655.2193 a 48.57143,48.57143 0 0 1 -48.57143,48.57143 48.57143,48.57143 0 0 1 -48.57143,-48.57143 48.57143,48.57143 0 0 1 48.57143,-48.57143 48.57143,48.57143 0 0 1 48.57143,48.57143 z"
|
||||
id="path2901"
|
||||
style="fill:url(#linearGradient3819);fill-opacity:1;stroke:#000000;stroke-width:24.28617476999999880;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
|
||||
<path
|
||||
transform="matrix(-0.09267867,-0.07912433,0.07912433,-0.09267867,504.54859,110.93745)"
|
||||
d="m 245.71428,655.2193 a 48.57143,48.57143 0 0 1 -48.57143,48.57143 48.57143,48.57143 0 0 1 -48.57143,-48.57143 48.57143,48.57143 0 0 1 48.57143,-48.57143 48.57143,48.57143 0 0 1 48.57143,48.57143 z"
|
||||
id="path2901-9"
|
||||
style="fill:url(#linearGradient3836);fill-opacity:1;stroke:#000000;stroke-width:24.28617477;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
id="layer1-9"
|
||||
transform="matrix(1.0567368,0,0,1.0567368,443.24003,-29.199586)">
|
||||
<g
|
||||
transform="matrix(0,0.98259094,-1,0,156.35711,-405.08726)"
|
||||
id="g3973">
|
||||
<path
|
||||
style="fill:#ffffff;stroke:#302b00;stroke-width:2.01763964;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
|
||||
d="m 477.22051,113.0061 5.08859,17 -17.3012,-5 -2.03543,-4 10.17717,-10 z"
|
||||
id="path3969" />
|
||||
<path
|
||||
style="fill:#c4a000;stroke:none"
|
||||
d="m 456.86616,93.006094 -4.07087,4 20.35435,20.000006 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
id="path3843" />
|
||||
<path
|
||||
style="fill:#edd400;stroke:#c4a000;stroke-linejoin:round"
|
||||
d="m 452.79529,97.006087 -4.07087,4.000013 20.35435,20 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
id="path3843-7" />
|
||||
<path
|
||||
style="fill:#fce94f;stroke:none"
|
||||
d="m 448.72442,101.0061 -4.07087,4 20.35435,20 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
id="path3843-5" />
|
||||
<path
|
||||
style="fill:none;stroke:#302b00;stroke-width:2.01763964;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
|
||||
d="m 456.86616,93.006097 -4.07087,4 20.35435,20.000003 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
id="path3843-5-6" />
|
||||
<path
|
||||
style="fill:none;stroke:#302b00;stroke-width:2.01763964;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
|
||||
d="m 452.79529,97.006097 -4.07087,4.000003 20.35435,20 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
id="path3843-5-6-2" />
|
||||
<path
|
||||
style="fill:none;stroke:#302b00;stroke-width:2.01763964;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
|
||||
d="m 448.72442,101.0061 -4.07087,4 20.35435,20 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
id="path3843-5-6-9" />
|
||||
<path
|
||||
style="fill:#302b00;stroke:none;stroke-width:1.00881982px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
|
||||
d="m 479.25595,122.0061 c -1.01772,0 -4.058,3.26642 -4.49502,5.75019 l 7.54817,2.24981 -2.28992,-7.91665 v 0"
|
||||
id="path3971" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<metadata
|
||||
id="metadata4038">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
<cc:license
|
||||
rdf:resource="" />
|
||||
<dc:date>Mon Oct 10 13:44:52 2011 +0000</dc:date>
|
||||
<dc:creator>
|
||||
<cc:Agent>
|
||||
<dc:title>[wmayer]</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:creator>
|
||||
<dc:rights>
|
||||
<cc:Agent>
|
||||
<dc:title>FreeCAD LGPL2+</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:rights>
|
||||
<dc:publisher>
|
||||
<cc:Agent>
|
||||
<dc:title>FreeCAD</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:publisher>
|
||||
<dc:identifier>FreeCAD/src/Mod/Draft/Resources/icons/Draft_Dimension.svg</dc:identifier>
|
||||
<dc:relation>http://www.freecadweb.org/wiki/index.php?title=Artwork</dc:relation>
|
||||
<dc:contributor>
|
||||
<cc:Agent>
|
||||
<dc:title>[agryson] Alexander Gryson</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:contributor>
|
||||
<dc:subject>
|
||||
<rdf:Bag>
|
||||
<rdf:li>line</rdf:li>
|
||||
<rdf:li>dot</rdf:li>
|
||||
<rdf:li>number</rdf:li>
|
||||
</rdf:Bag>
|
||||
</dc:subject>
|
||||
<dc:description>A number floating above a line corresponding to the upper three sides of a rectangle with a dot at each endpoint and corner</dc:description>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 15 KiB |
@@ -1,542 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="64px"
|
||||
height="64px"
|
||||
id="svg2735"
|
||||
version="1.1">
|
||||
<title
|
||||
id="title881">Draft_Dimension_Tree</title>
|
||||
<defs
|
||||
id="defs2737">
|
||||
<linearGradient
|
||||
id="linearGradient5127">
|
||||
<stop
|
||||
style="stop-color:#fce94f;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop5129" />
|
||||
<stop
|
||||
style="stop-color:#c4a000;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop5131" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient5127"
|
||||
id="linearGradient5133"
|
||||
x1="515.75537"
|
||||
y1="6.6850076"
|
||||
x2="566.54315"
|
||||
y2="-14.744089"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0,0.59069328,-0.37332419,0,46.495675,-286.65322)" />
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient5127"
|
||||
id="linearGradient1022"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0,0.59069328,0.37332419,0,17.504325,-286.65322)"
|
||||
x1="515.75537"
|
||||
y1="70.972298"
|
||||
x2="566.54315"
|
||||
y2="97.758667" />
|
||||
<linearGradient
|
||||
id="linearGradient3836">
|
||||
<stop
|
||||
id="stop3838"
|
||||
offset="0"
|
||||
style="stop-color:#3465a4;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop3840"
|
||||
offset="1"
|
||||
style="stop-color:#729fcf;stop-opacity:1;" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3144-6">
|
||||
<stop
|
||||
offset="0"
|
||||
style="stop-color:#ffffff;stop-opacity:1"
|
||||
id="stop3146-9" />
|
||||
<stop
|
||||
offset="1"
|
||||
style="stop-color:#ffffff;stop-opacity:0"
|
||||
id="stop3148-2" />
|
||||
</linearGradient>
|
||||
<radialGradient
|
||||
r="34.345188"
|
||||
fy="672.79736"
|
||||
fx="225.26402"
|
||||
cy="672.79736"
|
||||
cx="225.26402"
|
||||
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient3688"
|
||||
xlink:href="#linearGradient3144-6" />
|
||||
<linearGradient
|
||||
id="linearGradient3864-0-0">
|
||||
<stop
|
||||
style="stop-color:#0619c0;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3866-5-7" />
|
||||
<stop
|
||||
style="stop-color:#379cfb;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3868-7-6" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3377">
|
||||
<stop
|
||||
style="stop-color:#ffaa00;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3379" />
|
||||
<stop
|
||||
style="stop-color:#faff2b;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3381" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient5048">
|
||||
<stop
|
||||
id="stop5050"
|
||||
offset="0"
|
||||
style="stop-color:black;stop-opacity:0;" />
|
||||
<stop
|
||||
style="stop-color:black;stop-opacity:1;"
|
||||
offset="0.5"
|
||||
id="stop5056" />
|
||||
<stop
|
||||
id="stop5052"
|
||||
offset="1"
|
||||
style="stop-color:black;stop-opacity:0;" />
|
||||
</linearGradient>
|
||||
<radialGradient
|
||||
id="aigrd2"
|
||||
cx="20.892099"
|
||||
cy="114.5684"
|
||||
r="5.256"
|
||||
fx="20.892099"
|
||||
fy="114.5684"
|
||||
gradientUnits="userSpaceOnUse">
|
||||
<stop
|
||||
offset="0"
|
||||
style="stop-color:#F0F0F0"
|
||||
id="stop15566" />
|
||||
<stop
|
||||
offset="1.0000000"
|
||||
style="stop-color:#9a9a9a;stop-opacity:1.0000000;"
|
||||
id="stop15568" />
|
||||
</radialGradient>
|
||||
<radialGradient
|
||||
id="aigrd3"
|
||||
cx="20.892099"
|
||||
cy="64.567902"
|
||||
r="5.257"
|
||||
fx="20.892099"
|
||||
fy="64.567902"
|
||||
gradientUnits="userSpaceOnUse">
|
||||
<stop
|
||||
offset="0"
|
||||
style="stop-color:#F0F0F0"
|
||||
id="stop15573" />
|
||||
<stop
|
||||
offset="1.0000000"
|
||||
style="stop-color:#9a9a9a;stop-opacity:1.0000000;"
|
||||
id="stop15575" />
|
||||
</radialGradient>
|
||||
<linearGradient
|
||||
id="linearGradient15662">
|
||||
<stop
|
||||
id="stop15664"
|
||||
offset="0.0000000"
|
||||
style="stop-color:#ffffff;stop-opacity:1.0000000;" />
|
||||
<stop
|
||||
id="stop15666"
|
||||
offset="1.0000000"
|
||||
style="stop-color:#f8f8f8;stop-opacity:1.0000000;" />
|
||||
</linearGradient>
|
||||
<radialGradient
|
||||
xlink:href="#linearGradient259"
|
||||
id="radialGradient4452"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.96049297,0,0,1.041132,-52.144249,-702.33158)"
|
||||
cx="33.966679"
|
||||
cy="35.736916"
|
||||
fx="33.966679"
|
||||
fy="35.736916"
|
||||
r="86.70845" />
|
||||
<linearGradient
|
||||
id="linearGradient259">
|
||||
<stop
|
||||
id="stop260"
|
||||
offset="0.0000000"
|
||||
style="stop-color:#fafafa;stop-opacity:1.0000000;" />
|
||||
<stop
|
||||
id="stop261"
|
||||
offset="1.0000000"
|
||||
style="stop-color:#bbbbbb;stop-opacity:1.0000000;" />
|
||||
</linearGradient>
|
||||
<radialGradient
|
||||
xlink:href="#linearGradient269"
|
||||
id="radialGradient4454"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.96827297,0,0,1.032767,-48.790699,-701.68513)"
|
||||
cx="8.824419"
|
||||
cy="3.7561285"
|
||||
fx="8.824419"
|
||||
fy="3.7561285"
|
||||
r="37.751713" />
|
||||
<linearGradient
|
||||
id="linearGradient269">
|
||||
<stop
|
||||
id="stop270"
|
||||
offset="0.0000000"
|
||||
style="stop-color:#a3a3a3;stop-opacity:1.0000000;" />
|
||||
<stop
|
||||
id="stop271"
|
||||
offset="1.0000000"
|
||||
style="stop-color:#4c4c4c;stop-opacity:1.0000000;" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient4095">
|
||||
<stop
|
||||
id="stop4097"
|
||||
offset="0"
|
||||
style="stop-color:#005bff;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop4099"
|
||||
offset="1"
|
||||
style="stop-color:#c1e3f7;stop-opacity:1;" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientTransform="matrix(0.94231826,0,0,0.94231826,23.727549,8.8262536)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
y2="140.22731"
|
||||
x2="434.73947"
|
||||
y1="185.1304"
|
||||
x1="394.15784"
|
||||
id="linearGradient4253"
|
||||
xlink:href="#linearGradient4247" />
|
||||
<linearGradient
|
||||
id="linearGradient4247">
|
||||
<stop
|
||||
id="stop4249"
|
||||
offset="0"
|
||||
style="stop-color:#2e8207;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop4251"
|
||||
offset="1"
|
||||
style="stop-color:#52ff00;stop-opacity:1;" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient5127"
|
||||
id="linearGradient5133-5"
|
||||
x1="515.75537"
|
||||
y1="6.6850076"
|
||||
x2="566.54315"
|
||||
y2="-14.744089"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0,0.59069328,-0.37332419,0,46.495675,-286.65322)" />
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient5127"
|
||||
id="linearGradient1022-8"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0,0.59069328,0.37332419,0,17.504325,-286.65322)"
|
||||
x1="515.75537"
|
||||
y1="70.972298"
|
||||
x2="566.54315"
|
||||
y2="97.758667" />
|
||||
<radialGradient
|
||||
r="34.345188"
|
||||
fy="672.79736"
|
||||
fx="225.26402"
|
||||
cy="672.79736"
|
||||
cx="225.26402"
|
||||
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient3688-1"
|
||||
xlink:href="#linearGradient3144-6" />
|
||||
<linearGradient
|
||||
y2="609.50507"
|
||||
x2="302.85715"
|
||||
y1="366.64789"
|
||||
x1="302.85715"
|
||||
gradientTransform="matrix(2.774389,0,0,1.969706,-1892.179,-872.8854)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient5027"
|
||||
xlink:href="#linearGradient5048" />
|
||||
<radialGradient
|
||||
r="117.14286"
|
||||
fy="486.64789"
|
||||
fx="605.71429"
|
||||
cy="486.64789"
|
||||
cx="605.71429"
|
||||
gradientTransform="matrix(2.774389,0,0,1.969706,-1891.633,-872.8854)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient5029"
|
||||
xlink:href="#linearGradient5060" />
|
||||
<linearGradient
|
||||
id="linearGradient5060">
|
||||
<stop
|
||||
id="stop5062"
|
||||
offset="0"
|
||||
style="stop-color:black;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop5064"
|
||||
offset="1"
|
||||
style="stop-color:black;stop-opacity:0;" />
|
||||
</linearGradient>
|
||||
<radialGradient
|
||||
xlink:href="#linearGradient5060"
|
||||
id="radialGradient5392"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(-2.774389,0,0,1.969706,112.7623,-872.8854)"
|
||||
cx="605.71429"
|
||||
cy="486.64789"
|
||||
fx="605.71429"
|
||||
fy="486.64789"
|
||||
r="117.14286" />
|
||||
<linearGradient
|
||||
xlink:href="#linearGradient3864-0-0"
|
||||
id="linearGradient3847-7-5"
|
||||
x1="3709.3296"
|
||||
y1="1286.7291"
|
||||
x2="3935.5251"
|
||||
y2="1076.6174"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<radialGradient
|
||||
r="5.256"
|
||||
fy="114.5684"
|
||||
fx="20.892099"
|
||||
cy="114.5684"
|
||||
cx="20.892099"
|
||||
gradientTransform="matrix(0.229703,0,0,0.229703,4.613529,3.979808)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient2283"
|
||||
xlink:href="#aigrd2-1" />
|
||||
<radialGradient
|
||||
id="aigrd2-1"
|
||||
cx="20.892099"
|
||||
cy="114.5684"
|
||||
r="5.256"
|
||||
fx="20.892099"
|
||||
fy="114.5684"
|
||||
gradientUnits="userSpaceOnUse">
|
||||
<stop
|
||||
offset="0"
|
||||
style="stop-color:#F0F0F0"
|
||||
id="stop15566-5" />
|
||||
<stop
|
||||
offset="1.0000000"
|
||||
style="stop-color:#9a9a9a;stop-opacity:1.0000000;"
|
||||
id="stop15568-6" />
|
||||
</radialGradient>
|
||||
<radialGradient
|
||||
r="5.257"
|
||||
fy="64.567902"
|
||||
fx="20.892099"
|
||||
cy="64.567902"
|
||||
cx="20.892099"
|
||||
gradientTransform="matrix(0.229703,0,0,0.229703,4.613529,3.979808)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient2285"
|
||||
xlink:href="#aigrd3-5" />
|
||||
<radialGradient
|
||||
id="aigrd3-5"
|
||||
cx="20.892099"
|
||||
cy="64.567902"
|
||||
r="5.257"
|
||||
fx="20.892099"
|
||||
fy="64.567902"
|
||||
gradientUnits="userSpaceOnUse">
|
||||
<stop
|
||||
offset="0"
|
||||
style="stop-color:#F0F0F0"
|
||||
id="stop15573-2" />
|
||||
<stop
|
||||
offset="1.0000000"
|
||||
style="stop-color:#9a9a9a;stop-opacity:1.0000000;"
|
||||
id="stop15575-2" />
|
||||
</radialGradient>
|
||||
<radialGradient
|
||||
xlink:href="#linearGradient15662"
|
||||
id="radialGradient15668"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.96827297,0,0,1.032767,12.040542,-61.067271)"
|
||||
cx="8.1435566"
|
||||
cy="7.2678967"
|
||||
fx="8.1435566"
|
||||
fy="7.2678967"
|
||||
r="38.158695" />
|
||||
<radialGradient
|
||||
xlink:href="#linearGradient259"
|
||||
id="radialGradient4452-2"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.96049297,0,0,1.041132,-52.144249,-702.33158)"
|
||||
cx="33.966679"
|
||||
cy="35.736916"
|
||||
fx="33.966679"
|
||||
fy="35.736916"
|
||||
r="86.70845" />
|
||||
<radialGradient
|
||||
xlink:href="#linearGradient269"
|
||||
id="radialGradient4454-7"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.96827297,0,0,1.032767,-48.790699,-701.68513)"
|
||||
cx="8.824419"
|
||||
cy="3.7561285"
|
||||
fx="8.824419"
|
||||
fy="3.7561285"
|
||||
r="37.751713" />
|
||||
<radialGradient
|
||||
xlink:href="#linearGradient259"
|
||||
id="radialGradient3972"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.96049297,0,0,1.041132,8.6869921,-61.713721)"
|
||||
cx="33.966679"
|
||||
cy="35.736916"
|
||||
fx="33.966679"
|
||||
fy="35.736916"
|
||||
r="86.70845" />
|
||||
<radialGradient
|
||||
xlink:href="#linearGradient269"
|
||||
id="radialGradient3974"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.96827297,0,0,1.032767,12.040542,-61.067271)"
|
||||
cx="8.824419"
|
||||
cy="3.7561285"
|
||||
fx="8.824419"
|
||||
fy="3.7561285"
|
||||
r="37.751713" />
|
||||
<linearGradient
|
||||
y2="1190.875"
|
||||
x2="1267.9062"
|
||||
y1="1190.875"
|
||||
x1="901.1875"
|
||||
gradientTransform="matrix(0.10456791,0,0,0.10456791,368.43605,-33.490763)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient4937"
|
||||
xlink:href="#linearGradient4095" />
|
||||
</defs>
|
||||
<g
|
||||
transform="translate(0,0.33440451)"
|
||||
id="layer1">
|
||||
<g
|
||||
id="g1020"
|
||||
transform="matrix(-1,0,0,1,64,0)">
|
||||
<path
|
||||
style="display:inline;overflow:visible;visibility:visible;fill:url(#linearGradient1022);fill-opacity:1;fill-rule:evenodd;stroke:#302b00;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
|
||||
d="M 61,32 41.888729,51.000139 V 12.999857 Z"
|
||||
id="path1016" />
|
||||
<path
|
||||
style="display:inline;overflow:visible;visibility:visible;fill:none;stroke:#fce94f;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
|
||||
d="M 58.132908,32.00363 43.85,46.210559 V 17.796701 Z"
|
||||
id="path1018" />
|
||||
</g>
|
||||
<g
|
||||
transform="translate(-105.44439,-136.22016)"
|
||||
id="g3856"
|
||||
style="fill:#333333;fill-opacity:1">
|
||||
<rect
|
||||
style="fill:none;fill-opacity:1;stroke:#302b00;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect3852"
|
||||
width="11.999999"
|
||||
height="8.999999"
|
||||
x="131.4444"
|
||||
y="163.22015" />
|
||||
<rect
|
||||
y="165.22015"
|
||||
x="133.4444"
|
||||
height="5.0000086"
|
||||
width="7.9999971"
|
||||
id="rect1320"
|
||||
style="fill:none;fill-opacity:1;stroke:#888d81;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
</g>
|
||||
</g>
|
||||
<metadata
|
||||
id="metadata4610">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title>Draft_Dimension_Tree</dc:title>
|
||||
<cc:license
|
||||
rdf:resource="" />
|
||||
<dc:date>Wed Oct 6 12:19:00 2019 -0600</dc:date>
|
||||
<dc:creator>
|
||||
<cc:Agent>
|
||||
<dc:title>[vocx]</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:creator>
|
||||
<dc:rights>
|
||||
<cc:Agent>
|
||||
<dc:title>FreeCAD LGPL2+</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:rights>
|
||||
<dc:publisher>
|
||||
<cc:Agent>
|
||||
<dc:title>FreeCAD</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:publisher>
|
||||
<dc:identifier>FreeCAD/src/Mod/Draft/Resources/icons/Draft_Dimenstion_Tree</dc:identifier>
|
||||
<dc:relation>http://www.freecadweb.org/wiki/index.php?title=Artwork</dc:relation>
|
||||
<dc:contributor>
|
||||
<cc:Agent>
|
||||
<dc:title>[agryson] Alexander Gryson, [yorikvanhavre]</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:contributor>
|
||||
<dc:subject>
|
||||
<rdf:Bag>
|
||||
<rdf:li>triangle</rdf:li>
|
||||
<rdf:li>arrows</rdf:li>
|
||||
</rdf:Bag>
|
||||
</dc:subject>
|
||||
<dc:description>Two triangles, one pointing left, the other right, with a small line between the two</dc:description>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
transform="translate(-1.7092778,-17.490749)"
|
||||
id="layer1-9">
|
||||
<g
|
||||
id="g3973"
|
||||
transform="matrix(0,0.98259094,-1,0,156.35711,-405.08726)">
|
||||
<path
|
||||
id="path3969"
|
||||
d="m 477.22051,113.0061 5.08859,17 -17.3012,-5 -2.03543,-4 10.17717,-10 z"
|
||||
style="fill:#ffffff;stroke:#302b00;stroke-width:2.01763964;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" />
|
||||
<path
|
||||
id="path3843"
|
||||
d="m 456.86616,93.006094 -4.07087,4 20.35435,20.000006 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
style="fill:#c4a000;stroke:none" />
|
||||
<path
|
||||
id="path3843-7"
|
||||
d="m 452.79529,97.006087 -4.07087,4.000013 20.35435,20 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
style="fill:#edd400;stroke:#c4a000;stroke-linejoin:round" />
|
||||
<path
|
||||
id="path3843-5"
|
||||
d="m 448.72442,101.0061 -4.07087,4 20.35435,20 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
style="fill:#fce94f;stroke:none" />
|
||||
<path
|
||||
id="path3843-5-6"
|
||||
d="m 456.86616,93.006097 -4.07087,4 20.35435,20.000003 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
style="fill:none;stroke:#302b00;stroke-width:2.01763964;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" />
|
||||
<path
|
||||
id="path3843-5-6-2"
|
||||
d="m 452.79529,97.006097 -4.07087,4.000003 20.35435,20 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
style="fill:none;stroke:#302b00;stroke-width:2.01763964;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" />
|
||||
<path
|
||||
id="path3843-5-6-9"
|
||||
d="m 448.72442,101.0061 -4.07087,4 20.35435,20 c 0,-3 1.01772,-4 4.07087,-4 z"
|
||||
style="fill:none;stroke:#302b00;stroke-width:2.01763964;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" />
|
||||
<path
|
||||
id="path3971"
|
||||
d="m 479.25595,122.0061 c -1.01772,0 -4.058,3.26642 -4.49502,5.75019 l 7.54817,2.24981 -2.28992,-7.91665 v 0"
|
||||
style="fill:#302b00;stroke:none;stroke-width:1.00881982px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 17 KiB |
@@ -1,71 +0,0 @@
|
||||
# ***************************************************************************
|
||||
# * (c) 2020 Carlo Pavan *
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
# * This program is free software; you can redistribute it and/or modify *
|
||||
# * it under the terms of the GNU Lesser General Public License (LGPL) *
|
||||
# * as published by the Free Software Foundation; either version 2 of *
|
||||
# * the License, or (at your option) any later version. *
|
||||
# * for detail see the LICENCE text file. *
|
||||
# * *
|
||||
# * FreeCAD is distributed in the hope that it will be useful, *
|
||||
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
# * GNU Library General Public License for more details. *
|
||||
# * *
|
||||
# * You should have received a copy of the GNU Library General Public *
|
||||
# * License along with FreeCAD; if not, write to the Free Software *
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
|
||||
"""This module provides the Draft Dimension Style tool.
|
||||
"""
|
||||
## @package gui_style_dimension
|
||||
# \ingroup DRAFT
|
||||
# \brief This module provides the Draft Dimension Style tool.
|
||||
|
||||
import FreeCAD as App
|
||||
import FreeCADGui as Gui
|
||||
from PySide import QtCore
|
||||
from . import gui_base
|
||||
from draftutils import utils
|
||||
from draftobjects.dimensionstyle import make_dimension_style
|
||||
|
||||
|
||||
|
||||
class GuiCommandDimensionStyle(gui_base.GuiCommandSimplest):
|
||||
"""
|
||||
The command creates a dimension style object
|
||||
"""
|
||||
def __init__(self):
|
||||
super().__init__(name="Dimension style")
|
||||
|
||||
def GetResources(self):
|
||||
_msg = ("Creates a new dimension style.\n"
|
||||
"The object stores dimension preferences into the document."
|
||||
)
|
||||
return {'Pixmap' : 'Draft_Annotation_Style',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("Draft", "Dimension Style"),
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Draft", _msg)}
|
||||
|
||||
def IsActive(self):
|
||||
if Gui.ActiveDocument:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def Activated(self):
|
||||
sel = Gui.Selection.getSelection()
|
||||
|
||||
if len(sel) == 1:
|
||||
if utils.get_type(sel[0]) == 'Dimension':
|
||||
make_dimension_style(sel[0])
|
||||
return
|
||||
|
||||
make_dimension_style()
|
||||
|
||||
|
||||
Gui.addCommand('Draft_DimensionStyle', GuiCommandDimensionStyle())
|
||||
@@ -32,7 +32,7 @@
|
||||
import FreeCAD as App
|
||||
import math
|
||||
from PySide.QtCore import QT_TRANSLATE_NOOP
|
||||
import DraftGeomUtils
|
||||
import DraftGeomUtils, DraftVecUtils
|
||||
import draftutils.gui_utils as gui_utils
|
||||
import draftutils.utils as utils
|
||||
from draftobjects.draft_annotation import DraftAnnotation
|
||||
@@ -113,22 +113,13 @@ def make_dimension(p1,p2,p3=None,p4=None):
|
||||
normal = normal.negative()
|
||||
obj.Normal = normal
|
||||
|
||||
# format dimension according to ActiveDimensionStyle or user Preferences
|
||||
_style_applied = False
|
||||
if hasattr(App.ActiveDocument, "DimensionStyles"):
|
||||
active_style = App.ActiveDocument.DimensionStyles.ActiveDimensionStyle
|
||||
if active_style is not None:
|
||||
obj.DimensionStyle = active_style
|
||||
_style_applied = True
|
||||
if App.GuiUp:
|
||||
if not _style_applied:
|
||||
gui_utils.format_object(obj)
|
||||
gui_utils.format_object(obj)
|
||||
gui_utils.select(obj)
|
||||
|
||||
return obj
|
||||
|
||||
|
||||
|
||||
def make_angular_dimension(center,angles,p3,normal=None):
|
||||
"""makeAngularDimension(center,angle1,angle2,p3,[normal]): creates an angular Dimension
|
||||
from the given center, with the given list of angles, passing through p3.
|
||||
@@ -159,18 +150,9 @@ def make_angular_dimension(center,angles,p3,normal=None):
|
||||
normal = normal.negative()
|
||||
|
||||
obj.Normal = normal
|
||||
|
||||
# format dimension according to ActiveDimensionStyle or user Preferences
|
||||
_style_applied = False
|
||||
if hasattr(App.ActiveDocument, "DimensionStyles"):
|
||||
active_style = App.ActiveDocument.DimensionStyles.ActiveDimensionStyle
|
||||
if active_style is not None:
|
||||
obj.DimensionStyle = active_style
|
||||
_style_applied = True
|
||||
|
||||
if App.GuiUp:
|
||||
if not _style_applied:
|
||||
gui_utils.format_object(obj)
|
||||
gui_utils.format_object(obj)
|
||||
gui_utils.select(obj)
|
||||
|
||||
return obj
|
||||
@@ -188,12 +170,6 @@ class DimensionBase(DraftAnnotation):
|
||||
"Initialize common properties for dimension objects"
|
||||
DraftAnnotation.__init__(self,obj, tp)
|
||||
|
||||
# Annotation
|
||||
obj.addProperty("App::PropertyLink","DimensionStyle",
|
||||
"Annotation",
|
||||
QT_TRANSLATE_NOOP("App::Property",
|
||||
"Link dimension style"))
|
||||
|
||||
# Draft
|
||||
obj.addProperty("App::PropertyVector",
|
||||
"Normal",
|
||||
@@ -222,9 +198,7 @@ class DimensionBase(DraftAnnotation):
|
||||
|
||||
def onChanged(self,obj,prop):
|
||||
|
||||
if prop == "DimensionStyle":
|
||||
if hasattr(obj, "DimensionStyle"):
|
||||
gui_utils.format_object(target = obj, origin = obj.DimensionStyle)
|
||||
return
|
||||
|
||||
|
||||
def execute(self, obj):
|
||||
@@ -284,9 +258,6 @@ class LinearDimension(DimensionBase):
|
||||
# obj.setEditorMode('Normal', 2)
|
||||
if hasattr(obj, "Support"):
|
||||
obj.setEditorMode('Support', 2)
|
||||
if prop == "DimensionStyle":
|
||||
if hasattr(obj, "DimensionStyle"):
|
||||
gui_utils.format_object(target = obj, origin = obj.DimensionStyle)
|
||||
|
||||
|
||||
def execute(self, obj):
|
||||
|
||||
@@ -1,123 +0,0 @@
|
||||
# ***************************************************************************
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
# * This program is free software; you can redistribute it and/or modify *
|
||||
# * it under the terms of the GNU Lesser General Public License (LGPL) *
|
||||
# * as published by the Free Software Foundation; either version 2 of *
|
||||
# * the License, or (at your option) any later version. *
|
||||
# * for detail see the LICENCE text file. *
|
||||
# * *
|
||||
# * FreeCAD is distributed in the hope that it will be useful, *
|
||||
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
# * GNU Library General Public License for more details. *
|
||||
# * *
|
||||
# * You should have received a copy of the GNU Library General Public *
|
||||
# * License along with FreeCAD; if not, write to the Free Software *
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
|
||||
"""This module provides the object code for Draft DimensionStyle.
|
||||
"""
|
||||
## @package dimensionstyle
|
||||
# \ingroup DRAFT
|
||||
# \brief This module provides the object code for Draft DimensionStyle.
|
||||
|
||||
import FreeCAD as App
|
||||
from PySide.QtCore import QT_TRANSLATE_NOOP
|
||||
from draftobjects.draft_annotation import DraftAnnotation
|
||||
from draftobjects.draft_annotation import StylesContainerBase
|
||||
|
||||
if App.GuiUp:
|
||||
import FreeCADGui as Gui
|
||||
from draftviewproviders.view_dimensionstyle import ViewProviderDimensionStyle
|
||||
from draftviewproviders.view_dimensionstyle import ViewProviderDimensionStylesContainer
|
||||
|
||||
def make_dimension_style(existing_dimension = None):
|
||||
"""
|
||||
Make dimension style
|
||||
"""
|
||||
if not App.ActiveDocument:
|
||||
App.Console.PrintError("No active document. Aborting\n")
|
||||
return
|
||||
obj = App.ActiveDocument.addObject("App::FeaturePython","DimensionStyle")
|
||||
DimensionStyle(obj)
|
||||
if App.GuiUp:
|
||||
ViewProviderDimensionStyle(obj.ViewObject, existing_dimension)
|
||||
get_dimension_styles_container().addObject(obj)
|
||||
return obj
|
||||
|
||||
def get_dimension_styles_container():
|
||||
"""get_dimension_styles_container(): returns a group object to put dimensions in"""
|
||||
for obj in App.ActiveDocument.Objects:
|
||||
if obj.Name == "DimensionStyles":
|
||||
return obj
|
||||
obj = App.ActiveDocument.addObject("App::DocumentObjectGroupPython", "DimensionStyles")
|
||||
obj.Label = QT_TRANSLATE_NOOP("draft", "Dimension Styles")
|
||||
DimensionStylesContainer(obj)
|
||||
if App.GuiUp:
|
||||
ViewProviderDimensionStylesContainer(obj.ViewObject)
|
||||
return obj
|
||||
|
||||
|
||||
class DimensionStylesContainer(StylesContainerBase):
|
||||
"""The Dimension Container"""
|
||||
|
||||
def __init__(self, obj):
|
||||
super().__init__(obj, tp = "DimensionStyles")
|
||||
|
||||
# init properties
|
||||
|
||||
obj.addProperty("App::PropertyLink","ActiveDimensionStyle",
|
||||
"Annotation",
|
||||
QT_TRANSLATE_NOOP("App::Property",
|
||||
"Active dimension style"))
|
||||
|
||||
# sets properties read only
|
||||
obj.setEditorMode("Visibility", 1)
|
||||
obj.setEditorMode("ActiveDimensionStyle", 1)
|
||||
|
||||
|
||||
def onChanged(self, obj, prop):
|
||||
if prop == "Visibility" and hasattr(obj, "Visibility"):
|
||||
if obj.Visibility == False:
|
||||
obj.Visibility = True
|
||||
if hasattr(obj, "ActiveDimensionStyle"):
|
||||
if obj.ActiveDimensionStyle:
|
||||
super().make_unique_visible(obj, obj.ActiveDimensionStyle)
|
||||
|
||||
if prop == "ActiveDimensionStyle" and hasattr(obj, "ActiveDimensionStyle"):
|
||||
super().make_unique_visible(obj, obj.ActiveDimensionStyle)
|
||||
|
||||
|
||||
class DimensionStyle(DraftAnnotation):
|
||||
def __init__(self, obj):
|
||||
|
||||
super().__init__(obj, "DimensionStyle")
|
||||
|
||||
obj.setEditorMode("Visibility", 1) # sets visibility read only
|
||||
|
||||
|
||||
def onChanged(self, obj, prop):
|
||||
""" visibility property controls setting the activeDimensionStyle
|
||||
so the only visible style is the current one
|
||||
"""
|
||||
if prop == "Visibility" and hasattr(obj, "Visibility"):
|
||||
if obj.Visibility == True:
|
||||
self.set_current(obj)
|
||||
elif obj.Visibility == False:
|
||||
self.remove_from_current(obj)
|
||||
|
||||
def set_visible(self, obj):
|
||||
obj.Visibility = True
|
||||
|
||||
def set_current(self, obj):
|
||||
get_dimension_styles_container().ActiveDimensionStyle = obj
|
||||
|
||||
def remove_from_current(self, obj):
|
||||
if get_dimension_styles_container().ActiveDimensionStyle:
|
||||
if get_dimension_styles_container().ActiveDimensionStyle.Name == obj.Name:
|
||||
get_dimension_styles_container().ActiveDimensionStyle = None
|
||||
@@ -1,158 +0,0 @@
|
||||
# ***************************************************************************
|
||||
# * *
|
||||
# * This file is part of the FreeCAD CAx development system. *
|
||||
# * *
|
||||
# * This program is free software; you can redistribute it and/or modify *
|
||||
# * it under the terms of the GNU Lesser General Public License (LGPL) *
|
||||
# * as published by the Free Software Foundation; either version 2 of *
|
||||
# * the License, or (at your option) any later version. *
|
||||
# * for detail see the LICENCE text file. *
|
||||
# * *
|
||||
# * FreeCAD is distributed in the hope that it will be useful, *
|
||||
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
# * GNU Library General Public License for more details. *
|
||||
# * *
|
||||
# * You should have received a copy of the GNU Library General Public *
|
||||
# * License along with FreeCAD; if not, write to the Free Software *
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
|
||||
"""This module provides the view provider code for Draft DimensionStyle.
|
||||
"""
|
||||
## @package dimensionstyle
|
||||
# \ingroup DRAFT
|
||||
# \brief This module provides the view provider code for Draft DimensionStyle.
|
||||
|
||||
import FreeCAD as App
|
||||
from Draft import _ViewProviderDraft
|
||||
from PySide.QtCore import QT_TRANSLATE_NOOP
|
||||
import draftutils.gui_utils as gui_utils
|
||||
import draftutils.utils as utils
|
||||
from pivy import coin
|
||||
from draftviewproviders.view_draft_annotation import ViewProviderStylesContainerBase
|
||||
from draftviewproviders.view_dimension import ViewProviderDimensionBase
|
||||
|
||||
|
||||
class ViewProviderDimensionStylesContainer(ViewProviderStylesContainerBase):
|
||||
"""A View Provider for the Dimension Styles Container"""
|
||||
|
||||
def __init__(self, vobj):
|
||||
super().__init__(vobj)
|
||||
|
||||
def getIcon(self):
|
||||
|
||||
return ":/icons/Draft_Annotation_Style.svg"
|
||||
|
||||
|
||||
class ViewProviderDimensionStyle(ViewProviderDimensionBase):
|
||||
"""
|
||||
Dimension style dont have a proper object but just a viewprovider.
|
||||
It stores inside a document object dimension settings and restore them on demand.
|
||||
"""
|
||||
def __init__(self, vobj, existing_dimension = None):
|
||||
super().__init__(vobj)
|
||||
|
||||
vobj.addProperty("App::PropertyBool","AutoUpdate",
|
||||
"Annotation",
|
||||
QT_TRANSLATE_NOOP("App::Property",
|
||||
"Auto update associated dimensions"))
|
||||
|
||||
self.init_properties(vobj, existing_dimension)
|
||||
|
||||
# Visibility is True only if the style is active
|
||||
vobj.Visibility = False
|
||||
|
||||
def init_properties(self, vobj, existing_dimension):
|
||||
"""
|
||||
Initializes Dimension Style properties
|
||||
"""
|
||||
# get the style from FreeCAD Draft Parameters
|
||||
param = App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft")
|
||||
annotation_scale = param.GetFloat("DraftAnnotationScale", 1.0)
|
||||
|
||||
vobj.ScaleMultiplier = 1 / annotation_scale
|
||||
vobj.AutoUpdate = True
|
||||
|
||||
vobj.FontName = utils.get_param("textfont","")
|
||||
vobj.FontSize = utils.get_param("textheight",0.20)
|
||||
vobj.TextSpacing = utils.get_param("dimspacing",0.05)
|
||||
|
||||
vobj.Decimals = utils.get_param("dimPrecision",2)
|
||||
vobj.ShowUnit = utils.get_param("showUnit",True)
|
||||
|
||||
vobj.ArrowSize = utils.get_param("arrowsize",0.1)
|
||||
vobj.ArrowType = utils.ARROW_TYPES
|
||||
vobj.ArrowType = utils.ARROW_TYPES[utils.get_param("dimsymbol",0)]
|
||||
vobj.DimOvershoot = utils.get_param("dimovershoot",0)
|
||||
vobj.ExtLines = utils.get_param("extlines",0.3)
|
||||
vobj.ExtOvershoot = utils.get_param("extovershoot",0)
|
||||
vobj.ShowLine = True
|
||||
|
||||
if existing_dimension and hasattr(existing_dimension, "ViewObject"):
|
||||
# get the style from given dimension
|
||||
gui_utils.format_object(target = vobj.Object, origin = existing_dimension)
|
||||
|
||||
def onChanged(self, vobj, prop):
|
||||
if prop == "Visibility":
|
||||
return
|
||||
if hasattr(vobj, "AutoUpdate"):
|
||||
if vobj.AutoUpdate:
|
||||
self.update_related_dimensions(vobj)
|
||||
|
||||
def doubleClicked(self,vobj):
|
||||
self.set_current(vobj)
|
||||
|
||||
def setupContextMenu(self,vobj,menu):
|
||||
action1 = menu.addAction("Set current")
|
||||
action1.triggered.connect(lambda f=self.set_current, arg=vobj:f(arg))
|
||||
action2 = menu.addAction("Update dimensions")
|
||||
action2.triggered.connect(lambda f=self.update_related_dimensions, arg=vobj:f(arg))
|
||||
|
||||
def set_current(self, vobj):
|
||||
"""
|
||||
Sets the current dimension style as default for new created dimensions
|
||||
"""
|
||||
param = App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft")
|
||||
param.SetFloat("DraftAnnotationScale", 1 / vobj.ScaleMultiplier)
|
||||
|
||||
param.SetString("textfont", vobj.FontName)
|
||||
param.SetFloat("textheight", vobj.FontSize)
|
||||
param.SetFloat("dimspacing", vobj.TextSpacing)
|
||||
|
||||
param.SetInt("dimPrecision", vobj.Decimals)
|
||||
|
||||
param.SetFloat("arrowsize", vobj.ArrowSize)
|
||||
param.SetInt("dimsymbol", utils.ARROW_TYPES.index(vobj.ArrowType))
|
||||
param.SetFloat("dimovershoot", vobj.DimOvershoot)
|
||||
param.SetFloat("extlines", vobj.ExtLines)
|
||||
param.SetFloat("extovershoot", vobj.ExtOvershoot)
|
||||
|
||||
App.Console.PrintMessage("Current dimension style set to " + str(vobj.Object.Label) + "\n")
|
||||
|
||||
vobj.Object.Proxy.set_visible(vobj.Object)
|
||||
|
||||
def update_related_dimensions(self, vobj):
|
||||
"""
|
||||
Apply the style to the related dimensions
|
||||
"""
|
||||
for dim in vobj.Object.InList:
|
||||
gui_utils.format_object(target = dim, origin = vobj.Object)
|
||||
|
||||
def getIcon(self):
|
||||
|
||||
return ":/icons/Draft_Dimension_Tree_Style.svg"
|
||||
|
||||
def attach(self, vobj):
|
||||
self.standard = coin.SoGroup()
|
||||
vobj.addDisplayMode(self.standard,"Standard")
|
||||
|
||||
def getDisplayModes(self,obj):
|
||||
"'''Return a list of display modes.'''"
|
||||
return ["Standard"]
|
||||
|
||||
def getDefaultDisplayMode(self):
|
||||
"'''Return the name of the default display mode. It must be defined in getDisplayModes.'''"
|
||||
return "Standard"
|
||||
Reference in New Issue
Block a user