HighPMStarList

Search for usage in LXR

HighPMStarList Class Reference

#include <highpmstarlist.h>

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
 
void stats ()
 
double threshold () const
 

Detailed Description

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.

Author
James B. Bowlin
Version
0.1

Definition at line 28 of file highpmstarlist.h.

Constructor & Destructor Documentation

◆ HighPMStarList()

HighPMStarList::HighPMStarList ( double threshold)
explicit

Constructor.

Definition at line 22 of file highpmstarlist.cpp.

◆ ~HighPMStarList()

HighPMStarList::~HighPMStarList ( )

Definition at line 27 of file highpmstarlist.cpp.

Member Function Documentation

◆ append()

bool HighPMStarList::append ( Trixel trixel,
StarObject * star,
double pm )

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.

◆ reindex()

bool HighPMStarList::reindex ( KSNumbers * num,
StarIndex * starIndex )

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.

◆ setIndexTime()

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.

◆ size()

int HighPMStarList::size ( ) const
inline

returns the number of stars in the list.

Definition at line 47 of file highpmstarlist.h.

◆ stats()

void HighPMStarList::stats ( )

prints out some brief statistics.

Definition at line 112 of file highpmstarlist.cpp.

◆ threshold()

double HighPMStarList::threshold ( ) const
inline

returns the threshold.

Definition at line 44 of file highpmstarlist.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.