Commit Graph

30981 Commits

Author SHA1 Message Date
Chris Hennes
f679823c6e Merge pull request #8955 from wwmayer/issue_8556
Move image loading to core
2023-03-22 16:00:43 -05:00
wmayer
9fa3cf8d8d Fem: fix warning field 'dimension' will be initialized after field 'ui' [-Wreorder-ctor] 2023-03-22 20:37:29 +01:00
wmayer
6b498d82cc Import: issue #8884: C++ DXF importer never imports text (annotations
This reverts commit 877f6c09817
2023-03-22 20:09:20 +01: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
Abdullah Tahiri
d4eaf7a90b NotificationBox: Clang format 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
36a35c6c37 NotificationArea: Clang format 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
f0077e5f8a NotificationArea: Change Icon color to indicate missed notifications 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
ad3ccd9ec1 Resources: New Intray icon 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
60c2026f6d NotificationArea: Preference dialog add preferences to control inactive window behaviour 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
c5710055b5 NotificationArea: Parameters to control inactive notification show behaviour 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
6e3bdd8f2a NotificationBox: Convert options to enum class 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
1e3b728f35 NotificationBox: Add option to hide notification if reference widget is deactivated 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
2f8be2c77b NotificationBox: Enable options to not show if reference widget is not active and refactor restricttoarea 2023-03-22 19:13:32 +01:00
Abdullah Tahiri
05dcc0bac8 NotificationBox: Hide notification if FreeCAD is deactivated 2023-03-22 19:13:32 +01:00
wmayer
6ae787cc6b Gui: fix image handling:
* Change FileHandlder to accepts all image format supported by Qt
* Make sure image object is not touched after accepting or rejecting changes
* Make option 'Keep aspect ratio' the default
* Fix WhatThis text of command
2023-03-22 17:55:55 +01:00
Uwe
b74425b441 [PD] revolve: remove unused code
- also come code style unification
2023-03-22 17:46:03 +01:00
luzpaz
f1bbcd9e13 Fix typos and whitespace 2023-03-22 17:10:38 +01:00
luzpaz
fc844ebac9 Migrate tabs to spaces in src/Gui/3Dconnexion/* 2023-03-22 17:06:47 +01:00
wmayer
3e3540192b Image: remove module 2023-03-22 16:25:19 +01:00
wmayer
5871c2bb46 Gui: add function to scale image 2023-03-22 16:24:51 +01:00
wmayer
9dc2eefca8 Gui: set size of plane from loaded image file 2023-03-22 16:16:30 +01:00
wmayer
9b38980b7a Gui: allow to change orientation of image plane, implement two-side rendering 2023-03-22 16:15:35 +01:00
wmayer
4d6b2c4a14 Gui: move class Camera to own source files 2023-03-22 16:13:38 +01:00
wmayer
ea93a2f76d Gui: add image icon resources 2023-03-22 16:08:09 +01:00
wmayer
d76e22702f Gui: send message events for zoom in/out commands to also support the image view 2023-03-22 16:03:14 +01:00
wmayer
d0bc719b23 Gui: improve loading file by drag and drop 2023-03-22 16:02:28 +01:00
wmayer
1b698b3e6b Gui: fix printing from ImageView 2023-03-22 15:47:25 +01:00
wmayer
3cd81b9bb3 Gui: add an image view 2023-03-22 15:45:38 +01:00
Uwe
c9cb01531f [FEM] extend displacement constraint
- add fields to specify a formula for the displacement, this is necessary to make transient deformation analyses with Elmer
- add option to set displacement from result of flow equation
- this way also a major overhaul -> simpler dialog logic etc.
2023-03-22 15:23:32 +01:00
wmayer
771315cfdc Core: use FileHandler in Application::sOpen and Application::sInsert 2023-03-22 15:14:45 +01:00
wmayer
e8d2f9527e Core: implement class FileHandler 2023-03-22 14:06:17 +01:00
wmayer
13a6c3d2dc Core: move image plane to core system 2023-03-22 13:44:00 +01:00
liukaiwen
de63e13adb fix: macro WIN32 is deprecated, but is implicit defined by some certain environment including visual studio 2023-03-22 13:29:35 +01:00
wmayer
66047f7daa Gui: issue #8939: timers are moved between non-QThreads 2023-03-22 13:27:00 +01:00
wmayer
cbd0f792bb C++17: remove workaround for external smesh to fix build failure on Conda 2023-03-22 13:24:21 +01:00
Yorik van Havre
25e954652d Merge pull request #8973 from kpemartin/Issue8968
Issue 8968: Correct C++ DXF importer to get all of long MTEXT text
2023-03-22 11:09:19 +01:00
Uwe
14c88f41fb [FEM] several Elmer fixes
- fix whitespace in the SIF writer
- Elmer GUI uses only 20 nonlinear iterations, so we should do the same (500 were also not sensible)
- don't restrict nonlinear-Newton iterations to 100, 500 might be necessary for turbulent flow
- update author
2023-03-22 07:27:20 +01:00
Uwe
333cf5fdd7 [FEM] fixes for deformation equation
- deformation is a nonlinear equation
- use the default that Elmer GUI uses for this equation
2023-03-22 07:20:51 +01:00
Uwe
0fcea8b3bb [FEM] Elmer add support for nonlinear elasticity solver
- adds new equation "Deformation" (this name since the stress solver got in FreeCAD the misleading name "elasticity")

- this way change icon of elastic solver to make the difference clear
2023-03-22 03:27:27 +01:00
Syres916
c9832a9f2d [App] Minor improvment to error handling for...
... a rare event, see https://forum.freecad.org/viewtopic.php?t=76947
2023-03-21 16:43:45 +01:00
luzpaz
818c66d663 FEM: [skip ci] fix grammar for console message 2023-03-21 01:39:09 +01:00
Chris Hennes
5a25153f7f Merge pull request #8785 from Pesc0/master
Toponaming: Added MappedName class
2023-03-20 13:09:44 -04:00
Uwe
6bf09c512d [Sketch] Constraints.cpp: formatting fixes
- fix too long lines
- also let clang reformat the file to uniform the formatting
2023-03-20 16:53:41 +01:00
Kevin Martin
ad8483d320 Issue 8968: Correct C++ DXF importer to get all of long MTEXT text
If the MTEXT exceeds 250 characters, the contents are broken up into
several records in the DXF file. The C++ importer has been changed
to collect all these pieces into a single string containing all the text.
2023-03-20 11:48:47 -04:00
luzpaz
f87b919e0d Fix various whitespace issues 2023-03-20 16:38:40 +01:00
Florian Foinant-Willig
c23f6a9221 Fix circles distance constraint for concentrics 2023-03-20 16:02:08 +01:00
Abdullah Tahiri
b04ef3a351 NotificationBox/NotificationArea: Restrict rendering area to main frame
========================================================================

The NotificationBox is extended to take the QRect in global coordinates. Then
it will try to dimension the label within this area. If a fixed width is provided, that
is enforced (take precedence).

The NotificationArea passes the QRect of the main window to the NotificationBox.

This is intended to fix:
https://github.com/FreeCAD/FreeCAD/issues/8940
2023-03-20 15:43:42 +01:00
Uwe
f1799f27b0 [FEM] fine-tune flow examples
- use a more sensible velocity distribution
- change inlet temperature for 2 examples

- also change step size for nonlinear iterations for more convenience for practical usage
2023-03-20 07:17:11 +01:00
Uwe
866ea2551d [FEM] rewrite initial velocity constraint
- same as #8963 but for initial velocity

- add an example file that demonstrates the influence of the initial velocity
- some fine-tuning for the existing flow example
2023-03-20 04:58:24 +01:00
Uwe
b496a41cd1 [FEM] rewrite velocity constraint
- complete revision of the constraint.

This is a breaking change, meaning existing constraints won't work.

This is possible because since 2 days ago the whole flow equation did not work at all. Also the existing constraint implementation if buggy and cannot be used to do the Elmer tutorial. Also, the constraint is only used by Elmer and only be the flow equation.

Since nobody complained about the obvious wrong results, we can assume the flow equation was not yet in practical usage (and for FC 0.20 we known that it does not work at all, first with FC 0.20.1).

It is necessary since it must be possible to either input a velocity or an equation. With an equation, a velocity profile can be specified.

- update the flow examples accordingly:
-- simplify them since an initial and and output velocity is not necessary to specify
-- use a formula as input velocity for the non-turbulent example
2023-03-20 01:57:09 +01:00