htmInterface class
![]() | htmInterface (size_t depth = 5, size_t saveDepth = 2) Constructor |
![]() | ~htmInterface () Destructor |
![]() | index () const Access the index associated with the interface |
![]() | lookupID (float64 ra, float64 dec) const Lookup a node ID from ra,dec |
![]() | lookupID (float64 x, float64 y, float64 z) const Lookup a node ID from x,y,z |
![]() | lookupID (char *) const Lookup the ID from the Name string |
![]() | lookupIDCmd (char *) Lookup a node ID from a string command |
![]() | lookupName (float64 ra, float64 dec) Lookup a node name from ra,dec Given a certain RA,DEC and index depth return its HTM NodeName |
![]() | lookupName (float64 x, float64 y, float64 z) Lookup a node name from x,y,z |
![]() | lookupName (uint64 ID) Lookup a node name from a node ID |
![]() | lookupNameCmd (char *) Lookup a node name using a string command |
![]() | circleRegion ( float64 ra, float64 dec, float64 rad ) Request all triangles in a circular region |
![]() | circleRegion ( float64 x, float64 y, float64 z, float64 rad ) Request all triangles in a circular region |
![]() | circleRegionCmd ( char *str ) Request all triangles in a circular region |
![]() | convexHull ( ValVec Request all triangles in the convex hull of a given set of points |
![]() | convexHull ( ValVec Request all triangles in the convex hull of a given set of points |
![]() | convexHullCmd ( char *str ) Request all triangles in the convex hull of a given set of points |
![]() | domain ( SpatialDomain & ) Give the ranges for an intersection with a proper domain |
![]() | domainCmd ( char *str ) String interface for domain intersection |
![]() | changeDepth (size_t depth, size_t saveDepth = 2) Change the current index depth |
![]() | isInteger (const VarStr &) Check whether a varstring is an integer |
![]() | isFloat (const VarStr &) Check whether a varstring is a float |
![]() | inRange ( const ValVec<htmRange> &, int64 ) Check whether a range contains a certain id |
![]() | printRange ( const ValVec<htmRange> & ) Print the ranges to cout |
htmInterface class. The SpatialInterface class contains all methods to interface the HTM index with external applications.
The numbers need to be separated by whitespace (newlines are allowed).
Throws SpatialInterfaceError on syntax errors.
~htmInterface()
const SpatialIndex& index() const
uint64 lookupID(float64 ra, float64 dec) const
uint64 lookupID(float64 x, float64 y, float64 z) const
uint64 lookupID(char *) const
uint64 lookupIDCmd(char *)
The string will be evaluated depending on how many items it has.
SpatialInterfaceError is thrown if the string is unexpected.
const char* lookupName(float64 ra, float64 dec)
const char* lookupName(float64 x, float64 y, float64 z)
const char* lookupName(uint64 ID)
const char* lookupNameCmd(char *)
The string will be evaluated depending on how many items it has.
SpatialInterfaceError is thrown if the string is unexpected.
const ValVec <htmRange> & circleRegion( float64 ra, float64 dec, float64 rad )
const ValVec <htmRange> & circleRegion( float64 x, float64 y, float64 z, float64 rad )
const ValVec <htmRange> & circleRegionCmd( char *str )
const ValVec <htmRange> & convexHull( ValVec
const ValVec <htmRange> & convexHull( ValVec
const ValVec <htmRange> & convexHullCmd( char *str )
" J2000 depth ra dec ra dec ra dec "
or
" CARTESIAN depth x y z x y z x y z "
There may be as many points ra, dec or x,y,z as you want.
const ValVec <htmRange> & domain( SpatialDomain & )
const ValVec <htmRange> & domainCmd( char *str )
DOMAIN depth
nConvexes
nConstraints in convex 1
x y z d
x y z d
.
.
x y z d
nConstraints in convex 2
x y z d
x y z d
.
.
x y z d
.
.
.
nConstrinats in convex n
x y z d
x y z d
.
.
x y z d
void changeDepth(size_t depth, size_t saveDepth = 2)
static bool isInteger(const VarStr &)
static bool isFloat(const VarStr &)
static bool inRange( const ValVec<htmRange> &, int64 )
static void printRange( const ValVec<htmRange> & )
alphabetic index hierarchy of classes