ColourMapper.cpp File Reference
#include "ColourMapper.h"
#include <iostream>
#include <cmath>
#include "base/Debug.h"
#include <vector>
#include <QPainter>
Include dependency graph for ColourMapper.cpp:

Go to the source code of this file.

Functions

static vector< QColor > convertStrings (const vector< QString > &strs, bool reversed)
 
static void mapDiscrete (double norm, vector< QColor > &colours, double &r, double &g, double &b)
 

Variables

static vector< QColor > ice
 
static vector< QColor > cherry
 
static vector< QColor > magma
 
static vector< QColor > cividis
 

Function Documentation

static vector<QColor> convertStrings ( const vector< QString > &  strs,
bool  reversed 
)
static

Definition at line 30 of file ColourMapper.cpp.

static void mapDiscrete ( double  norm,
vector< QColor > &  colours,
double &  r,
double &  g,
double &  b 
)
static

Definition at line 110 of file ColourMapper.cpp.

Referenced by ColourMapper::map().

Variable Documentation

vector<QColor> ice
static
Initial value:
"#ffffff", "#ffff00", "#f7fcf0", "#e0f3db", "#ccebc5", "#a8ddb5",
"#7bccc4", "#4eb3d3", "#2b8cbe", "#0868ac", "#084081", "#042040"
},
true)
static vector< QColor > convertStrings(const vector< QString > &strs, bool reversed)

Definition at line 41 of file ColourMapper.cpp.

Referenced by ColourMapper::map().

vector<QColor> cherry
static
Initial value:
"#f7f7f7", "#fddbc7", "#f4a582", "#d6604d", "#b2182b", "#dd3497",
"#ae017e", "#7a0177", "#49006a"
},
true)
static vector< QColor > convertStrings(const vector< QString > &strs, bool reversed)

Definition at line 48 of file ColourMapper.cpp.

vector<QColor> magma
static
Initial value:
"#FCFFB2", "#FCDF96", "#FBC17D", "#FBA368", "#FA8657", "#F66B4D",
"#ED504A", "#E03B50", "#C92D59", "#B02363", "#981D69", "#81176D",
"#6B116F", "#57096E", "#43006A", "#300060", "#1E0848", "#110B2D",
"#080616", "#000005"
},
true)
static vector< QColor > convertStrings(const vector< QString > &strs, bool reversed)

Definition at line 54 of file ColourMapper.cpp.

vector<QColor> cividis
static

Definition at line 62 of file ColourMapper.cpp.