#include <Cartesian.hxx>
Public Member Functions | |
Cartesian () | |
Constructor just sets the method name. | |
virtual | ~Cartesian () |
Destructor. | |
void | setSource (IntMap &tbls, IntMap &cols, StringMap units) |
void | setTarget (IntMap &cols, StringMap units) |
void | doit (TableData< DataType > &data, int row1, int row2) |
Cary out the Cartesian calculations on the data. | |
void | doit2 (TableData< DataType > &rawData, TableData< DataType > &data, int row1, int row2) |
Private Attributes | |
int | cxColno |
int | cyColno |
int | czColno |
int | raColno |
int | decColno |
double | mDecFact |
double | mRAFact |
Class to implement the calculation of Cartesian coordinates from coordinates expressed in polar angles
Constructor just sets the method name.
Referenced by Cartesian< DataType >::~Cartesian().
Destructor.
References Cartesian< DataType >::Cartesian().
void Cartesian< DataType >::doit | ( | TableData< DataType > & | data, | |
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Cary out the Cartesian calculations on the data.
Implements DataMethod< DataType >.
References Cartesian< DataType >::cxColno, Cartesian< DataType >::cyColno, and Cartesian< DataType >::czColno.
void Cartesian< DataType >::doit2 | ( | TableData< DataType > & | rawData, | |
TableData< DataType > & | data, | |||
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Implements DataMethod< DataType >.
void Cartesian< DataType >::setSource | ( | IntMap & | tbls, | |
IntMap & | cols, | |||
StringMap | units | |||
) | [inline, virtual] |
The source data columns are those containing the polar angles. They are called RA and DEC here, but this will work in any coordinate system.
Implements DataMethod< DataType >.
void Cartesian< DataType >::setTarget | ( | IntMap & | cols, | |
StringMap | units | |||
) | [inline, virtual] |
The target is three data columns giving the Cartesian values in x, y, and z respectively.
Implements DataMethod< DataType >.
Referenced by Cartesian< DataType >::doit().
Referenced by Cartesian< DataType >::doit().
Referenced by Cartesian< DataType >::doit().