GUI: MaterialItem: derive descriptors from properties
DoubleDescriptors
are mostly derived from DoubleProperty
in the code.
In MaterialItem
this was done differently, so this MR brings it in line with the common approach.
Steps of Descriptor
refactoring:
- reduce usage of non-default functional pointers
set()
andget()
- move
Descriptor
functionality toProperty
- use
Property
instead ofDescriptor
- remove
Descriptor
from code - refactor serialization of
Property
- replace
Property
macro definitions likeDOUBLE_PROPERTY(intensity, Intensity)
by explicit member with setter and getter
This MR does (1) for DoubleDescriptors
and VectorDescriptors
Edited by Mikhail Svechnikov