(^ I'm open to feedback on any of these abbreviations)
These capture the current control point and ramp information, as well as whether the control points OR ramp should be visible
in the UI (now shown under the 'Advanced' checkbox in the volume settings editor).
Note that rmp is slightly redundant with the existing lut field in the URL; I elected to keep them separate as we expect lut to be a user input property, while the ramp and controlPoints are only used when capturing existing state from the user interacting with the viewer.
Changes
Adds controlPoints, controlPointsEnabled, and ramp fields to the ViewerChannelSettings.
Added serializing/deserializing for control point arrays.
Refactored the LUT initialization logic to choose between the lut, ramp, and controlPoints fields in the initial settings.
Closes #282, saving the control points to the URL!
Estimated review size: large, 30 minutes
This change adds the following properties to the URL:
(^ I'm open to feedback on any of these abbreviations)
These capture the current control point and ramp information, as well as whether the control points OR ramp should be visible in the UI (now shown under the 'Advanced' checkbox in the volume settings editor).
Note that
rmp
is slightly redundant with the existinglut
field in the URL; I elected to keep them separate as we expectlut
to be a user input property, while theramp
andcontrolPoints
are only used when capturing existing state from the user interacting with the viewer.Changes
controlPoints
,controlPointsEnabled
, andramp
fields to theViewerChannelSettings
.lut
,ramp
, andcontrolPoints
fields in the initial settings.Validation