#include <Magnitudes.hxx>
Public Member Functions | |
ColourIndex () | |
Constructor just sets the method name. | |
virtual | ~ColourIndex () |
Destructor. | |
void | setSource (IntMap &tbls, IntMap &cols, StringMap units) |
void | setTarget (IntMap &cols, StringMap units) |
Target is the data column for the colour index. | |
void | doit (TableData< DataType > &data, int row1, int row2) |
void | doit2 (TableData< DataType > &inpData, TableData< DataType > &data, int row1, int row2) |
Private Attributes | |
int | mag1Colno |
int | mag2Colno |
int | ciColno |
Implements method to determine colour indices which are just differences between two magnitudes of different passbands
ColourIndex< DataType >::ColourIndex | ( | ) | [inline] |
Constructor just sets the method name.
virtual ColourIndex< DataType >::~ColourIndex | ( | ) | [inline, virtual] |
Destructor.
void ColourIndex< DataType >::doit | ( | TableData< DataType > & | data, | |
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Run the data method. This fills up the appropriate columns in the TableData object over the given row range where row>=row1 and row<row2
Implements DataMethod< DataType >.
References TableData< DataType >::assign(), ColourIndex< DataType >::ciColno, TableData< DataType >::isDefined(), ColourIndex< DataType >::mag1Colno, ColourIndex< DataType >::mag2Colno, DefaultValues::realdef, and TableData< DataType >::value().
void ColourIndex< DataType >::doit2 | ( | TableData< DataType > & | inpData, | |
TableData< DataType > & | data, | |||
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Implements DataMethod< DataType >.
void ColourIndex< DataType >::setSource | ( | IntMap & | tbls, | |
IntMap & | cols, | |||
StringMap | units | |||
) | [inline, virtual] |
Source are the data columns corresponding to the magnitude in one passband and the magnitude in the other
Implements DataMethod< DataType >.
References ColourIndex< DataType >::mag1Colno, ColourIndex< DataType >::mag2Colno, and StringOps::NumToString().
void ColourIndex< DataType >::setTarget | ( | IntMap & | cols, | |
StringMap | units | |||
) | [inline, virtual] |
Target is the data column for the colour index.
Implements DataMethod< DataType >.
References ColourIndex< DataType >::ciColno.
int ColourIndex< DataType >::ciColno [private] |
Referenced by ColourIndex< DataType >::doit(), and ColourIndex< DataType >::setTarget().
int ColourIndex< DataType >::mag1Colno [private] |
Referenced by ColourIndex< DataType >::doit(), and ColourIndex< DataType >::setSource().
int ColourIndex< DataType >::mag2Colno [private] |
Referenced by ColourIndex< DataType >::doit(), and ColourIndex< DataType >::setSource().