#include <SimbadSearcher.hpp>
|
|
| SimbadSearcher (QObject *parent=Q_NULLPTR) |
| |
| SimbadLookupReply * | lookup (const QString &serverUrl, const QString &objectName, int maxNbResult=1, int delayMs=500) |
| | Lookup in Simbad for object which have a name starting with objectName. More...
|
| |
| SimbadLookupReply * | lookupCoords (const QString &serverUrl, const Vec3d coordsJ2000, int maxNbResult=1, int delayMs=500, int radius=30, bool IDs=false, bool types=false, bool spectrum=false, bool morpho=false, bool dim=false) |
| | Lookup in Simbad for objects which have a position coordsJ2000. More...
|
| |
Provides lookup features into the online Simbad service from CDS. See http://simbad.u-strasbg.fr for more info.
◆ lookup()
| SimbadLookupReply* SimbadSearcher::lookup |
( |
const QString & |
serverUrl, |
|
|
const QString & |
objectName, |
|
|
int |
maxNbResult = 1, |
|
|
int |
delayMs = 500 |
|
) |
| |
- Parameters
-
| serverUrl | URL of the SIMBAD mirror server. |
| objectName | the possibly truncated object name. |
| maxNbResult | the maximum number of returned result. |
| delayMs | a delay in ms to wait for before actually triggering the lookup. This used to group requests, e.g. send only one request when a used types a word insead of one per letter. |
- Returns
- a new SimbadLookupReply which is owned by the caller.
◆ lookupCoords()
| SimbadLookupReply* SimbadSearcher::lookupCoords |
( |
const QString & |
serverUrl, |
|
|
const Vec3d |
coordsJ2000, |
|
|
int |
maxNbResult = 1, |
|
|
int |
delayMs = 500, |
|
|
int |
radius = 30, |
|
|
bool |
IDs = false, |
|
|
bool |
types = false, |
|
|
bool |
spectrum = false, |
|
|
bool |
morpho = false, |
|
|
bool |
dim = false |
|
) |
| |
- Parameters
-
| serverUrl | URL of the SIMBAD mirror server. |
| objectName | the possibly truncated object name. |
| maxNbResult | the maximum number of returned result. |
| delayMs | a delay in ms to wait for before actually triggering the lookup. |
| radius | search radius, arcseconds |
| IDs | retrieve lists of all IDs in addition to the primary ID |
| types | retrieve type information |
| spectrum | retrieve spectral class (if available) |
| morpho | retrieve morphological information (if available) |
| dim | retrieve dimensions (if available) |
- Returns
- a new SimbadLookupReply which is owned by the caller. The returned information is a raw query answer. Depending on object, the spectrum, morpho or dim information may be useless.