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

Each color is represented by an index into the given palette.
Definition at line 42 of file InterpolatedColorMap.hpp.
Public Member Functions | |
| InterpolatedColorMap () | |
| Default constructor. | |
| InterpolatedColorMap (int icols, int irows, const Palette &pp, double base=0.0) | |
| Constructor. | |
| InterpolatedColorMap (const InterpolatedColorMap &o) | |
| Copy constructor. | |
| ~InterpolatedColorMap () | |
| Destructor. | |
| InterpolatedColorMap & | operator= (InterpolatedColorMap o) |
| Copy operator. | |
| void | setColor (int row, int col, double f) |
| Set the color at a row and column. | |
| Color | get (int row, int col) const |
| Get the color at a row and column. | |
| double | getIndex (int row, int col) const |
| Get the color index at a row and column. | |
| int | getCols () const |
| Get the cols of the map. | |
| int | getRows () const |
| Get the rows of the map. | |
| const Palette | getPalette () const |
| Get Palette. | |
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. | |
| Palette | p |
| The color palette. | |
| double ** | c |
| Index array. | |
|
|
Default constructor.
Definition at line 48 of file InterpolatedColorMap.hpp. |
|
||||||||||||||||||||
|
Constructor.
|
|
|
Copy constructor.
|
|
|
Destructor.
Definition at line 67 of file InterpolatedColorMap.hpp. |
|
||||||||||||
|
Get the color at a row and column.
Definition at line 90 of file InterpolatedColorMap.hpp. Referenced by PSImageBase::bitmap(). |
|
|
Get the cols of the map.
Definition at line 96 of file InterpolatedColorMap.hpp. Referenced by PSImageBase::bitmap(), PNG::cost_constant(), PNG::cost_indexed(), and PNG::data(). |
|
||||||||||||
|
Get the color index at a row and column.
Definition at line 93 of file InterpolatedColorMap.hpp. Referenced by PNG::data(), and SurfacePlot::get(). |
|
|
Get Palette.
Definition at line 102 of file InterpolatedColorMap.hpp. Referenced by PNG::plte(). |
|
|
Get the rows of the map.
Definition at line 99 of file InterpolatedColorMap.hpp. Referenced by PSImageBase::bitmap(), PNG::cost_constant(), PNG::cost_indexed(), and PNG::data(). |
|
||||||||||||
|
Initialization helper.
|
|
|
Copy operator. This is in replacement for operators like:
As this is what happens: InterpolatedColorMap ic(...); ...; //init ic InterpolatedColorMap c; c = ic; // c.operator=(ic); InterpolatedColorMap c2 = ic // c2(ic); |
|
|
Reset helper.
|
|
||||||||||||||||
|
Set the color at a row and column.
Definition at line 87 of file InterpolatedColorMap.hpp. Referenced by SurfacePlot::set(). |
|
|
Index array.
Definition at line 121 of file InterpolatedColorMap.hpp. |
|
|
Width of the map.
Definition at line 112 of file InterpolatedColorMap.hpp. |
|
|
The color palette.
Definition at line 118 of file InterpolatedColorMap.hpp. |
|
|
Height of the map.
Definition at line 115 of file InterpolatedColorMap.hpp. |
1.3.9.1