Stefan Tröger
491923e41e
Fem: Implement basic python filter functionality and glyph example
2025-05-02 09:25:56 +02:00
Benjamin Nauck
d0dc4c00ef
FEM: Use std::numeric_limits and std::numbers instead of defines
2025-03-29 13:32:38 +01:00
pre-commit-ci[bot]
c15e45e7e2
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2025-03-22 23:27:10 +01:00
Stefan Tröger
a65a7feb87
FEM: Switch post groups to extension based system
2025-03-22 23:27:10 +01:00
Karliss
fa61131590
Add missing parent for messagebox and other popups
...
Unparented popups can easily get lost in backround, but they still block top level event loop when run with ::exec() thus preventing interactions with main window. This mainly happens on wayland. Setting the parent ensures they are always kept on top and reasonably positioned.
2025-03-16 16:02:36 -05:00
Benjamin Nauck
dd6aa9f3c7
Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
...
Regex based changes, manually verified
2025-01-27 16:08:18 +01:00
Kacper Donat
651cefde4d
Gui: Use getObject<T>() helpers in classes
...
This commit is generated using regex based find and replace:
```
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*getObject\(\s*\)\)/getObject<$1>/
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*([^)]*)\s*->\s*getObject\(\s*\)\)/$2->getObject<$1>()/
```
To regenerate if needed.
2024-12-06 18:29:39 +01:00
wmayer
56820718c5
Core: Revert superfluous changes made with PR #9521
2023-10-09 15:06:45 +02:00
AgCaliva
1f9bae0de7
Merge branch 'master' into User/Document/Feature_level_units_selection_#7746
2023-09-25 22:58:23 -03:00
wmayer
b8b94c249e
Fem: Apply clang-format
2023-09-25 14:50:43 +02:00
AgCaliva
280e5e3987
Fixing DOMDocument redefinition
2023-09-16 00:38:41 -03:00
wmayer
d525e0d308
Fem: modernize C++: use equals default
2023-08-21 13:35:54 +02:00
wmayer
009f9f2222
FEM: modernize C++: use range-based for loop
2023-08-15 01:09:53 +02:00
wmayer
d150fa7164
modernize C++: avoid bind
...
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
68d22d864b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
luzpaz
c39dbc93f6
Fem: fix trailing whitespace
2023-04-01 08:39:05 +02:00
Uwe
97103b3bf3
[FEM] use std::unique_ptr for all dialog objects
...
- also fix too long line
- also further clang automatic code style changes
2023-03-22 20:08:13 +01:00
Uwe
c1751bde4a
[FEM] improve deletion warning
...
- don't popup a warning if all children of an object are selected too when deleting the object
2023-03-16 21:54:09 +01:00
marioalexis
20984f866c
Fem: Remove unused member node
2023-03-16 17:50:21 +01:00
marioalexis
b37fe66653
Fem: Remove property name comparison
2023-03-13 22:08:41 +01:00
marioalexis
191879b2c6
Fem: Remove property name comparison
2023-03-11 10:29:29 +01:00
marioalexis
a9b167ccbc
Fem: Add box filter function
2023-03-11 03:13:57 +01:00
Uwe
1bfaa6965b
[FEM] improve cylinder function
...
- set better initial position and size
- add misting triggering of ViewProvider
- some code style improvements (fix too long lines, consistency etc.)
2023-03-09 17:25:46 +01:00
Uwe
0d77da1c81
[FEM] [skip ci] fine-tune FEM function filter
...
- just for consistency use always the form "x.0"
2023-03-09 02:40:32 +01:00
Uwe
453b244b55
[FEM] fox compilation of new Cylinder function
...
- vector must be initialized and vector size requires a const int
- also some sorting
- also some formatting changes to be consistent (either always "x." or "x.0")
2023-03-08 18:02:10 +01:00
marioalexis
b1e8de58ea
FEM: Add cylinder filter function
2023-03-08 17:16:41 +01:00
wmayer
a9b9899846
FEM: move to new style connect()
2023-01-15 19:50:46 +01:00
Uwe
1527a731e7
[FEM] ViewProviderFem*: remove unused includes
...
- also sort includes
2022-10-03 15:01:37 +02:00
berniev
da9ebc572f
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
berniev
2d4c5a4cfb
Mod: use emplace_back
2022-08-05 10:36:16 +02:00
wmayer
e403b9ce55
Fem: [skip ci] Fix several clazy issues:
...
* Maybe you meant to call base method instead [-Wclazy-skipped-base-method]
* Using copy-ctor but class SbMatrix has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Missing emit keyword on signal call FemGui::PointMarker::PointsChanged [-Wclazy-incorrect-emit]
2022-07-25 12:11:47 +02:00
wmayer
e9890c0798
Gui/Mod: replace several reinterpret_cast with static_cast
2022-06-25 11:36:55 +02:00
mosfet80
620c273c4e
Boost version <=1.60 is never used in freecad 0.20 ( #7038 )
...
* Boost version 1.60 is never used in freecad 0.20
2022-06-24 02:20:26 +02:00
Uwe
74c2ad4bf0
[FEM] point filter: use a LineEdit to output value
...
- that one copy the result to the clipboard
- also fix a typo
2022-06-14 01:21:17 +02:00
wmayer
0a79760745
Gui: set a minimum width for quantity spin boxes in FEM dialogs to ignore the results of (minimum)sizeHint()
2022-06-12 20:25:40 +02:00
Uwe
9b5aabe458
[FEM] fix unit handling of filter functions
...
- the function properties use already units but the dialogs were unitless
2022-06-11 04:54:51 +02:00
Uwe
0cd6fa3329
[skip CI] [FEM] ViewProviderFemPostFunction: add a comment
2022-04-13 02:44:34 +02:00
wmayer
1688991391
FEM: automatically detect a suitable scale factor for old project files
2022-04-12 15:24:21 +02:00
wmayer
a70d6fd7ec
FEM: [skip ci] fix some typos
2022-04-12 11:03:03 +02:00
wmayer
8ca3513441
FEM: use an SoJackManip for ViewProviderFemPostPlaneFunction
2022-04-12 10:16:54 +02:00
wmayer
82d5be5f6b
Fem: remove the forced document recompute from ViewProviderFemPostSphereFunction::updateData
...
This is already handled in ViewProviderFemPostFunction::dragFinishCallback and can be switched on or off.
See also: https://forum.freecadweb.org/viewtopic.php?p=584481#p584481
2022-04-07 13:29:34 +02:00
wmayer
c4c0304518
Fem: move handling of PostAutoRecompute to a central class and by default set its value to true
2022-04-07 13:22:13 +02:00
Uwe
ee797360e1
[FEM] improve sphere cut function handling
...
This commit improves https://github.com/FreeCAD/FreeCAD/commit/2853f671
it turned out that it is valid to use a sphere being part of a Pipeline A ,a also for filters in a Pipeline B, C etc. Thus we must recompute the whole analysis container
2022-03-30 03:35:13 +02:00
Uwe
bb74a6b2b8
[FEM] [skip CI] remove superfluous ifs I introduced today
2022-03-30 01:45:59 +02:00
Uwe
2853f6715a
[FEM] fix sphere cut filter
...
when using a sphere as function for a filter, the pipeline must be recomputed when the sphere geometry is changed, not only the sphere
2022-03-29 04:48:59 +02:00
Uwe
c4576ecfeb
[FEM] add missing functions deletion handling
...
as it was, one could delete the functions container breaking the simulation. Now you get a warning.
- also remove unused includes
2022-03-24 16:17:44 +01:00
wmayer
97330443a2
All: modernize C++11
...
* replace deprecated headers
2022-03-23 22:44:18 +01:00
Uwe
8d618d44c0
[FEM] post object: some whitespace and style fixes
...
all made by MSVC
2022-03-23 21:51:25 +01:00
wmayer
7ae9fc0d67
Fem: modernize C++11
...
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
1ca7429705
Gui: Optimize includes to reduce compile time
2022-03-07 20:29:18 +01:00