Commit Graph

30 Commits

Author SHA1 Message Date
PaddleStroke
dbdbc9934e Core: SoShapeScale fix weird scaling on viewport resize. See https://github.com/FreeCAD/FreeCAD/issues/18382#issuecomment-2527623758 2024-12-10 17:15:13 +01:00
wmayer
c2714fc8c5 Gui: Rename ViewProviderDatum::getRoot() to ViewProviderDatum::getDatumRoot()
Before the change the compiler raised the warning: 'Gui::ViewProviderDatum::getRoot' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
In the base class the method getRoot() is declared as const while in ViewProviderDatum it's not and that's why it's considered as an overloaded method.
However, this signature causes two problems:
1. In the client code it's not always clear which version of getRoot() should be called
2. It violates const-correctness

So, trying to declare the method ViewProviderDatum::getRoot() as const it now overrides the method of the base class (and fixes the warning) but
this doesn't lead to the expected result: See https://forum.freecad.org/viewtopic.php?p=796064#p796064

The other option is to rename the method. And this gives the expected result now.
2024-12-10 12:49:42 +01:00
PaddleStroke
b2f965c06e ViewProviderOrigin: Renamed to ViewProviderCoordinateSystem 2024-11-27 12:15:53 +01:00
PaddleStroke
4ebb66838c Core: Add App::LocalCoordinateSystem.
Most of App::Origin is moved into this sub class of App::Origin.
Add App::Point. Change graphics of the planes/axis.
Remove scale-by-content behavior and make it fixed size on screen.
2024-11-26 17:36:02 +01:00
PaddleStroke
3993bfede7 Rename ViewProviderOriginFeature to ViewProviderDatum 2024-11-26 15:36:48 +01:00
xtemp09
bce07d726a [GUI] Fix memory leak in ViewProviderPlane.cpp 2023-10-09 16:27:39 +02:00
wmayer
888a33917d Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02:00
Ronny Standtke
adb40e5634 Origin plane: make plane faces unpickable 2023-05-05 03:09:36 -04:00
Ronny Standtke
28d5f47b14 Origin plane: add semi transparent face 2023-05-05 03:09:36 -04:00
berniev
ae53c9b0a4 Gui: Use auto and range-based for (#7481)
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto. 
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
Uwe
8f4053e31d [Gui] ViewProviderPython* etc.: remove unused includes 2022-03-06 02:24:52 +01:00
0penBrain
0019726cd8 [GUI] Allow origin plane/axis selection with entire label bounding box 2022-01-20 00:32:24 +01:00
vosk
1300c630f4 [Part] - Fix memory leaks 2021-01-28 15:45:00 +01:00
luz paz
38815b9550 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
luz.paz
04ba2872f0 src/Gui: [skip ci] fix header uniformity
This PR fixes header uniformity across all `src/Gui` files
2019-12-25 11:39:17 +01:00
Stefan Tröger
5da7aed8e1 Update Group/Part Icons and copy/paste behaviour 2017-09-09 16:55:55 +02:00
Alexander Golubev
1b76b1117d Gui: refactor Plane's and Line's ViewProviders and add yet another one for OriginFeature
- Share the code of Gui::ViewProviderPlanes and Gui::ViewProviderLine
   in Gui::ViewProviderOriginFeature
 - Add support for coloring and transparencing the OriginFeatures by
   ViewProviderGeometryObject means.
2016-04-12 18:12:18 +02:00
Stefan Tröger
f6f2565b8c fix origin plane and line viewprovider
master changed the highlight code for viewproviders, needed an adjustement after rebase
2016-04-12 18:12:18 +02:00
Stefan Tröger
7a86e3bfe0 less intrusive base plane colors 2016-04-12 18:12:06 +02:00
Stefan Tröger
d5d6b30af3 move feature pick dialog into the task view 2016-04-12 18:12:05 +02:00
Stefan Tröger
4d1ccd63c6 Prevent origin and base entities from transforming 2016-04-12 18:12:05 +02:00
Stefan Tröger
09660ea84d highlight planes 2016-04-12 18:12:05 +02:00
Stefan Tröger
38de336ee0 make hidden base plane parts dashed 2016-04-12 18:12:05 +02:00
Stefan Tröger
940857e508 Adopt planes to Part size 2016-04-12 18:12:04 +02:00
jriegel
9bd8762365 Assembly: Plane ViewProvider Size property and smaller standard size 2016-04-12 18:12:02 +02:00
jrheinlaender
c12f34300a Improved bounding box calculation for datum feature display size 2016-04-12 18:11:49 +02:00
jriegel
57d4edab07 implementing Plane visual 2016-04-12 18:11:44 +02:00
Mateusz Skowroński
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
cab441cf2a + remove references to SoFCSelection where not needed 2015-05-20 19:24:12 +02:00
jriegel
fe76712e9f Add all base system changes from the Assembly branch 2013-02-10 20:02:33 +01:00