MNE-CPP  beta 1.0
Public Types | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
DISPLIB::ColorMap Class Reference

Color map RGB transformations. More...

#include <colormap.h>

Public Types

typedef QSharedPointer< ColorMapSPtr
 
typedef QSharedPointer< const ColorMapConstSPtr
 

Public Member Functions

 ColorMap ()
 
 ~ColorMap ()
 

Static Public Member Functions

static QRgb valueToJet (double v)
 
static QRgb valueToHot (double v)
 
static QRgb valueToHotNegative1 (double v)
 
static QRgb valueToHotNegative2 (double v)
 
static QRgb valueToBone (double v)
 
static QRgb valueToRedBlue (double v)
 

Static Protected Member Functions

static double linearSlope (double x, double m, double n)
 
static int jetR (double v)
 
static int jetG (double v)
 
static int jetB (double v)
 
static int hotR (double v)
 
static int hotG (double v)
 
static int hotB (double v)
 
static int hotRNeg1 (double v)
 
static int hotGNeg1 (double v)
 
static int hotBNeg1 (double v)
 
static int hotRNeg2 (double v)
 
static int hotGNeg2 (double v)
 
static int hotBNeg2 (double v)
 
static int boneR (double v)
 
static int boneG (double v)
 
static int boneB (double v)
 
static int rbR (double v)
 
static int rbG (double v)
 
static int rbB (double v)
 

Detailed Description

Color map RGB transformations.

Provides diffenrent color maps like Jet,...

Definition at line 82 of file colormap.h.

Member Typedef Documentation

typedef QSharedPointer<const ColorMap> DISPLIB::ColorMap::ConstSPtr

Const shared pointer type for ColorMap class.

Definition at line 86 of file colormap.h.

typedef QSharedPointer<ColorMap> DISPLIB::ColorMap::SPtr

Shared pointer type for ColorMap class.

Definition at line 85 of file colormap.h.

Constructor & Destructor Documentation

ColorMap::ColorMap ( )

Default constructor

Definition at line 58 of file colormap.cpp.

ColorMap::~ColorMap ( )

Destructs the ColorMap class.

Definition at line 65 of file colormap.cpp.

Member Function Documentation

int ColorMap::boneB ( double  v)
staticprotected

Describes the blue Bone fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 279 of file colormap.cpp.

int ColorMap::boneG ( double  v)
staticprotected

Describes the green Bone fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 265 of file colormap.cpp.

int ColorMap::boneR ( double  v)
staticprotected

Describes the red Bone fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 251 of file colormap.cpp.

int ColorMap::hotB ( double  v)
staticprotected

Describes the blue Hot fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 158 of file colormap.cpp.

int ColorMap::hotBNeg1 ( double  v)
staticprotected

Describes the blue Hot negative skewed fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 198 of file colormap.cpp.

int ColorMap::hotBNeg2 ( double  v)
staticprotected

Describes the blue Hot negative skewed fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 238 of file colormap.cpp.

int ColorMap::hotG ( double  v)
staticprotected

Describes the green Hot fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 144 of file colormap.cpp.

int ColorMap::hotGNeg1 ( double  v)
staticprotected

Describes the green Hot negative skewed fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 184 of file colormap.cpp.

int ColorMap::hotGNeg2 ( double  v)
staticprotected

Describes the green Hot negative skewed fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 224 of file colormap.cpp.

int ColorMap::hotR ( double  v)
staticprotected

Describes the red Hot fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 132 of file colormap.cpp.

int ColorMap::hotRNeg1 ( double  v)
staticprotected

Describes the red Hot negative skewed fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 170 of file colormap.cpp.

int ColorMap::hotRNeg2 ( double  v)
staticprotected

Describes the red Hot negative skewed fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 210 of file colormap.cpp.

int ColorMap::jetB ( double  v)
staticprotected

Describes the blue Jet fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 117 of file colormap.cpp.

int ColorMap::jetG ( double  v)
staticprotected

Describes the green Jet fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 99 of file colormap.cpp.

int ColorMap::jetR ( double  v)
staticprotected

Describes the red Jet fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 81 of file colormap.cpp.

double ColorMap::linearSlope ( double  x,
double  m,
double  n 
)
staticprotected

Describes a linear function (y = mx + n) and returns the output value y

Parameters
[in]xinput value
[in]mslope
[in]noffset
Returns
the output value

Definition at line 72 of file colormap.cpp.

int ColorMap::rbB ( double  v)
staticprotected

Describes the blue RedBlue fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 317 of file colormap.cpp.

int ColorMap::rbG ( double  v)
staticprotected

Describes the green RedBlue fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 305 of file colormap.cpp.

int ColorMap::rbR ( double  v)
staticprotected

Describes the red RedBlue fuzzy set. Calculates to an input value v [0,1] the corresponding output color value [0,255]

Parameters
[in]vinput value [0,1]
Returns
the output color value [0.255]

Definition at line 293 of file colormap.cpp.

QRgb DISPLIB::ColorMap::valueToBone ( double  v)
inlinestatic

Returns a Bone RGB to a given double value [0,1]

Parameters
[in]vthe double which has to be part of the intervall [0,1]
Returns
the corresponding Bone RGB

Definition at line 386 of file colormap.h.

QRgb DISPLIB::ColorMap::valueToHot ( double  v)
inlinestatic

Returns a Hot RGB to a given double value [0,1]

Parameters
[in]vthe double which has to be part of the intervall [0,1]
Returns
the corresponding Hot RGB

Definition at line 359 of file colormap.h.

QRgb DISPLIB::ColorMap::valueToHotNegative1 ( double  v)
inlinestatic

Returns a negative skewed hot RGB to a given double value [0,1]

Parameters
[in]vthe double which has to be part of the intervall [0,1]
Returns
the corresponding negative skewed Hot RGB

Definition at line 368 of file colormap.h.

QRgb DISPLIB::ColorMap::valueToHotNegative2 ( double  v)
inlinestatic

Returns a negative skewed hot RGB to a given double value [0,1]

Parameters
[in]vthe double which has to be part of the intervall [0,1]
Returns
the corresponding negative skewed Hot RGB

Definition at line 377 of file colormap.h.

QRgb DISPLIB::ColorMap::valueToJet ( double  v)
inlinestatic

Returns a Jet RGB to a given double value [0,1]

Parameters
[in]vthe double which has to be part of the intervall [0,1]
Returns
the corresponding Jet RGB

Definition at line 350 of file colormap.h.

QRgb DISPLIB::ColorMap::valueToRedBlue ( double  v)
inlinestatic

Returns a RedBlue RGB to a given double value [-1,1]

Parameters
[in]vthe double which has to be part of the intervall [-1,1]
Returns
the corresponding Bone RGB

Definition at line 395 of file colormap.h.


The documentation for this class was generated from the following files: