Implements method to fill up the appropriate data column with HTM indicies. More...
#include <HtmIndex.hxx>
Public Member Functions | |
HtmIndex (int htmLevel) | |
virtual | ~HtmIndex () |
Destructor deletes the SpatialIndex object. | |
void | setSource (IntMap &tbls, IntMap &cols, StringMap units) |
Source data columns are those with the RA and DEC. | |
void | setTarget (IntMap &cols, StringMap units) |
Target data column is that corresponding to the HTM index. | |
void | doit (TableData< DataType > &data, int row1, int row2) |
Fill up the HTM index column. | |
void | doit2 (TableData< DataType > &rawData, TableData< DataType > &data, int row1, int row2) |
Private Attributes | |
int | htmColno |
int | raColno |
int | decColno |
double | mDecFact |
double | mRAFact |
SpatialIndex * | mHtmPtr |
Implements method to fill up the appropriate data column with HTM indicies.
Constructor takes request HTM level and sets up the SpatialIndex object for calculating the indices for this level
References Logger::addMessage(), HtmIndex< DataType >::mHtmPtr, and StringOps::NumToString().
Destructor deletes the SpatialIndex object.
References HtmIndex< DataType >::mHtmPtr.
void HtmIndex< DataType >::doit | ( | TableData< DataType > & | data, | |
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Fill up the HTM index column.
Implements DataMethod< DataType >.
References Logger::addError(), TableData< DataType >::assign(), ExpectNames::dec, HtmIndex< DataType >::decColno, HtmIndex< DataType >::htmColno, HtmIndex< DataType >::mDecFact, HtmIndex< DataType >::mHtmPtr, HtmIndex< DataType >::mRAFact, StringOps::NumToString(), ExpectNames::ra, HtmIndex< DataType >::raColno, and TableData< DataType >::value().
void HtmIndex< DataType >::doit2 | ( | TableData< DataType > & | rawData, | |
TableData< DataType > & | data, | |||
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Implements DataMethod< DataType >.
void HtmIndex< DataType >::setSource | ( | IntMap & | tbls, | |
IntMap & | cols, | |||
StringMap | units | |||
) | [inline, virtual] |
Source data columns are those with the RA and DEC.
Implements DataMethod< DataType >.
References HtmIndex< DataType >::decColno, Converter::getFactor(), HtmIndex< DataType >::mDecFact, HtmIndex< DataType >::mRAFact, and HtmIndex< DataType >::raColno.
void HtmIndex< DataType >::setTarget | ( | IntMap & | cols, | |
StringMap | units | |||
) | [inline, virtual] |
Target data column is that corresponding to the HTM index.
Implements DataMethod< DataType >.
References HtmIndex< DataType >::htmColno.
Referenced by HtmIndex< DataType >::doit(), and HtmIndex< DataType >::setSource().
Referenced by HtmIndex< DataType >::doit(), and HtmIndex< DataType >::setTarget().
Referenced by HtmIndex< DataType >::doit(), and HtmIndex< DataType >::setSource().
Referenced by HtmIndex< DataType >::doit(), and HtmIndex< DataType >::setSource().
Referenced by HtmIndex< DataType >::doit(), and HtmIndex< DataType >::setSource().