cee::ug::OverlayColorLegend

class OverlayColorLegend : public OverlayItem

A color legend to show as overlay in the view.

../_images/colorlegend.png

A color legend shows the correspondence between the colors in the model and the numerical values they represent.

Each scalar result has its own color legend and multiple color legend can be shown simultaneously. A color legend does not need to be added to the view manually as for the other overlay items. Each visualized scalar result has it’s own color legend which can be controlled in its scalar settings.

Color legend attributes such as visibility, colors and range, can be modified in the corresponding scalar result’s scalar settings. See UnstructGridModel::scalarSettings().

See also

ScalarSettings and OverlayItem

Public Functions

int resultId() const

Returns the result id.