Colormap.
More...
Go to the source code of this file.
|
std::vector< Colormap > | NAV::ColormapsFlow |
| Flow colormaps.
|
|
std::vector< Colormap > | NAV::ColormapsGlobal |
| Global colormaps.
|
|
◆ ColormapMaskType
Type of the Colormap mask.
Enumerator |
---|
None | Do not use a colormap mask.
|
Global | Use the global colormap.
|
Flow | Use the flow colormap.
|
◆ ColormapButton()
bool NAV::ColormapButton |
( |
const char * | label, |
|
|
Colormap & | cmap, |
|
|
const ImVec2 & | size_arg ) |
Display a colormap button.
- Parameters
-
[in] | label | Label to display on the button (unique id for ImGui) |
[in,out] | cmap | Colormap to show on the button and edit in the popup |
[in] | size_arg | Size of the button |
- Returns
- True if clicked
- Note
- Code from Implot library
◆ ColormapSearch()
std::optional< std::reference_wrapper< const Colormap > > NAV::ColormapSearch |
( |
const ColormapMaskType & | type, |
|
|
const int64_t & | id ) |
Searches for the colormap in the Global and Flow colormaps.
- Parameters
-
type | Type of the colormap (global or flow) |
id | Id of the colormap |
- Returns
- The colormap if one could be found
◆ from_json()
Converts the provided json object into a struct.
- Parameters
-
[in] | j | Json object with the vector values |
[out] | cmap | Struct to return |
◆ ShowColormapSelector()
bool NAV::ShowColormapSelector |
( |
ColormapMaskType & | type, |
|
|
int64_t & | id, |
|
|
const char * | label = "" ) |
Shows a combobox to select a colormap.
- Parameters
-
[in,out] | type | Type of the selected colormap |
[in,out] | id | Id of the selected colormap |
[in] | label | Unique ImGui Id |
- Returns
- True if a change was made
◆ to_json()
Converts the provided object into a json object.
- Parameters
-
[out] | j | Return Json object |
[in] | cmap | Colormap to convert |