Commit Graph

110 Commits

Author SHA1 Message Date
Yorik van Havre
42c2a4d6ac Arch: Fixed some flat objects not appearing in techdraw 2019-05-13 13:10:36 -03:00
Yorik van Havre
4ef8663388 Arch: Better behaviour and tooltips on section plane task panel buttons - fixes #3643 2019-05-09 11:42:22 -03:00
Yorik van Havre
fc17fee860 Arch: Added 'Clip' property to section planes to clip the rendered contents to the plane limits 2019-04-28 17:29:19 -03:00
Yorik van Havre
e809a6fa24 Arch/TechDraw: TD Arch views now have a 'fillSpaces' property to show Arch spaces as color-filled areas 2019-04-19 18:20:33 -03:00
furti
41b85bb8cd Add option to fill cut shapes with material colors
Previously when setting the "Show Fill" property of the TechDraw Arch
Section View to true, the areas where always filled with a default grey
color.

This commit adds a property called "UseMaterialColorForFill" to the
ArchSectionPlane. When set to true, it will use the objects material
color to fill the cut shapes and fall back to the default color
when no Material is found.
2019-03-22 10:36:07 -03:00
Yorik van Havre
f048df5c6f Arch: Fixed remaining encoding problems - issue #3827 2019-02-19 20:03:51 -03:00
furti
f1e86b3e11 Fix missing DWG imports in ArchSectionPlane.getSVG
When a DWG file is imported into FreeCAD it gets imported as a Part
object with a compound shape. One would imagine, that such an object
should be rendered like a symbol inside a TechDraw View. But when the
imported shape is inside a SectionPlane that also contains solids, the
shape is not included in the SVG.

The problem is, that getCutShapes only uses solid shapes, when a volume
was cut before. But the imported DWG is a flat 2D object and has no solids
inside.

To fix it, the getSVG method will check if an object looks like a draft
object, meaning:
 - It has a shape
 - It has no solids
 - It has no volume

When it finds such a shape, it will treat it like a draft object. So
it is displayed like a symbol in the resulting SVG.

https://forum.freecadweb.org/viewtopic.php?f=3&t=34079
2019-02-09 19:53:54 -02:00
furti
1610046905 Fix missing door symbols in getSVG
The ArchSectionPlane has a built in SVG Cache. But the door symbols and
a few other things are not inside the cache. This things not inside the
cache rely on the presence of a cutface. But this cutface was only built
when the cache is not available.

So the First invocation after the cache was cleared added the symbols.
The next invocations of the method, with a cached SVG did not calculate
the symbols again, because the cutfaces where missing.

This commit fixes it by calculating the cutfaces independent from the
cache.

Reported in https://forum.freecadweb.org/viewtopic.php?f=3&t=33987
2019-02-08 11:05:17 -02:00
Yorik van Havre
f416d97d63 Arch: Disabled children claiming for Section Planes for now (buggy) 2018-11-08 15:17:22 -02:00
George Shuklin
ec1e837871 Initial work, only text (no lines) 2018-10-26 19:25:44 -03:00
Yorik van Havre
8eb3e2a103 Arch: Make section planes claim their children in the tree 2018-10-25 12:13:16 -03:00
Yorik van Havre
0a61c78543 Arch: cache svg calculations in section planes/techdraw views for better performance 2018-08-28 21:03:25 -03:00
Yorik van Havre
426a357a9e Arch: Added placement controls to section plane's task panel 2018-08-28 11:18:35 -03:00
Yorik van Havre
b4a4154556 Arch: Section plane is now created at center of selected objects 2018-08-27 22:09:03 -03:00
Yorik van Havre
42384e1a58 Arch: Added preference option for screen helpers color (axes, grids, etc...) 2018-07-25 10:56:12 -03:00
luz.paz
92e9659fba Misc. comment typos
+ Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm" -I ~/Projects/fc-word-whitelist.txt`

+ crowdin translation refinements:  
- https://crowdin.com/translate/freecad/6766/en-en#6499546
- https://crowdin.com/translate/freecad/6766/en-en#6504496
2018-06-13 20:37:17 -04:00
Yorik van Havre
0bae245b26 Arch: separate properties creation in own methods and check properties at file load 2018-06-01 19:36:35 -03:00
Yorik van Havre
a805bf82a4 Arch: Added CutMargin property to section planes 2018-05-14 12:34:14 -03:00
Yorik van Havre
d49a194279 Arch/Draft: Make sure an active doc exists before creating objects 2018-05-08 16:07:55 -03:00
Simon
0103762152 Fix wrong variable name symbolLineWidth -> svgSymbolLineWidth. 2017-04-23 19:42:25 -03:00
Simon
608968a9d2 ArchSectionPlane: Fix incomplete SVG because of = instead of +=. 2017-04-23 19:42:25 -03:00
Simon
980ff80ab7 ArchSectionPlane: Remove placeholders in getSVG and more clean up.
getSVG puts placeholders in the generated SVG code and replaces them
afterwards with length values. With the changes of the previous commits
this seems not to be necessary anymore.

