Commit Graph

222 Commits

Author SHA1 Message Date
wandererfan
9cb4745f38 [TD]handle loose geometry via HLR 2023-12-03 08:55:59 -05:00
wandererfan
8a7e8effb3 [TD]Standard Line Styles - App components 2023-12-01 11:27:29 -05:00
Florian Foinant-Willig
24352a7f4c TechDraw: modernize type checking 2023-10-23 18:08:59 +02:00
wandererfan
9defdaf0a6 [TD]#11091 item 12 array over run 2023-10-19 10:07:48 -04:00
wandererfan
ed72c03df3 [TD]fix sketch location in view 2023-10-03 13:35:36 -04:00
André Caldas
695a314229 TechDraw: creates closure for concurrent thread context.
We use a lambda function with a copy of variables
that might be destructed in the original calling thread,
possibly producing dangling references.

See: https://forum.freecad.org/viewtopic.php?t=81260
2023-09-20 09:26:15 -04:00
wandererfan
a51e46775f [TD]fix 10013 detail of sketch 2023-08-20 12:25:12 -04:00
wandererfan
3e164a5700 [TD]split GeometryObject 2023-08-18 15:18:42 -04:00
wandererfan
b7f149864b [TD]move dvp cosmetic functions to extension 2023-08-10 10:17:22 -04:00
wandererfan
d087a8fea4 [TD]remove unused code dvp & sections 2023-08-10 10:17:22 -04:00
wmayer
f94b026456 modernize C++: use transparent functors 2023-08-07 16:08:35 +02:00
wmayer
2a88c7c7df modernize C++: use bool literals 2023-08-06 01:35:39 +02:00
grubertechnic
122c34e2cf [TechDraw] seam line in HLR default false 2023-07-30 12:48:30 -04:00
wandererfan
470a9d6911 [TD]make scrubbing count a property of view 2023-04-17 20:43:20 -04:00
Benjamin Bræstrup Sayoc
3f81006ac4 [TechDraw] Simplify return logic
Normal warmup
2023-04-11 13:49:57 -04:00
Benjamin Bræstrup Sayoc
70c9cf0fc0 [TechDraw] Simplify return logic
Easy warmup
2023-04-11 13:00:45 -04:00
Benjamin Bræstrup Sayoc
15fe52a04b [TechDraw] Simplify retrievement of user preferences
for all TechDraw files
2023-04-10 23:34:05 -04:00
Benjamin Bræstrup Sayoc
a207822ee8 [TechDraw] Move CenterLine into own file 2023-04-06 13:51:35 -04:00
WandererFan
31e81a2857 Update DrawViewPart.cpp
missed removing old line
2023-04-05 19:19:52 -04:00
Benjamin Bræstrup Sayoc
fabce4405e [TechDraw] Improve readability of DrawViewPart.cpp 2023-04-05 19:19:52 -04:00
wandererfan
b9fa9cb33e [TD]corrupt dim reference detect and correct 2023-03-22 20:09:35 -04:00
wmayer
a9694e1878 TD: port to Qt6
* in QtConcurrent::run the order of 1st and 2nd argument are swapped
* QtConcurrent::run asserts that the argument of the passed function pointer is not non-const
* Used methods of QFontDatabase are static in Qt5 and Qt6
* QTextStream::setCodec() has been removed in Qt6
* Argument of enterEvent() has changed from QEvent to QEnterEvent
* QTextCharFormat::setFamily() is deprecated
2023-03-16 09:17:39 -04:00
wandererfan
fb9b3a9e9e [TD]fix centering of shape
- centering of shape was not affecting the OCC TShape, so
  we now make a deep copy of the original
2023-03-12 19:21:22 -04:00
wandererfan
01641433c1 [TD]getters and setters for geometry
- make attributes private (or protected) and use
  getters and setters instead of accessing attributes
  directly.
