Bayeux  3.4.1
Core Foundation library for SuperNEMO
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
geomtools::color Class Reference

Color. More...

#include <bayeux/geomtools/color.h>

Classes

class  color_db
 Color register. More...
 
struct  constants
 Color labels. More...
 
struct  context
 Color context object. More...
 

Public Types

enum  code_type {
  COLOR_INVALID = -4, COLOR_TRANSPARENT = -3, COLOR_WHITE = -2, COLOR_BLACK = -1,
  COLOR_GREY = 0, COLOR_RED = 1, COLOR_GREEN = 2, COLOR_BLUE = 3,
  COLOR_MAGENTA = 4, COLOR_CYAN = 5, COLOR_YELLOW = 6, COLOR_BROWN = 7,
  COLOR_ORANGE = 8, COLOR_DEFAULT = COLOR_GREY
}
 Color code for gnuplot (x11 terminal) More...
 
typedef std::map< std::string, code_typecolor_map_type
 
typedef boost::scoped_ptr< color_dbscoped_color_db_type
 Type of smart pointer on color register. More...
 

Public Member Functions

 color ()
 Constructor. More...
 
 color (code_type, const std::string &, int32_t, int32_t, int32_t, int32_t=0)
 Constructor. More...
 

Static Public Member Functions

static const std::string & invalid ()
 
static const std::string & transparent ()
 
static const std::string & white ()
 
static const std::string & black ()
 
static const std::string & grey ()
 
static const std::string & red ()
 
static const std::string & green ()
 
static const std::string & blue ()
 
static const std::string & magenta ()
 
static const std::string & cyan ()
 
static const std::string & brown ()
 
static const std::string & yellow ()
 
static const std::string & orange ()
 
static const std::string & default_color ()
 
static const color_dbget_color_db ()
 Get the global color register. More...
 
static code_type get_color (const std::string &a_name)
 Get color code from label. More...
 

Public Attributes

int32_t code
 Color code. More...
 
std::string name
 Color name. More...
 
int32_t red_amount
 Red channel (RGB encoding) More...
 
int32_t green_amount
 Green channel (RGB encoding) More...
 
int32_t blue_amount
 Blue channel (RGB encoding) More...
 
int32_t alpha_amount
 Alpha channel. More...
 

Static Public Attributes

static const int COLOR_TEST = 0
 

Detailed Description

Color.

Member Typedef Documentation

◆ color_map_type

typedef std::map<std::string, code_type> geomtools::color::color_map_type

◆ scoped_color_db_type

Type of smart pointer on color register.

Member Enumeration Documentation

◆ code_type

Color code for gnuplot (x11 terminal)

Enumerator
COLOR_INVALID 
COLOR_TRANSPARENT 
COLOR_WHITE 
COLOR_BLACK 
COLOR_GREY 
COLOR_RED 
COLOR_GREEN 
COLOR_BLUE 
COLOR_MAGENTA 
COLOR_CYAN 
COLOR_YELLOW 
COLOR_BROWN 
COLOR_ORANGE 
COLOR_DEFAULT 

Constructor & Destructor Documentation

◆ color() [1/2]

geomtools::color::color ( )

Constructor.

◆ color() [2/2]

geomtools::color::color ( code_type  ,
const std::string &  ,
int32_t  ,
int32_t  ,
int32_t  ,
int32_t  = 0 
)

Constructor.

Member Function Documentation

◆ black()

static const std::string& geomtools::color::black ( )
static

◆ blue()

static const std::string& geomtools::color::blue ( )
static

◆ brown()

static const std::string& geomtools::color::brown ( )
static

◆ cyan()

static const std::string& geomtools::color::cyan ( )
static

◆ default_color()

static const std::string& geomtools::color::default_color ( )
static

◆ get_color()

static code_type geomtools::color::get_color ( const std::string &  a_name)
static

Get color code from label.

◆ get_color_db()

static const color_db& geomtools::color::get_color_db ( )
static

Get the global color register.

◆ green()

static const std::string& geomtools::color::green ( )
static

◆ grey()

static const std::string& geomtools::color::grey ( )
static

◆ invalid()

static const std::string& geomtools::color::invalid ( )
static

◆ magenta()

static const std::string& geomtools::color::magenta ( )
static

◆ orange()

static const std::string& geomtools::color::orange ( )
static

◆ red()

static const std::string& geomtools::color::red ( )
static

◆ transparent()

static const std::string& geomtools::color::transparent ( )
static

◆ white()

static const std::string& geomtools::color::white ( )
static

◆ yellow()

static const std::string& geomtools::color::yellow ( )
static

Member Data Documentation

◆ alpha_amount

int32_t geomtools::color::alpha_amount

Alpha channel.

◆ blue_amount

int32_t geomtools::color::blue_amount

Blue channel (RGB encoding)

◆ code

int32_t geomtools::color::code

Color code.

◆ COLOR_TEST

const int geomtools::color::COLOR_TEST = 0
static

◆ green_amount

int32_t geomtools::color::green_amount

Green channel (RGB encoding)

◆ name

std::string geomtools::color::name

Color name.

◆ red_amount

int32_t geomtools::color::red_amount

Red channel (RGB encoding)


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