I replace them in a separate commit so this change can be reverted easily.
2017-04-23 19:42:25 -03:00
Simon
15b0a425f5 ArchSectionPlane: Add properties for the line color and the fill color
* Both properties are automatically added to old section planes
  with the help of onDocumentRestored.
* A bit of style clean up to improve the readability of touched code lines.
2017-04-23 19:42:25 -03:00
Simon
1e854a482d ProjectionAlgos: Make the style of the lines in the SVG file configurable.
* getSVG provides new style parameters for every kind of line:
  V, V0, V1, H, H0, H1.
* Old line width parameters are removed. The style parameters
  can be used instead.
* A style is a map container for svg attribute keys and values
  (string, string).
* The Python interface is updated to offer the new style parameters
  accordingly as a dict.
* Because there are many parameters on the function call now,
  the Python interface supports keyword parameters.
* Update ArchSectionPlane to take advantage of the new style parameters.
  This simplifies the code. String replacements could be removed
  (done in a later commit).
* FeatureViewPy.cpp is – to my knowledge – the only function that used the
  old line width parameters. I rewrote it to use the new style parameters.
2017-04-23 19:42:25 -03:00
Yorik van Havre
94faa9dd2b Arch: misc minor bugfixes 2017-03-08 15:55:07 -03:00
Yorik van Havre
f95e8fda94 Arch: Fixed bug in Section Plane + TechDraw view when the section is empty 2017-01-19 17:54:58 -02:00
looooo
9cedf0f2e4 py3: Arch: print fixes 2017-01-17 11:13:36 +01:00
Priit Laes
c55216c2a9 py3: Arch: *.py: Fix syntax for python3 2017-01-17 09:24:46 +01:00
wmayer
50dc459d42 remove UnicodeUTF8 2016-12-27 19:31:25 +01:00
Yorik van Havre
0e73643636 Arch: Small fix in section plane's Drawing view object 2016-12-10 11:23:04 -02:00
Yorik van Havre
bf0d37bf28 Doc: Fixes in doxygen docs for Draft,Arch, FEM 2016-11-17 17:04:09 -02:00
Yorik van Havre
df69eccac7 Draft: implemented dxf export of techdraw pages 2016-11-05 15:13:48 -02:00
Yorik van Havre
4fc0cc2286 Arch: Added preference setting to control linewidth of Draft objects seen by Arch Section Planes 2016-11-03 16:40:12 -02:00
Yorik van Havre
fe8f0945d7 Arch: Support for opening symbols - fixes #2353 2016-11-02 20:10:20 -02:00
Yorik van Havre
dcacee28e0 TechDraw: Fixed solid rendering of Arch Views 2016-11-02 13:14:31 -02:00
Yorik van Havre
b548d7148e Arch: fixed rotation of space labels in techdraw 2016-11-01 18:53:48 -02:00
Yorik van Havre
1351399707 Arch: Section planes can now also include Draft stuff (dimensions, etc) 2016-10-31 11:10:08 -02:00
Yorik van Havre
2f7aecd3e0 Arch: cosmetic fixes in task panels 2016-10-28 17:14:41 -02:00
Yorik van Havre
0843237c69 TechDraw: Arch View 2016-10-28 14:58:22 -02:00
Yorik van Havre
210455d7db Made Arch objects properties translatable - issue #2524 2016-10-07 21:37:15 -03:00
Yorik van Havre
9603817dea Arch: fixed error message when restoring section planes 2016-09-13 20:06:25 -03:00
Yorik van Havre
41ffcc81b0 Draft: Improvement to Draft Drawing views
* Property to specify if the view must appear even if the Source obj is off
* Property to set the line spacing for multiline texts
2016-05-30 13:23:37 -03:00
Yorik van Havre
f40758eba9 removed translation from property descriptions (wrong to do it there anyway) - issue #2524 2016-05-18 16:59:15 -03:00
Yorik van Havre
38cef7a518 Arch: Fixed section plane's clipping - fixes #2063 2015-12-28 16:56:53 -02:00
Yorik van Havre
3064e2b68d Arch: fixed projection of Drawing views of arch sectionplanes - fixes #2233 2015-12-23 11:32:36 -02:00
Yorik van Havre
de8c2cbb66 Arch: Added editmode to Section Planes - fixes #2098 2015-11-28 14:51:40 -02:00
Yorik van Havre
6ba8b864d5 Arch: Fixed flipped Space names 2015-11-16 16:11:32 -02:00
Yorik van Havre
eae6423979 Arch: bigger default section plane - fixes #2189 2015-09-04 12:49:03 -03:00
Yorik van Havre
8d395620db Arch: Section planes now restore the view clipping when loaded 2015-06-22 21:58:56 -03:00
wood-galaxy
e13db78219 Arch : Arch Section take current WorkingPlane Placement 2015-05-24 17:03:45 -03:00