bofdahof
ba2c2ca5ad
Console: rename PascalCase named methods to camelCase
2025-05-06 17:50:21 +02:00
Kacper Donat
4bd2cdeb2a
Mesh: Use freecad_cast whenever possible
2025-04-26 14:23:25 +02:00
Kacper Donat
77e40b9747
Base: Use explicit pointer syntax for freecad_cast ( #20694 )
...
* Base: Use explicit pointer syntax for freecad_cast
This aligns our custom cast with other casts
* All: Use explicit pointer syntax for freecad_cast
2025-04-11 14:11:33 +00:00
Kacper Donat
9d97d1c895
Base: Rename Base::freecad_dynamic_cast into freecad_cast
...
This is to make it shorter and easier to use. QT does the same thing
with their qobject_cast.
2025-04-07 10:32:28 -05:00
Chris Hennes
1a2070c36f
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
36195d1981
Base: Add fromPercent and toPercent helpers
2025-02-23 22:51:13 +01:00
Kacper Donat
13fbab9e42
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
Chris Hennes
a3004c2c0a
Merge pull request #19142 from hyarion/refactor/add-template-addobject
...
Add new addObject<T>() function
2025-02-11 09:42:47 -06:00
Benjamin Nauck
edb4817872
Mod: Use new addObject<T>(...) that requires additional changes
2025-02-10 18:35:38 +01:00
Benjamin Nauck
265b58c034
Mod: Use new addObject<T>(...) using regex
2025-02-10 18:35:38 +01:00
Benjamin Bræstrup Sayoc
a59ad914ba
Mesh: Use QStringLiteral
2025-02-10 18:32:45 +01:00
tritao
551c2e48fb
Gui: Reorganize the selection files into a top Selection folder.
2025-02-03 17:56:57 +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
fbd9eac848
Mesh: Fix linter warnings
2024-11-21 18:30:22 +01:00
wmayer
ba638d204c
Mesh: Make colors persistent if meshing option 'Apply face colors to mesh' is used
2024-05-10 15:03:20 +02:00
wmayer
4aa140d066
Mod: code cleanup
2024-04-09 22:15:51 +02:00
David Carter
ba20441935
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
wmayer
a7ae00237d
Mesh: fix many linter warnings
2024-03-12 00:36:28 +01:00
Florian Foinant-Willig
bce19a969c
Mesh: modernize type checking
2023-10-23 18:08:06 +02:00
wmayer
a364141c58
Mesh: C++ core guidelines
2023-09-26 11:20:35 +02:00
wmayer
28ae0831cb
Mesh: Apply clang-format
2023-09-23 14:03:11 +02:00
wmayer
5da3143f02
Mesh: modernize C++: use default member init
2023-08-23 00:55:03 +02:00
wmayer
d11fdf3ba9
Mesh: modernize C++: use equals default
2023-08-21 18:39:59 +02:00
wmayer
7f49080952
Mesh: modernize C++: use range-based for loop
2023-08-15 10:56:30 +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
Andrew
bebadad9bf
clean Mod/Mesh from #if 0
2023-03-27 11:22:21 +02:00
wmayer
184afd9761
Gui: fix View3DInventorViewer's getViewProviderByPath, getViewProviderByPathFromTail, getViewProvidersOfType
...
The View3DInventorViewer only contains the top-level view providers which caused unexpected behaviour when using the three methods above. Thus, in client code they haven't been used any more.
Now the methods internally invoke the corresponding methods of the document. This allows it in client code to directly call the appropriate methods again (LoD).
2022-12-12 16:41:58 +01:00
Uwe
1a4babd936
[Mesh] Gui: ViewProvider*: remove unused includes
...
- also some sorting
2022-12-04 17:25:24 +01:00
luz paz
c174e063f3
Mesh: remove trailing whitespace
2022-11-14 21:37:03 -06:00
wmayer
9345738604
Gui: [skip ci] fix several warnings reported by GH Actions
2022-11-06 15:53:18 +01:00
Uwe
cef5c5c11c
[Gui][Mod]: uniform spin button step size to 5%
...
- as discussed here: https://github.com/FreeCAD/FreeCAD/pull/7103 we have different transparency spin button step sizes. This PR uniforms them all to 5%.
2022-11-06 14:27:55 +01:00
wmayer
f3440f403f
Mesh: use PropertyMaterial in view provider
2022-10-23 23:31:04 +02:00
wmayer
2973da9203
Mesh: support to add transparencies to a mesh
2022-10-22 23:31:12 +02:00
marioalexis
6dc262d44c
Mesh: Replace C cast
2022-09-18 11:06:51 -05:00
wmayer
c4b12d61c5
Mesh: [skip ci] fix minor issues
2022-09-02 13:37:24 +02:00
wmayer
8f1875f429
Mesh: add support of thumbnails of 3MF format
2022-09-01 16:49:00 +02:00
berniev
47ac049e14
Mod: use emplace_back
2022-08-05 10:36:16 +02:00
Uwe
2bde1e6923
[Mesh] remove superfluous nullptr checks
2022-07-18 02:37:33 +02:00
wmayer
9d0c787f03
Mesh: replace boost::bind with std::bind
2022-06-21 15:23:47 +02:00
wmayer
8a81ff174b
Mesh: reduce the use of const_cast in Mesh module
2022-06-21 12:20:37 +02:00
wmayer
cad6882025
Mesh: issue #6131 : Colors set prior to saving aren't retained when re-opening file
...
Note: A mesh feature must have a PropertyColorList property with the name FaceColors or VertexColors. The colors won't be set when loading a project but in the context-menu there is the function 'Display colors'
2022-05-17 16:43:53 +02:00
wmayer
a138706ed4
Mesh: replace several reinterpret_cast with static_cast
2022-05-17 14:33:44 +02:00
Zheng, Lei
8bec44934b
Fix mixed line endings
2022-04-26 12:52:55 -05:00
Chris Hennes
3ecd16e0bd
Mesh: PR6497 move return statement to new line
2022-03-29 12:36:30 -05:00
wmayer
91e4e468dd
Base: move ILogger sub-classes to their own source files in order to reduce including stream classes in client code
2022-03-06 10:13:47 +01:00
wmayer
59e605e6b8
Mesh: modernize C++11
...
* remove redundant void-arg
* use nullptr
* replace deprecated headers
2022-01-26 18:05:02 +01:00
wmayer
c702fd07eb
Mesh: [skip ci] rename MeshAlgorithm::GetMeshBorder to MeshAlgorithm::GetFacetBorder
2021-09-29 19:38:52 +02:00
wmayer
2295c4b9a3
Mesh: define the typenames FacetIndex and PointIndex to distinguish between facet and point related indexes
2021-09-14 23:01:29 +02:00
wmayer
a2ba99452f
Mesh: [skip ci] in ViewProviderMesh::highlightSegments change material binding only if colors list is non-empty
2021-03-28 11:27:04 +02:00
luz paz
fa7bf5e0ff
Mesh: Uniformity fixes [skip ci]
...
* Sort Mesh.qrc
* Capital Case .svg files
* Rename Tree_Mesh.svg to Mesh_Tree.svg
* Make appropriate changes in the source regarding said name changes
2020-12-13 17:08:22 +01:00