#include <stolist.h>
Inheritance diagram for TStellarObjectList:
Public Methods | |
TStellarObjectList () | |
TStellarObjectList (const TStellarObjectList &List) | |
TStellarObjectList & | Add (TStellarObject *pObject) |
TStellarObjectList & | Add (const TStellarObjectList &List) |
double | ApplyFilterMinDistance (const TPoint &Point, double dEpsilon=0.001) |
int | Filter (TStellarObjectList *newlist, const TSOLFilter &f, const bool clear=false) const |
TStellarObjectList & | operator= (TStellarObject *pObject) |
TStellarObjectList & | operator= (const TStellarObjectList &List) |
TStellarObjectList | operator+ (TStellarObject *pObject) const |
TStellarObjectList | operator+ (const TStellarObjectList &List) const |
TStellarObjectList & | operator+= (TStellarObject *pObject) |
TStellarObjectList & | operator+= (const TStellarObjectList &List) |
void | showContent () const |
void | SortByDistance (const TPoint &Pos) |
void | SortByID () |
void | SortByName () |
void | SortByType () |
Private Methods | |
bool | CompareByDistance (TStellarObject *x, TStellarObject *y) |
Private Attributes | |
TPoint | fReferencePos |
Friends | |
class | TCompareByDistance |
|
Empty constructor. |
|
The copy constructor. |
|
Adds a list of stellar objects to the list.
|
|
Adds a stellar object to the list.
|
|
Calculates for each stellar object the distance to a given point and keeps only the nearest objects in the list. If several objects have the same (min) distance they all stay in the list.
|
|
Calculates the distance of both stellar objects to the reference point ReferencePos and returns |
|
Apply a filter to a list and create a new (filtered) list.
|
|
Adds a list of stellar objects to the list. The same as Add.
|
|
Adds a stellar object to the list. The same as Add.
|
|
For debugging only! Writes the stellar objects to the LOG stream. |
|
Uses the distance to a given point to sort the list by distance.
|
|
Sorts the list by ID (FIXME ascending?). |
|
Sorts the list by name (FIXME ascending?). |
|
Sorts the list by type. |
|
FIXME |