Commit Graph

22 Commits

Author SHA1 Message Date
wmayer
e5fa099591 Clean-up code and improve formatting 2024-06-17 16:30:25 +02:00
David Carter
5feb963f9d Material: Appearance Updates 2
Improves the use of the ShapeAppearance property for the Part workbench.

    removes DiffuseColor property
        adds Python compatibility using custom attributes
        transitions DiffuseColor to ShapeAppearance on open
    Improved UI elements for setting object appearance, and appearance per face
    Lays the foundation for future texture support
2024-06-01 19:57:16 -05: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
0c6a0ccad8 Surface: use of TaskDialog::addTaskBox 2024-03-26 15:57:20 +01:00
pre-commit-ci[bot]
e92ed45df9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
wmayer
255ddb746c Surface: apply clang format 2023-09-04 07:21:32 -05:00
wmayer
93ac88bcc3 Surface: modernize C++: use equals default 2023-08-22 11:16:10 +02:00
wmayer
64a6c3c376 Surface: fix -Wclazy-connect-by-name 2023-04-05 00:44:13 +02:00
wmayer
c5dedb412d Surface: replace slots with member function pointers 2023-02-03 00:21:38 +01:00
wmayer
4da8c3682e Surface: move to new style connect() 2023-01-13 15:21:37 +01:00
wmayer
c30ede9df4 Surface: remove unneeded includes 2022-12-20 16:22:59 +01:00
Ajinkya Dahale
80f28a4821 [Surface] Allow modal adding/removal of geometric entities 2022-12-20 15:42:46 +01:00
Uwe
2ef00dc9f2 [Surface] Gui:: remove unused includes
- also some sorting
2022-12-08 01:32:38 +01:00
berniev
71dc5ead2f Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
wmayer
985f0a9132 Surface: Fix several clazy issues:
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* Use multi-arg instead [-Wclazy-qstring-arg]
2022-07-25 10:01:49 +02:00
wmayer
c5bab68332 Gui: add convenience functions to SelectionFilterGate 2022-04-19 15:04:14 +02:00
wmayer
3268179b7b Surface: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
8f786ea6ef Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
vocx-fc
1d486dc669 Surface: new SVG icon for the workbench, rename others
Replace the hard-coded XPM icon in `InitGui.py` for the workbench
with an SVG file, which at this time is identical to the `Surface` icon.
Change `CMakeLists.txt` to properly install this new icon.

Rename all icons, so that all have the `Surface_` prefix.

Use the new icon names in the viewproviders and task panels.
2020-09-30 12:32:36 +02:00
wmayer
db645a6ea8 Surface: [skip ci] add icon for sections command 2020-09-28 07:57:00 +02:00
wmayer
ed7cdd4c2c Surface: add command to create surface from sections 2020-09-26 16:32:42 +02:00