2023-02-28 08:15:06 -05:00
Uwe
c32bf8e99a [TD] fix compiler about a variable redefinition 2023-02-26 10:31:36 +01:00
wandererfan
12db3618df [TD]remove obsolete log messages 2023-01-13 12:15:33 -05:00
wandererfan
664b2560ad [TD]fix wrong calculation of 3d two edge angle 2023-01-07 16:32:03 -05:00
wandererfan
1b547dff72 [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
14994bd9f7 [TD]remove debug statements 2022-12-26 12:13:34 -05:00
wandererfan
d7a9f44f20 [TD]fix startup exception on empty compound 2022-12-26 12:13:34 -05:00
wandererfan
47ef35047b [TD]detail of rotated ComplexSection 2022-12-18 09:42:42 -05:00
wandererfan
23dc64365b [TD]move makeAlignedPieces to separate thread
- correct ComplexSection rotation

- fix fail to load CS for some profiles and directions
2022-12-18 09:42:42 -05:00
Aapo
1f6ec0469a [TD] DrawViewPart: Fix Dimension attachment for Coarse Views and faceless Views 2022-11-20 08:08:33 -05:00
Aapo
2e19e5f6fb [TD] DrawViewPart: Fix Dimension attachment on Cosmetic CenterLines upon document restore 2022-11-17 19:25:43 -05:00
wmayer
9e9c784041 TD: fix memory leaks with raw pointers of GeometryObject
Replacing the use of raw pointers of GeometryObject with shared pointers fixes the observed memory leaks when running the unit tests of TechDraw
2022-11-15 16:16:08 -05:00
wandererfan
d7ace29c75 [TD]fix vertical alignment of section pieces 2022-11-11 19:37:42 -05:00
wandererfan
1a9637a384 [TD]fix XDirection rotation of simple sections 2022-11-10 19:19:22 -05:00
wandererfan
674b341af6 [TD]fix fail in calculating section line length 2022-11-10 19:19:22 -05:00
luz paz
7c5557b3cb Fix typos in TD and FEM source comments/documentation [skip ci] 2022-11-07 08:03:39 -05:00
wandererfan
c5a263bdd8 [TD]Prevent ComplexSection creation without valid direction 2022-11-07 07:57:37 -05:00
wandererfan
99f67b8a40 [TD]SectionView/ComplexSection - preview, direction selection
- add preview/live update to TaskSectionView & TaskComplexSection
- add view direction selector to uis
- use SectionNormal as Direction.  Make Direction read-only
- simplify section line end point calculation
- section group command in toolbar
- make section and complex section icons consistent
- fix compsolid cutting tool
- terminology: single/piecewise to offset/aligned
2022-10-28 08:47:45 -04:00
wandererfan
5ddc6ce789 [TD]Complex Section - initial implementation 2022-10-28 08:47:45 -04:00
Uwe
5dc30b159c [TD] DrawView*: remove unused includes - part 2
- also sort includes
- also additions to precompiled header
2022-10-08 02:10:26 +02:00
wandererfan
20f5db1ad1 [TD]fix extent dimension 2022-09-09 13:02:08 -04:00
Benjamin Bræstrup Sayoc
9c911dd1b5 [TechDraw] Microimprove new Face Finder Algorithm 2022-09-07 09:48:17 -04:00
wandererfan
2f363e4f17 [TD]New face finder algo 2022-09-05 19:52:34 -04:00
wandererfan
acf17905ed [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
wandererfan
fbfac41c82 [TD]fix face centerline
- centerlines were being added to geometry in postHlrTasks,
  but some CL depend on faces and so we move to
  onFacesFinished.
2022-08-31 17:18:48 -04:00
wandererfan
4310b49a8b [TD]replace GeometryObject only after all changes are done 2022-08-28 15:52:23 -04:00
wandererfan
4bdbacda75 [TD]clazy warning re 3 parameter QObject::connect 2022-08-28 15:52:23 -04:00