3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions
colourmap.cpp File Reference
#include <math.h>
#include <stdlib.h>
#include "colourmap.h"
#include <limits>
#include "common/translation.h"
#include "common/assertion.h"
Include dependency graph for colourmap.cpp:

Functions

void fittedColorMap (unsigned char *rgb, float value, float min, float max, const float *coeffs)
 
void jetColorMap (unsigned char *rgb, float value, float min, float max)
 
void hotColorMap (unsigned char *rgb, float value, float min, float max)
 
void coldColorMap (unsigned char *rgb, float value, float min, float max)
 
void blueColorMap (unsigned char *rgb, float value, float min, float max)
 
void positiveColorMap (unsigned char *rgb, float value, float min, float max)
 
void negativeColorMap (unsigned char *rgb, float value, float min, float max)
 
void colorMap (unsigned char *rgb, float value, float min, float max)
 
void cyclicColorMap (unsigned char *rgb, float value, float min, float max)
 
void randColorMap (unsigned char *rgb, float value, float min, float max)
 
void grayColorMap (unsigned char *rgb, float value, float min, float max)
 
void infernoColorMap (unsigned char *rgb, float value, float min, float max)
 
void viridisColorMap (unsigned char *rgb, float value, float min, float max)
 
void colourMapWrap (unsigned int mapID, unsigned char *rgb, float v, float min, float max, bool reverse)
 get colour for specific map More...
 
std::string getColourMapName (unsigned int mapID)
 

Function Documentation

◆ blueColorMap()

void blueColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

Referenced by colourMapWrap().

Here is the caller graph for this function:

◆ coldColorMap()

void coldColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

Referenced by colourMapWrap().

Here is the caller graph for this function:

◆ colorMap()

void colorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

References negativeColorMap(), and positiveColorMap().

Referenced by colourMapWrap().

Here is the caller graph for this function:

◆ colourMapWrap()

void colourMapWrap ( unsigned int  mapID,
unsigned char *  rgb,
float  v,
float  min,
float  max,
bool  reverse 
)

◆ cyclicColorMap()

void cyclicColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

Referenced by colourMapWrap().

Here is the caller graph for this function:

◆ fittedColorMap()

void fittedColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max,
const float *  coeffs 
)

Referenced by infernoColorMap(), and viridisColorMap().

Here is the caller graph for this function:

◆ getColourMapName()

std::string getColourMapName ( unsigned int  mapID)

◆ grayColorMap()

void grayColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

Referenced by colourMapWrap().

Here is the caller graph for this function:

◆ hotColorMap()

void hotColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

Referenced by colourMapWrap().

Here is the caller graph for this function:

◆ infernoColorMap()

void infernoColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

References fittedColorMap().

Referenced by colourMapWrap(), and getColourMapName().

Here is the caller graph for this function:

◆ jetColorMap()

void jetColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

Referenced by colourMapWrap().

Here is the caller graph for this function:

◆ negativeColorMap()

void negativeColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

Referenced by colorMap().

Here is the caller graph for this function:

◆ positiveColorMap()

void positiveColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

Referenced by colorMap().

Here is the caller graph for this function:

◆ randColorMap()

void randColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

Referenced by colourMapWrap().

Here is the caller graph for this function:

◆ viridisColorMap()

void viridisColorMap ( unsigned char *  rgb,
float  value,
float  min,
float  max 
)

References fittedColorMap().

Referenced by colourMapWrap().

Here is the caller graph for this function: