Commit Graph

79 Commits

Author SHA1 Message Date
captain0xff
13d31711f3 remove gp_* conversion code from TechDraw workbench 2025-03-11 05:21:58 +05:30
Kacper Donat
13fbab9e42 Base: Move App::Color to Base
Every basic data type is stored in Base module, color is standing out as
one that does not. Moving it to Base opens possibilities to integrate it
better with the rest of FreeCAD.
2025-02-17 21:10:26 +01:00
Benjamin Bræstrup Sayoc
02c300669f [TechDraw] Add ability to align points by rotating view
Fixes #7061
2025-02-10 19:31:39 -05:00
Benjamin Bræstrup Sayoc
5793b0d59d [TechDraw] Use templates instead of duplicate code: formatVector 2025-02-08 22:35:57 +01:00
Benjamin Bræstrup Sayoc
9f8f6b1f56 [TechDraw] Use templates instead of duplicate code: toGp 2025-02-08 22:35:57 +01:00
WandererFan
c9beae7ef3 [TD] Fix win file spec backslash (fix #16646) (#16689)
* [TD]add method to clean win filespecs

- '\' in strings passed to Python as filespecs is interpreted as
  an escape of the following character.
- replace '\' with '/'

* [TD]remove '\' from filespecs before use
2024-09-23 17:40:05 +02:00
WandererFan
140bcf605e [TD]Fix section snapping (fix #15961) (#15450)
* [TD]Add view snapping preferences

* [TD]fix section snapping algo

- snap sections to section normal line.
- snap views to other views in X&Y

* [TD]fix snapping to ProjectionGroups
2024-09-02 18:41:25 +02:00
WandererFan
50f970efd7 [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
wandererfan
2406c2798e [TD]handle odd projection cs in broken view 2024-04-12 13:41:46 -04:00
wandererfan
43fc04309a [TD]implement BrokenView 2024-04-06 15:25:23 -04:00
wandererfan
9f7a4ce8e0 [TD]fix ComplexSection with ViewDirection == Z 2024-03-25 21:22:04 -04:00
pavltom
2f04fce75e [TechDraw] Issue #5903 - Autofill template information 2024-03-23 08:56:47 -04:00
wandererfan
6ccf57b3a2 [TD]add 2 utility methods
- toAppSpace converts qt point to app view coords
- angleWithX(Base::Vector3d) returns [0,2pi]
2023-11-11 07:48:03 -05:00
DeflateAwning
1e3179e9bc Find and replace http://freecad.org to https://freecad.org
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Done in all remaining files (after doing it in SVGs in the last commit)
2023-10-29 22:39:22 -06:00
wandererfan
68f79e06ae [TD]allow centerline deletion with Del 2023-09-27 12:24:21 -04:00
wandererfan
82db4a3e47 [TD]allow cosmetic deletion via DEL 2023-09-15 11:46:37 -04:00
wandererfan
2f8a8beca8 [TD]fix 10013 detail of sketch 2023-08-20 12:25:12 -04:00
wandererfan
d69551eccb [TD]add label translation for Page and Template 2023-08-17 19:23:29 -04:00
luzpaz
38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
wandererfan
ffd3f9b1a2 [TD]fix unwanted inversion in edge scrubbing 2023-04-16 16:34:09 -04:00
edi271
c9d9284fb1 Move getTrianglePoint to DrawUtil 2023-04-05 08:23:47 -04:00
wandererfan
547df2b4df [TD]apply tester feedback on DimRepair 2023-01-18 17:48:22 -05:00
Uwe
c947055821 [TD] remove unused headers (#8155)
* [TD] remove unused headers

- also some sorting
- also improve readability by not using an abbreviation (we consistently don't abbreviate class names)
2023-01-09 14:55:22 +01:00
wandererfan
97b6788464 [TD]fix wrong calculation of 3d two edge angle 2023-01-07 16:32:03 -05:00
wandererfan
208104e9e0 [TD]Refactor Dimensions for 3d upgrade
- separate validation, geometry and reference handling into
  individual files
- improve 3d reference geometry handling
- eliminate duplicate dim creation code

- add Dimension reference repair dialog

- Refactor formatting out of DrawViewDimension

- move dimension repaint control to ViewProvider
2023-01-07 16:32:03 -05:00
wandererfan
33bee19d81 [TD]add section line marks for simple section 2022-11-14 19:41:12 -05:00
wandererfan
67ec157e59 [TD]Prevent ComplexSection creation without valid direction 2022-11-07 07:57:37 -05:00
wandererfan
0ff473a9b6 [TD]Complex Section - initial implementation 2022-10-28 08:47:45 -04:00
Uwe
c8b51fb79c [TD] DrawUtil: remove unused includes
- also sort includes
- also move a definition to it
- also adapt two Gui files accordingly
2022-10-08 03:35:59 +02:00
wandererfan
c1871ced15 [TD]encode Xml characters in spreadsheet 2022-10-04 08:16:36 -04:00
wandererfan
a88d4730d8 [TD]New face finder algo 2022-09-05 19:52:34 -04:00
wandererfan
aa2b1b8392 [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
Wanderer Fan
aa1193559b [TD]clazy warnings and duplicate setter/getter
- clazy warning re missing Q_OBJECT

- include TechDrawGlobal.h in headers

- resolve duplicate setter/getters
2022-08-18 09:34:32 -04:00
Wanderer Fan
75486e930b [TD]Include CosmeticLines in Dxf 2022-06-30 08:50:07 -04:00
Uwe
0c1172c58e [TD] App Headers: remove unused header - part 1 2022-03-24 23:06:08 +01:00
Wanderer Fan
921ada74d4 [TD]Fix 4486 allow detail view of Base with no solids 2022-02-01 09:15:00 -05:00
Wanderer Fan
959061720f [TD]Allow override of dimension line angles 2022-01-27 09:42:49 -05:00
edi271
1a8e88eeec [TD] Move Circulation method to DrawUtil 2022-01-21 11:22:40 -05:00
wandererfan
41380359a8 [TD]fix misaligned PAT hatch on section 2020-07-25 10:30:13 -04:00
wmayer
c162037476 LGTM: [skip ci] fix: Large object passed by value 2020-07-24 18:32:31 +02:00
wandererfan
9cf2e42404 [TD]oblique section lines 2020-05-10 11:03:15 -04:00
wandererfan
2cfb124ac6 [TD]dialog for Detail #4221 2020-04-08 13:23:28 -04:00
WandererFan
47aeca65e1 [TD]fix Section file included set up 2020-03-17 08:45:26 -04:00
wandererfan
15f180038f [TD]add ability to filter obvious geometry errors
- also add checks for geometry errors
2019-12-10 06:51:09 -05:00
wandererfan
2f155b8316 [TD]Add geometry debugging tool 2019-11-27 07:31:45 -05:00
wandererfan
7e6664e39d [TD] add CS3 dump 2019-11-27 07:31:45 -05:00
wandererfan
e64929de14 [TD]const-ness for dump function parameter 2019-11-10 15:58:45 -05:00
wandererfan
88b07896e6 [TD]Extent Dimensions 2019-11-02 14:59:32 -04:00
Tomas Pavlicek
c67ffc9f44 TechDraw - SVG changes via DOM manipulation instead of Regex replace 2019-10-06 07:31:34 -04:00
wandererfan
5e41f84a38 [TD]Add dumpCS function to DrawUtil 2019-10-01 17:30:35 -04:00