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
Uwe
bcc25f9bc7
[FEM] pipeline fix when there is no field
...
- for the case that pipeline with a field is active, then another pipeline that does not display any field, we cannot just return because the pipeline cannot have the color bar range of the prevision pipeline
2022-08-07 15:17:50 +02:00
berniev
2d4c5a4cfb
Mod: use emplace_back
2022-08-05 10:36:16 +02:00
wmayer
8bb85d2b7c
Fem: use SoAnnotation to highlight result pipeline objects
2022-07-31 17:51:31 +02:00
wmayer
e2805adb1b
Fem: implement a selection observer to notify a ViewProviderFemPostObject when its selection status has changed
2022-07-31 14:01:23 +02:00
wmayer
fc8842aea4
Fem: use 'using' instead of 'typedef' [modernize-use-using]
2022-07-27 19:11:05 +02:00
Uwe
66ff55a2aa
[FEM] fix PostObject hiding issue
...
- when a PostObject is hidden the FemPostDataAtPointFilter must not be taken into account
2022-07-27 16:56:06 +02:00
Uwe
97eafab6d3
[FEM] PostDataAtPoint: remove unnecessary style setting
...
- PostDataAtPoint is a point therefore setting a filling style is not necessary
- also fix a typo in a comment
2022-07-27 16:15:04 +02:00
Uwe
ceed599beb
[FEM] skip CI] update a comment
2022-07-27 03:54:26 +02:00
Uwe
16c89568b8
[FEM] update ViewProvider selection code
...
as suggested in
67e836b7e9 (r79459854)
2022-07-27 03:51:46 +02:00
Uwe
67e836b7e9
[FEM] PostObject: improve color bar refreshing
...
- for data point filters the color bar must not be updated
2022-07-26 04:00:02 +02:00
Uwe
20c770c899
[FEM] ViewProviderDocumentObject: fix parenthesis mistake
...
(I don't know how this happened)
2022-07-24 19:25:53 +02:00
Uwe
8e7e057430
[FEM] fix color bar handling on hiding post objects
...
- fixed the remaining part of #7230 : on hiding an object, refresh the color bar of the new visible object (if there is any)
2022-07-24 19:17:24 +02:00
Uwe
689737b443
[FEM] better fix for missing colorbar update for FemPostObject
...
- better fix for #7230 because we can call the direct paint method and because the bar is now also updated when the object is shown
- also add a ToDo note
2022-07-23 16:57:16 +02:00
Uwe
9f9a874247
[FEM] fix missing colorbar update for FemPostObject
...
- fixes issue #7230
- to update the color bar for post objects, the Field property has to be reset to trigger this. This PR does this.
2022-07-22 01:20:18 +02:00
wmayer
7db925d991
App: fix memory leaks in Enumeration class and simplify code
2022-06-25 18:18:57 +02:00
Uwe
8e253cb4c8
[FEM] fix a variable casting
...
- reported by MSVC not to cast a float to a double but as double directly
- also remove some superfluous Boolean comparisons
2022-06-19 15:15:18 +02:00
wmayer
3158be46ad
Fem: added signals and slots to notify when first function is added
2022-06-14 01:38:55 +02:00
Uwe
9ef72fcd06
[FEM] fix color bar handling of point filter
...
- recoloring the gradient bar for a single point is senseless. One therefore already got dozens of errors that max = min in the console. Therefore don't recolor for point filters
2022-06-12 04:02:11 +02:00
wmayer
5822568566
Fem: fix handling of transparency in ViewProviderFemPostObject
2022-04-16 14:39:10 +02:00
wmayer
93d745235c
Fem: scale imported vtk data set
2022-04-15 21:07:40 +02:00
wmayer
aff08fd737
Fem: optimize ViewProviderFemPostObject::WritePointData
2022-04-15 12:24:23 +02:00
wmayer
a70d6fd7ec
FEM: [skip ci] fix some typos
2022-04-12 11:03:03 +02:00
wmayer
d36c59b3dc
Fem/Mesh: force update of shape nodes when changing the transparencies of a color plot
2022-04-01 16:40:34 +02:00
wmayer
e437893e99
Fem: support transparencies of the colour plot in ViewProviderFemPostObject
2022-04-01 10:40:48 +02:00
wmayer
5974abe351
Fem: in case the range collapses to a single value expand it to a valid range with +/- eps
2022-03-28 20:16:22 +02:00
wmayer
0239732e69
Fem: fix error: Unhandled Base::Exception caught in GUIApplication::notify
2022-03-28 15:56:49 +02:00
Uwe
66e4c37a25
fix some occurrences where size() is misused as Boolean
...
- as suggested by @wwmayer: 4d51d1d0b1 (r69648152)
2022-03-27 21:38:15 +02:00
Uwe
3904da9d93
[FEM] handle Elmer result mesh zoom properly
...
- also fix an issue that after a successful simulation, no result was visible
2022-03-24 22:01:45 +01:00
Uwe
856c25da67
[FEM] add missing analysis deletion handling
...
as it was, one could delete the analysis container breaking everything. Now you get a warning.
- also fix typos
2022-03-24 15:56:08 +01:00
Uwe
ad95908b88
[FEM] ViewProviderDocumentObject: fix compiler warning and error
...
- add missing include
- compare string properly
2022-03-24 06:13:45 +01:00
Uwe
121ac920ca
[FEM] fix deletion issue
...
- as reported here: https://forum.freecadweb.org/viewtopic.php?p=582532#p582532
Now only a warning is issued if the user tries to delete the main PostObject if it is not empty.
2022-03-24 05:44:02 +01:00
Uwe
ceb5a3da5c
[FEM] fix transparency bug
...
- as reported here: https://forum.freecadweb.org/viewtopic.php?p=582526#p582526
After setting the transparency, the object has to be redrawn
- also remove a doubled header
2022-03-24 04:50:54 +01:00
Uwe
2eb3447694
[FEM] remove unused header introduced by previous commit
2022-03-24 03:05:48 +01:00
Uwe
b0b243bee7
[FEM] scale fix for post meshes
...
- post result meshes must inherit the parent scaling
- also change Scale to enum as proposed by @wwmayer
2022-03-24 02:37:10 +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
Uwe
cb82d8e97a
[FEM] remove some unused includes
2022-03-23 05:43:40 +01:00