#include <ColorMap.hpp>
Collaboration diagram for ColorMap:

Definition at line 45 of file ColorMap.hpp.
Public Member Functions | |
| ColorMap () | |
| Default constructor. | |
| ColorMap (const ColorMap &o) | |
| Copy constructor. | |
| ColorMap (const InterpolatedColorMap &o) | |
| Convert constructor. | |
| ColorMap (const Palette &p, double dir=90, int num=256) | |
| Convert constructor. | |
| ColorMap (int icols, int irows, const Color &base=Color::BLACK) | |
| Constructor. | |
| ~ColorMap () | |
| Destructor. | |
| ColorMap & | operator= (ColorMap o) |
| Copy operator. | |
| void | setColor (int row, int col, const Color &color) |
| Set the color at a row and column. | |
| Color | get (int row, int col) const |
| Get the color at a row and column. | |
| int | getCols () const |
| Get the cols of the map. | |
| int | getRows () const |
| Get the rows of the map. | |
Protected Member Functions | |
| void | init (int icols, int irows) |
| Initialization helper. | |
| void | reset () |
| Reset helper. | |
Protected Attributes | |
| int | cols |
| Width of the map. | |
| int | rows |
| Height of the map. | |
| Color ** | c |
| Color array. | |
|
|
Default constructor.
Definition at line 49 of file ColorMap.hpp. |
|
|
Copy constructor.
|
|
|
Convert constructor.
|
|
||||||||||||||||
|
Convert constructor.
Definition at line 65 of file ColorMap.hpp. References Palette::getColor(). |
|
||||||||||||||||
|
Constructor.
|
|
|
Destructor.
Definition at line 88 of file ColorMap.hpp. |
|
||||||||||||
|
Get the color at a row and column.
Definition at line 112 of file ColorMap.hpp. Referenced by PSImageBase::bitmap(), and PNG::data(). |
|
|
Get the cols of the map.
Definition at line 115 of file ColorMap.hpp. Referenced by PSImageBase::bitmap(), PNG::cost_constant(), and PNG::data(). |
|
|
Get the rows of the map.
Definition at line 118 of file ColorMap.hpp. Referenced by PSImageBase::bitmap(), PNG::cost_constant(), and PNG::data(). |
|
||||||||||||
|
Initialization helper.
|
|
|
Copy operator. This is in replacement for operators like:
As this is what happens: InterpolatedColorMap ic(...); ...; //init ic ColorMap c; c = ic; // c.operator=(ColorMap(ic)); ColorMap c2 = ic // c2(ic); |
|
|
Reset helper.
|
|
||||||||||||||||
|
Set the color at a row and column.
Definition at line 109 of file ColorMap.hpp. |
|
|
Color array.
Definition at line 134 of file ColorMap.hpp. |
|
|
Width of the map.
Definition at line 128 of file ColorMap.hpp. |
|
|
Height of the map.
Definition at line 131 of file ColorMap.hpp. |
1.3.9.1