ColorTable Class Reference

#include <colortable.h>

List of all members.

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])


Detailed Description

Definition at line 30 of file colortable.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void ColorTable::define_table ( float  intab[][3]  )  [private]

Definition at line 82 of file colortable.cpp.

References ncols, and table.

Referenced by ColorTable().

QString ColorTable::getName (  )  const [inline]

Definition at line 59 of file colortable.h.

References name.

QPixmap ColorTable::getPixmap (  ) 

Definition at line 122 of file colortable.cpp.

int ColorTable::getSize ( void   )  const [inline]

Definition at line 74 of file colortable.h.

References ncols.

QColor ColorTable::operator() ( float  v  )  const [inline]

Definition at line 105 of file colortable.h.

References operator[]().

QColor ColorTable::operator[] ( float  v  )  const

Definition at line 101 of file colortable.cpp.

References ncols, and table.

QColor ColorTable::operator[] ( unsigned int  ind  )  const [inline]

Definition at line 89 of file colortable.h.

References ncols, and table.

Referenced by operator()().


Member Data Documentation

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[]().


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 15:32:59 2009 for Skyviewer by  doxygen 1.4.7