IMP logo
IMP Reference Guide  develop.7cb8855c60,2024/10/08
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 25 of file Color.h.

Public Member Functions

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

Component access

typedef std::array< double, 3 >
::const_iterator 
ComponentIterator
 
double get_red () const
 
double get_green () const
 
double get_blue () const
 
ComponentIterator components_begin () const
 
ComponentIterator components_end () const
 
const std::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 62 of file Color.h.


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