Public Member Functions
|HighPMStarList (double threshold)|
|bool||append (Trixel trixel, StarObject *star, double pm)|
|bool||reindex (KSNumbers *num, StarIndex *starIndex)|
|void||setIndexTime (KSNumbers *num)|
|int||size () const|
|double||threshold () const|
Holds a list of stars with high proper motion along with the trixel each star is currently located in. The purpose of this class is to save some time by only re-indexing the stars with high proper motion instead of the entire collection of stars (which takes about 4 seconds on a AMD64 3600).
Multiple HighPMStarList's can be used so we re-index a smaller number of stars more frequently and a larger number of stars less frequently.
Definition at line 28 of file highpmstarlist.h.
Constructor & Destructor Documentation
Definition at line 22 of file highpmstarlist.cpp.
Member Function Documentation
adds the star located at trixel to the list if the pm is greater than the threshold.
We also use the pm to determine the update interval. Returns true if the star was appended and false otherwise.
Definition at line 33 of file highpmstarlist.cpp.
if the date in num differs from the last time we indexed by more than our update interval then we re-index all the stars in our list that have actually changed trixels.
Definition at line 56 of file highpmstarlist.cpp.
|void HighPMStarList::setIndexTime||(||KSNumbers *||num||)|
sets the time this list was last indexed to.
Normally this is done automatically in the reindex() routine but this is useful if the entire starIndex gets re-indexed.
Definition at line 51 of file highpmstarlist.cpp.
returns the number of stars in the list.
Definition at line 47 of file highpmstarlist.h.
prints out some brief statistics.
Definition at line 112 of file highpmstarlist.cpp.
returns the threshold.
Definition at line 44 of file highpmstarlist.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Jun 5 2023 03:56:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.