Commit Graph

48 Commits

Author SHA1 Message Date
Max Wilfinger
dd702da1bc FEM: Update UI strings for consistency 2025-06-30 10:35:42 -05:00
marioalexis
8a2d4aeb19 Fem: Update constraint symbol rotation 2025-03-03 00:02:11 -03:00
tritao
65466d580b Gui: Reorganize the selection files into a top Selection folder. 2025-02-03 17:56:57 +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
3e33f184b4 Core: Rename ViewProviderPythonFeature to ViewProviderFeaturePython
Fixes #15888
2024-08-26 18:14:22 +02:00
marioalexis
464a50d60e Fem: Clean up constraint view providers 2024-06-24 11:15:14 -05:00
marioalexis
b93274ceef Fem: Cleanup ViewProviderFemConstraint class 2024-06-05 13:12:25 -03:00
marioalexis
505579dd8d Fem: Add transform for extra symbol in constraints 2024-05-16 12:51:37 -05:00
marioalexis
5d69945f6e Fem: Remove unused view properties 2024-04-29 10:52:52 -05:00
wmayer
bff1efd665 FEM: Make sure that points and normals array have equal size as otherwise a crash may occur 2024-04-26 23:30:20 +02:00
marioalexis84
7d4d5eddf5 Fem: Constraint symbol scaling (#13274)
* Fem: Constraint symbols rescaling

* Fem: Add constraint symbol .iv files

* Fem: Fix contact constraint symbol rescaling

* Fem: Fix displacement constraint symbol rescaling

* Fem: Fix fixed constraint symbol rescaling

* Fem: Fix force constraint symbol rescaling

* Fem: Fix heat flux constraint symbol rescaling

* Fem: Fix plane rotation constraint symbol rescaling

* Fem: Fix pressure constraint symbol rescaling

* Fem: Fix spring constraint symbol rescaling

* Fem: Fix temperature constraint symbol rescaling

* Fem: Add tie constraint symbol
2024-04-22 11:49:13 -04:00
Florian Foinant-Willig
17af20aa20 FEM: allow to Suppress the constraints (#12359)
* FEM: Introduce suppressible constraints

* fix public inheritance
2024-04-08 10:43:54 -05:00
David Carter
495a96a0f5 Material: Material appearance
Uses new material system for appearance

Each feature object now has a property called ShapeMaterial that
describes its physical properties. If it has a shape, it has a
material.

The ShapeColor attribute is replaced by a ShapeAppearance attribute.
This is a material list that describes all appearance properties, not
just diffuse color. As a list in can be used for all elements of a
shape, such as edges and faces.

A new widget is provided to allow the user to select materials in a
consistent fashion. It can also launch the material editor with its
more advanced capabilities.
2024-04-04 07:39:58 -05:00
marioalexis
ea840bc3a3 Fem: Expose Constraint view provider symbol node to Python 2024-02-15 13:31:20 -06:00
wmayer
b8b94c249e Fem: Apply clang-format 2023-09-25 14:50:43 +02:00
kaktus Jacek
41fb0d45a3 Fem: Removing "constraint" from the names
Removing "constraint" from the names of most FEM workbench features.

https://github.com/FreeCAD/FreeCAD/discussions/10217
2023-09-03 22:29:35 -05:00
wmayer
f2b46996d4 Fem: modernize C++: return braced init list 2023-08-19 11:35:41 +02:00
wmayer
009f9f2222 FEM: modernize C++: use range-based for loop 2023-08-15 01:09:53 +02:00
Uwe
79d17d13bf [FEM] ViewProviderFemConstrain*: remove unused includes - part 1
- also sort includes
- also fix warnings about too long lines
2022-10-03 17:10:36 +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
Uwe
48af573746 [FEM] remove more superfluous nullptr checks 2022-07-18 02:34:57 +02:00
Uwe
fc548a4b34 [FEM] remove superfluous nullptr checks 2022-07-18 01:45:19 +02:00
Chris Hennes
bb0e2f1c51 FEM: PR6497 move return statement to new line 2022-03-29 12:35:58 -05:00
wmayer
7ae9fc0d67 Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
Preslav
1ceaa09d17 Added spring boundary condition 2021-09-17 11:08:08 +02:00
luz.paz
1baf5da3cf FEM: [skip ci] fix header uniformity
This PR fixes header uniformity across all FEM WB files
2019-12-21 20:00:14 +01:00
Abdullah Tahiri
241c370f5f PCH: Fem Gui 2019-05-16 21:43:08 +02:00
Bernd Hahnebach
59c67f4b7c FEM: C++ constraints, clear selection on unsetEdit, same system as it is on Python constraints 2018-05-23 17:59:29 +02:00
Markus Hovorka
ef85389cbc FEM: add ConstraintPython object type
Constraints implemented in python can use this object as their base.
That makes it easier to identify them as constraint objects.
2017-08-04 06:57:12 +02:00
Bernd Hahnebach
ed95e92beb FEM: visibility, do not hide parts which depends on mesh name
- since the mesh object depend on a part and the part can change this can mess up visibiliy
2017-07-03 19:27:38 +02:00
Bernd Hahnebach
b58e37b950 FEM: remove trailing whitespaces 2016-04-24 19:10:33 +02:00
Bernd Hahnebach
14eb6869a9 FEM: convert all windows code files to unix line ending 2016-04-24 19:10:33 +02:00
vginkeo
f14758d5e5 FEM: C++98 compatible fix to constraint displacement reference deletion, update vertice, edge, face selection 2016-02-29 13:06:16 +01:00
Yorik van Havre
577f208da7 Revert "FEM: Updated fix to constraint displacement reference deletion, update hide show, remove custom input writer, update vertice, edge, face selection."
This reverts commit ac4d466443.
2016-02-19 00:05:55 -02:00
vginkeo
ac4d466443 FEM: Updated fix to constraint displacement reference deletion, update hide show, remove custom input writer, update vertice, edge, face selection. 2016-02-18 19:15:16 -02:00
vginkeo
b1dc2cbf94 FEM: Implement constraint displacement in C++ 2016-02-12 11:09:58 +02:00
wmayer
45af17e39c + Code cleanup:
+ do not include header of itself
+ do not include unneeded header files
+ removed unneeded forward declarations
+ do not translate C string to get a QString
+ break too long lines
+ replace tabs with spaces
+ use virtual keyword on destructors
2015-11-13 15:47:03 +01:00
wmayer
834c0a642d + include missing header files 2015-07-01 13:02:29 +02:00
wmayer
2dc1890fd2 + fix rendering problems for FEM elements 2015-04-13 22:11:27 +02:00
wmayer
618192fca5 + fix critical memory leak 2015-04-13 17:24:54 +02:00
wmayer
495cac2d25 + Fix double to float cast 2013-10-10 17:27:01 +02:00
wmayer
7f874b9767 + cppcheck fixes 2013-09-20 21:00:45 +02:00
jrheinlaender
f5c6e4eae3 Improvements to FEM constraint objects 2013-03-21 16:58:01 +04:30
jrheinlaender
517443fb59 Fixed problems with loading of FEM constraint objects 2013-03-21 16:56:57 +04:30
jrheinlaender
d48542cf56 Split code into separate files for each constraint type 2013-03-21 16:56:57 +04:30
jrheinlaender
918291f81f Created FEM constraint document object 2013-03-21 16:52:10 +04:30