enh(ui): add default TF management in TransferFunctionWidget
Description
The TransferFunctionWidgetCfg is a common tf editor tools.
However, the present config does not allow the specification of default tfs.
In particular, for some applications, dedicated tfs are present and can be pre-loaded through the config in the STransferFunction service.
Functional specifications
It should be possible to specify the default tf loaded in the tf editor through the configuration
Technical specifications
-
change the TransferFunctionWidget and TransferFunctionWindow id to the new config id standards to clarify which config is used when called:
sight::config::viz::scene2d::TransferFunctionWidgetCfg
andsight::config::viz::scene2d::TransferFunctionWindowCfg
-
Add parameters
<param name="USE_DEFAULT_TF" default="true" />
<param name="ADDITIONAL_TF_PATH" default="" />
To both TransferFunctionWindow and TransferFunctionWidget configs, and forward them to the STransferFunction service.
- Change the STransferFunction service to ignore empty attributes in its config.
Test plan
Run sightviewer gui tests