gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
ColorTable.cpp File Reference
#include <string.h>
#include <algorithm>
#include "GmshMessage.h"
#include "ColorTable.h"
#include "Context.h"
#include "Numeric.h"
Include dependency graph for ColorTable.cpp:

Go to the source code of this file.

Functions

void ColorTable_InitParam (int number, GmshColorTable *ct)
 
static double gray (double s)
 
static double hot_r (double s)
 
static double hot_g (double s)
 
static double hot_b (double s)
 
static double cubic (double a, double b, double c, double d, double x)
 
void ColorTable_Recompute (GmshColorTable *ct)
 
void ColorTable_Copy (GmshColorTable *ct)
 
void ColorTable_Paste (GmshColorTable *ct)
 
int ColorTable_Diff (GmshColorTable *ct1, GmshColorTable *ct2)
 
void ColorTable_Print (GmshColorTable *ct, FILE *fp, std::vector< std::string > *vec)
 
int ColorTable_IsAlpha (GmshColorTable *ct)
 
void HSV_to_RGB (double H, double S, double V, double *R, double *G, double *B)
 
void RGB_to_HSV (double R, double G, double B, double *H, double *S, double *V)
 

Variables

static double _magma_data [][3]
 
static double _inferno_data [][3]
 
static double _plasma_data [][3]
 
static double _viridis_data [][3]
 
static double _turbo_data [][3]
 
static GmshColorTable clip
 

Function Documentation

◆ ColorTable_Copy()

void ColorTable_Copy ( GmshColorTable ct)

Definition at line 1055 of file ColorTable.cpp.

◆ ColorTable_Diff()

int ColorTable_Diff ( GmshColorTable ct1,
GmshColorTable ct2 
)

Definition at line 1071 of file ColorTable.cpp.

Referenced by PrintColorTable().

Here is the caller graph for this function:

◆ ColorTable_InitParam()

void ColorTable_InitParam ( int  number,
GmshColorTable ct 
)

Definition at line 22 of file ColorTable.cpp.

Referenced by PrintColorTable(), and PViewOptions::PViewOptions().

Here is the caller graph for this function:

◆ ColorTable_IsAlpha()

int ColorTable_IsAlpha ( GmshColorTable ct)

Definition at line 1112 of file ColorTable.cpp.

Referenced by drawPView::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ColorTable_Paste()

void ColorTable_Paste ( GmshColorTable ct)

Definition at line 1063 of file ColorTable.cpp.

◆ ColorTable_Print()

void ColorTable_Print ( GmshColorTable ct,
FILE *  fp,
std::vector< std::string > *  vec 
)

Definition at line 1079 of file ColorTable.cpp.

Referenced by PrintColorTable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ColorTable_Recompute()

◆ cubic()

static double cubic ( double  a,
double  b,
double  c,
double  d,
double  x 
)
static

Definition at line 51 of file ColorTable.cpp.

Referenced by ColorTable_Recompute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gray()

static double gray ( double  s)
static

Definition at line 34 of file ColorTable.cpp.

Referenced by ColorTable_Recompute(), gl2psPrintPDFPixmap(), gl2psPrintPDFPixmapStreamData(), gl2psPrintPDFShader(), and gl2psPrintPDFShaderStreamData().

Here is the caller graph for this function:

◆ hot_b()

static double hot_b ( double  s)
static

Definition at line 46 of file ColorTable.cpp.

Referenced by ColorTable_Recompute().

Here is the caller graph for this function:

◆ hot_g()

static double hot_g ( double  s)
static

Definition at line 41 of file ColorTable.cpp.

Referenced by ColorTable_Recompute().

Here is the caller graph for this function:

◆ hot_r()

static double hot_r ( double  s)
static

Definition at line 36 of file ColorTable.cpp.

Referenced by ColorTable_Recompute().

Here is the caller graph for this function:

◆ HSV_to_RGB()

void HSV_to_RGB ( double  H,
double  S,
double  V,
double *  R,
double *  G,
double *  B 
)

Definition at line 1124 of file ColorTable.cpp.

Referenced by ColorTable_Recompute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RGB_to_HSV()

void RGB_to_HSV ( double  R,
double  G,
double  B,
double *  H,
double *  S,
double *  V 
)

Definition at line 1173 of file ColorTable.cpp.

Variable Documentation

◆ _inferno_data

double _inferno_data[][3]
static

Definition at line 200 of file ColorTable.cpp.

Referenced by ColorTable_Recompute().

◆ _magma_data

double _magma_data[][3]
static

Definition at line 70 of file ColorTable.cpp.

Referenced by ColorTable_Recompute().

◆ _plasma_data

double _plasma_data[][3]
static

Definition at line 330 of file ColorTable.cpp.

Referenced by ColorTable_Recompute().

◆ _turbo_data

double _turbo_data[][3]
static

Definition at line 594 of file ColorTable.cpp.

Referenced by ColorTable_Recompute().

◆ _viridis_data

double _viridis_data[][3]
static

Definition at line 460 of file ColorTable.cpp.

Referenced by ColorTable_Recompute().

◆ clip