Commit Graph

115 Commits

Author SHA1 Message Date
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
Stefan Tröger
1cff507a7f FEM: Multiframe adoptions
- To support timedata and the relevant filters the pipeline needs to be fully setup, hence not only working on data
 - Multiblock source algorithm is needed to supply the time data for the algorithms
2025-03-22 23:27:10 +01:00
Chris Hennes
5f623390fb Merge pull request #20142 from bofdahof/ranges
Apply C++20 std::ranges (mainly to std::find)
2025-03-17 03:08:27 -05:00
bofdahof
4dd92724b6 FEM: apply std::ranges 2025-03-16 17:16:30 -05: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
Chris Hennes
7f1c43a335 Merge pull request #19636 from kadet1090/color-in-base
Base: Move App::Color to Base
2025-03-02 16:36:40 -06:00
Kacper Donat
2f35f1c561 Base: Add fromPercent and toPercent helpers 2025-02-23 22:51:13 +01:00
Kacper Donat
a72a63232a Base: Move App::Color to Base
Every basic data type is stored in Base module, color is standing out as
one that does not. Moving it to Base opens possibilities to integrate it
better with the rest of FreeCAD.
2025-02-17 21:10:26 +01:00
tritao
65466d580b Gui: Reorganize the selection files into a top Selection folder. 2025-02-03 17:56:57 +01: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
marioalexis
38bf51c768 Fem: Adapt FemPostObject transparency to changes made in #ffa3fa5b5a 2024-11-16 12:49:47 +01:00
marioalexis
02f5bd108e Fem: Add offset between faces and wireframe in FemPostObject view provider 2024-09-30 17:50:12 +02:00
marioalexis
30564b30ed Fem: Handle single value field - fixes #14022 2024-07-22 11:05:12 -05:00
marioalexis
f466f087fe Fem: Fix manual color bar range specification - fixes #15013 2024-07-20 22:36:53 -05:00
wmayer
ac50594e3b Remove color bar from SoFCColorBarNotifier to decrease reference counter 2024-07-15 18:05:30 +02:00
wmayer
d64bf15f8a Core: Update color bar when changing preferences
This solves one part of issue #10717
2024-07-01 10:55:21 -05:00
marioalexis84
42d772cb5e Fem: Reset field color bar - fixes #13695 (#13820)
* Fem: Reset field color bar - fixes #13695

* Fem: Hide input filter if new filer is created
2024-05-06 11:23:08 -05:00
marioalexis84
cc96f2718e Fem: Fix display modes order - fixes #13326 (#13358) 2024-04-08 18:15:12 +02:00
marioalexis
816226d332 Fem: Improve post-processing object style - fixes #13017 2024-04-01 11:04:29 -05:00
marioalexis
4a6771c441 Fem: Partial transparency fix in FemPostObject display modes 2024-03-13 05:50:27 -03:00
Florian Foinant-Willig
41080dec5b Fem: modernize type checking 2023-10-23 18:09:04 +02:00
marioalexis
3f1ecf9141 Fem: Change TaskPostBoxes constructors to specific view providers 2023-10-14 00:43:59 +02: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
41230a9427 fixing DOMDocument redefinition error 2 2023-09-14 03:50:53 -03:00
wmayer
51b924fd81 FEM: modernize C++: use default member init 2023-08-23 00:55:03 +02:00
wmayer
009f9f2222 FEM: modernize C++: use range-based for loop 2023-08-15 01:09:53 +02:00
wmayer
9f456d712b modernize C++: use equals delete 2023-08-10 17:29:05 +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
2a88c7c7df modernize C++: use bool literals 2023-08-06 01:35:39 +02:00
luzpaz
129d5882a7 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05: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
2143976302 Fem: Remove property name comparison 2023-03-12 18:27:39 +01:00
Uwe
a8a646f165 [FEM] improve pvtu file filtering
- catch case of only 2D objects
- use vtkDataSet as input for all filters
2023-02-24 03:46:47 +01:00
luzpaz
57b365f18f Fix misc. typos and whitespace 2023-02-22 23:46:18 +01:00
Uwe
902566c6ce [FEM] improve pvtu file filtering
- only filter when necessary
- avoid unnecessary function calls
- fix bug that objects were not made visible but invisible
2023-02-19 17:37:11 +01:00
Uwe
7534c6748c [FEM] fix possible crash on changing the VectorMode
- if pvtu file filtering is on, there is by design not on every call of WriteColorData() data
  (on other occasions of GetArray(array) the result is checked, for two calls is was forgotten)

- also some automatic code formatting according to our current clang file
2023-02-17 02:32:54 +01:00
Uwe
4639283b45 [FEM] make pvtu file filtering optional
- it is sensible to filter by default, however, it turned out that on some complex models Elmer fails to compute if the mesh volume regions are too small (in most cases) or at a certain mesh region. By disabling the filtering, one gets at least for the latter case a visual feedback where the mesh volume of the different CPU are (by also setting a transparency to the result pipeline).
2023-02-16 02:32:40 +01:00
wmayer
a2928cf0f6 Fem: fixes #8485: transparency of pipeline objects is visually lost 2023-02-15 14:52:44 +01:00
Uwe
b0e50b8eb2 [FEM] Contours: disable keyboard tracking
- otherwise the contour creating algorithm would be invoked on every keystroke
- also improve a code comment
2023-02-15 14:31:10 +01:00
Uwe
a84d6d19e6 [FEM] improve visualization of pvtu files
- To speed up analyses one calculates on several CPU cores. The result is a partial VTU file.
Unfortunately when applying a transparency the boundaries of the volumes computed by each CPU core are always visible. This makes it often unusable for visualizations.
The solution is to filter the results the same way a clip filter does.
2023-02-15 14:22:45 +01:00
Uwe
99a7262e60 [FEM] improve checks for datasets
- check if datasets exists before we access them
- speed up the check for the datatype by testing after the downcast
2023-02-15 10:54:45 +01:00
Uwe
67d73f31a8 [FEM] ViewProviderFemPostObject: fix a typo 2023-02-10 16:08:03 +01:00
Uwe
c59a10be77 [FEM] add support to show absolute value result fields
- for harmonically driven forces, the results of course also have an imaginary part. Elmer outputs the real and the imaginary parts as separate result field. However, for several applications one needs the absolute (sqrt(Re^2+Im^2)
- therefore offer also absolute field if there are real/imaginary results
2023-02-09 14:36:26 +01:00
Uwe
c8630fec0a [FEM] shorten too long lines
- reformatting was done by the MSVC formatter according to our current clang file
2023-02-06 23:12:53 +01:00
wmayer
e205daa43d Mod: modernize C++: replace 'typedef' with 'using' 2022-08-29 16:21:46 +02:00
berniev
da9ebc572f Mod: redundant void 2 2022-08-08 10:27:50 +02:00