marioalexis
91c493cd82
Fem: Align plane translator to Z-axis
2025-09-24 12:26:10 -03:00
Markus Reitböck
4baa3a5ee7
Fem: use CMake to generate precompiled headers on all platforms
...
"Professional CMake" book suggest the following:
"Targets should build successfully with or without compiler support for precompiled headers. It
should be considered an optimization, not a requirement. In particular, do not explicitly include a
precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
generated precompile header on the compiler command line instead. This is more portable across
the major compilers and is likely to be easier to maintain. It will also avoid warnings being
generated from certain code checking tools like iwyu (include what you use)."
Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-23 00:51:00 +02:00
Stefan Tröger
9430bdde01
Fem: Implement basic python filter functionality and glyph example
2025-05-02 09:25:56 +02:00
Benjamin Nauck
e2da3bce46
FEM: Use std::numeric_limits and std::numbers instead of defines
2025-03-29 13:32:38 +01:00
pre-commit-ci[bot]
44e15af433
[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
a5e66bf542
FEM: Switch post groups to extension based system
2025-03-22 23:27:10 +01:00
Karliss
42790475d6
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
6f535f19fb
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
954b729b56
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
d305f306df
Core: Revert superfluous changes made with PR #9521
2023-10-09 15:06:45 +02:00
AgCaliva
a4e90b2609
Merge branch 'master' into User/Document/Feature_level_units_selection_#7746
2023-09-25 22:58:23 -03:00
wmayer
3863cff6c0
Fem: Apply clang-format
2023-09-25 14:50:43 +02:00
AgCaliva
b360b43ebe
Fixing DOMDocument redefinition
2023-09-16 00:38:41 -03:00
wmayer
2bcec7717d
Fem: modernize C++: use equals default
2023-08-21 13:35:54 +02:00
wmayer
89b9a7ae0f
FEM: modernize C++: use range-based for loop
2023-08-15 01:09:53 +02:00
wmayer
948cbfccd9
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
52e1c7c33b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
luzpaz
6bd40b5dcd
Fem: fix trailing whitespace
2023-04-01 08:39:05 +02:00
Uwe
9d45d40ec5
[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
929713af03
[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
3d3c20e72a
Fem: Remove unused member node
2023-03-16 17:50:21 +01:00
marioalexis
44914ab85f
Fem: Remove property name comparison
2023-03-13 22:08:41 +01:00
marioalexis
dc93ecd55b
Fem: Remove property name comparison
2023-03-11 10:29:29 +01:00
marioalexis
b51eec232f
Fem: Add box filter function
2023-03-11 03:13:57 +01:00
Uwe
3289a9cccc
[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
baf5a51e1a
[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
68690edb0a
[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
3e61ca0fbb
FEM: Add cylinder filter function
2023-03-08 17:16:41 +01:00
wmayer
d4cb3aca0e
FEM: move to new style connect()
2023-01-15 19:50:46 +01:00
Uwe
6757d1e853
[FEM] ViewProviderFem*: remove unused includes
...
- also sort includes
2022-10-03 15:01:37 +02:00
berniev
f4ffd15864
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
berniev
47ac049e14
Mod: use emplace_back
2022-08-05 10:36:16 +02:00
wmayer
a9a4cf3d6d
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
d5340a82ab
Gui/Mod: replace several reinterpret_cast with static_cast
2022-06-25 11:36:55 +02:00
mosfet80
c48a569696
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
f1e3c30d6a
[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
d49209049c
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
64f9edf52c
[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
6f449fbc12
[skip CI] [FEM] ViewProviderFemPostFunction: add a comment
2022-04-13 02:44:34 +02:00
wmayer
7261798eae
FEM: automatically detect a suitable scale factor for old project files
2022-04-12 15:24:21 +02:00
wmayer
8da621e220
FEM: [skip ci] fix some typos
2022-04-12 11:03:03 +02:00
wmayer
7c400f114d
FEM: use an SoJackManip for ViewProviderFemPostPlaneFunction
2022-04-12 10:16:54 +02:00
wmayer
98eb81d0ba
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
5907a7261e
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
16ef926fb1
[FEM] improve sphere cut function handling
...
This commit improves https://github.com/FreeCAD/FreeCAD/commit/e22bcb61
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
f2ebc45a30
[FEM] [skip CI] remove superfluous ifs I introduced today
2022-03-30 01:45:59 +02:00
Uwe
06c10561d1
[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
4d3a963864
[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
d21a60b294
All: modernize C++11
...
* replace deprecated headers
2022-03-23 22:44:18 +01:00
Uwe
a3780fc127
[FEM] post object: some whitespace and style fixes
...
all made by MSVC
2022-03-23 21:51:25 +01:00