#include <colortable.h>
Public Member Functions | |
| ColorTable () | |
| ColorTable (int id) | |
| QColor | operator[] (unsigned int ind) const |
| QColor | operator[] (float v) const |
| QColor | operator() (float v) const |
| int | getSize (void) const |
| QString | getName () const |
| QPixmap | getPixmap () |
Protected Attributes | |
| QString | name |
| Name of the table. | |
| unsigned int | ncols |
| Number of colors in this table. | |
| std::vector< QColor > | table |
| The color table. | |
Private Member Functions | |
| void | define_table (float intab[][3]) |
Definition at line 30 of file colortable.h.
| ColorTable::ColorTable | ( | ) |
Definition at line 38 of file colortable.cpp.
References default_colortable, default_ct_name, define_table(), and name.
| ColorTable::ColorTable | ( | int | id | ) |
Definition at line 55 of file colortable.cpp.
References blkwht_colortable, blkwht_ct_name, default_colortable, default_ct_name, define_table(), and name.
| void ColorTable::define_table | ( | float | intab[][3] | ) | [private] |
| QString ColorTable::getName | ( | ) | const [inline] |
| QPixmap ColorTable::getPixmap | ( | ) |
Definition at line 122 of file colortable.cpp.
| int ColorTable::getSize | ( | void | ) | const [inline] |
| QColor ColorTable::operator() | ( | float | v | ) | const [inline] |
| QColor ColorTable::operator[] | ( | float | v | ) | const |
| QColor ColorTable::operator[] | ( | unsigned int | ind | ) | const [inline] |
QString ColorTable::name [protected] |
Name of the table.
Definition at line 42 of file colortable.h.
Referenced by ColorTable(), and getName().
unsigned int ColorTable::ncols [protected] |
Number of colors in this table.
Definition at line 43 of file colortable.h.
Referenced by define_table(), getSize(), and operator[]().
std::vector<QColor> ColorTable::table [protected] |
The color table.
Definition at line 44 of file colortable.h.
Referenced by define_table(), and operator[]().
1.4.7