IMP logo
IMP Reference Guide  2.6.1
The Integrative Modeling Platform
IMP::display::Color Class Reference

Represent an RGB color. More...

#include <IMP/display/Color.h>

+ Inheritance diagram for IMP::display::Color:

Detailed Description

Represent an RGB color.

Definition at line 24 of file Color.h.

Public Member Functions

 Color (double r, double g, double b)
 
template<class It >
 Color (It b, It e)
 
void show (std::ostream &out, std::string delim) const
 
void show (std::ostream &out=std::cout) const
 

Component access

typedef const double * ComponentIterator
 
double get_red () const
 
double get_green () const
 
double get_blue () const
 
ComponentIterator components_begin () const
 
ComponentIterator components_end () const
 
const boost::array< double, 3 > & get_rgb () const
 

Constructor & Destructor Documentation

IMP::display::Color::Color ( double  r,
double  g,
double  b 
)

Components must be between 0 and 1

template<class It >
IMP::display::Color::Color ( It  b,
It  e 
)

Components must be between 0 and 1

Definition at line 54 of file Color.h.


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