Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Arroyo::sao_colormap Class Reference

#include <colormap.h>

Inheritance diagram for Arroyo::sao_colormap:

Arroyo::colormap List of all members.

Public Member Functions

 sao_colormap ()
 sao_colormap (std::vector< std::vector< double > > &in_R_points, std::vector< std::vector< double > > &in_G_points, std::vector< std::vector< double > > &in_B_points)
 sao_colormap (const char *filename)
 sao_colormap (const sao_colormap &scm)
 ~sao_colormap ()
sao_colormapoperator= (const sao_colormap &scm)
void read (const char *filename)
void print (std::ostream &os, const char *prefix="") const
void invert ()
char get_R (double val, double min, double max, bool logscale) const
char get_G (double val, double min, double max, bool logscale) const
char get_B (double val, double min, double max, bool logscale) const

Protected Attributes

std::vector< std::vector<
double > > 
R_points
std::vector< std::vector<
double > > 
G_points
std::vector< std::vector<
double > > 
B_points

Detailed Description

A class to hold an sao colormap. This type of colormap is defined at http://tdc-www.harvard.edu/software/saoimage/saoimage.color.html#cmap

This class does not yet support the GAMMA entry, and will throw an error if this entry appears in the colormap


Constructor & Destructor Documentation

Arroyo::sao_colormap::sao_colormap  )  [inline]
 

Null constructor - initialize to greyscale

Arroyo::sao_colormap::sao_colormap std::vector< std::vector< double > > &  in_R_points,
std::vector< std::vector< double > > &  in_G_points,
std::vector< std::vector< double > > &  in_B_points
 

Construct from the bits

Arroyo::sao_colormap::sao_colormap const char *  filename  ) 
 

Construct from file

Arroyo::sao_colormap::sao_colormap const sao_colormap scm  )  [inline]
 

Copy constructor

Arroyo::sao_colormap::~sao_colormap  )  [inline]
 

Trivial destructor


Member Function Documentation

char Arroyo::sao_colormap::get_B double  val,
double  min,
double  max,
bool  logscale
const [virtual]
 

Get B value - 0 to 255

Implements Arroyo::colormap.

char Arroyo::sao_colormap::get_G double  val,
double  min,
double  max,
bool  logscale
const [virtual]
 

Get G value - 0 to 255

Implements Arroyo::colormap.

char Arroyo::sao_colormap::get_R double  val,
double  min,
double  max,
bool  logscale
const [virtual]
 

Get R value - 0 to 255

Implements Arroyo::colormap.

void Arroyo::sao_colormap::invert  )  [virtual]
 

Invert the colormap

Implements Arroyo::colormap.

sao_colormap& Arroyo::sao_colormap::operator= const sao_colormap scm  ) 
 

Operator=

void Arroyo::sao_colormap::print std::ostream &  os,
const char *  prefix = ""
const [virtual]
 

Print

Implements Arroyo::colormap.

void Arroyo::sao_colormap::read const char *  filename  )  [virtual]
 

Read from file

Implements Arroyo::colormap.


Member Data Documentation

std::vector<std::vector<double> > Arroyo::sao_colormap::B_points [protected]
 

std::vector<std::vector<double> > Arroyo::sao_colormap::G_points [protected]
 

std::vector<std::vector<double> > Arroyo::sao_colormap::R_points [protected]
 


The documentation for this class was generated from the following file:
Generated on Thu Nov 29 17:16:33 2007 for arroyo by  doxygen 1.3.9.1