Commit Graph

25 Commits

Author SHA1 Message Date
Benjamin Nauck
b625e81a3e Gui: Use std::numeric_limits and std::numbers instead of defines 2025-03-29 13:32:38 +01:00
Chris Hennes
21c07cabc5 FreeCAD: Compiler warning fixes 2025-03-19 10:13:34 +01:00
PaddleStroke
61801fd727 Sketcher: Fix negative angle rendering negative bug 2025-03-13 15:28:23 +01:00
Florian Foinant-Willig
3e561a031b Fix Arc length look for angle > pi
and factorize some code
2024-12-09 11:51:02 -05:00
wmayer
636fa43c99 MSVC: Fix warnings and build failure 2024-06-12 10:36:58 -05:00
Florian Foinant-Willig
7f1936bc65 Gui: fix SoDatumLabel arrow disappear 2024-05-20 11:19:56 -05:00
wmayer
1a01ca17dd Gui: refactor SoDatumLabel::GLRender() 2024-05-16 21:24:57 -04:00
wmayer
a2003d4a08 Gui: fix linter warnings in SoDatumLabel 2024-05-16 21:24:57 -04:00
wmayer
f85e33b538 Gui: Fix possible crashes with SoDatumLabel
There are possible crashes in the methods:
* SoDatumLabel::getLabelTextCenter()
* SoDatumLabel::generatePrimitives()

The two methods expect three points but do not check that they are defined. Depending on the use case of the SoDatumLabel only
two points may be defined. Accessing a third point is undefined behaviour.
2024-05-16 21:24:57 -04:00
Florian Foinant-Willig
e2086ce1c7 Sketcher: ArcLength GUI 2024-03-25 22:32:20 +01:00
Florian Foinant-Willig
54fdeb4ba9 Core: Fix unselectable area in SoDatumLabel 2024-03-11 12:24:00 -05:00
PaddleStroke
718a287447 SoDatumLabel: Add arrowheads to angles. And improve arrowhead rendering. 2024-02-01 14:27:07 +01:00
Paddle
3b9a1f7949 SoDatumLabel : introduce distance arc helpers. 2024-01-19 11:13:09 +01:00
Paddle
ef2a723a32 Draw arc helpers for radius constraints. 2023-11-24 15:07:35 +01:00
Paddle
74a01c0d1b Improve angle constraint rendering. 2023-11-24 15:07:35 +01:00
Abdullah Tahiri
dca052bd9d Fix Compiler warnings of previous merged PRs 2023-11-08 15:20:13 +01:00
mos
55abfa201b removed unused variable 2023-11-06 11:19:52 -06:00
Paddle
ce4cb6eea7 Adds SoDatumLabel::getLabelTextCenter() to get the externalize the finding of position of text center. 2023-10-13 19:03:45 +02:00
wmayer
24cb532182 Gui: Remove bounding box computation from SoDatumLabel::GLRender() 2023-09-17 19:27:12 +02:00
Paddle
a13b05d877 SoDatumLabel: Make the textOffset persistent. 2023-09-17 13:05:53 +02:00
wmayer
ad10a01ad9 Gui: determine the bounding box of an SoDatumLabel outside its GLRender() method 2023-09-13 16:56:53 +02:00
wmayer
e09d8aaba6 Gui: modernize C++: use range-based for loop 2023-08-14 19:42:18 +02:00
Paddle
246014dddd TaskImage: fix issues 2023-04-12 16:48:08 +02:00
Paddle
68ed314604 TaskImage: use SoDatumLabel instead of basic line. 2023-04-12 16:48:07 +02:00
Paddle
271e3bec4a Move SoDatumLabel from Sketcher to Core so that it can be reused anywhere. 2023-04-12 16:48:07 +02:00