PCL
|
A dialog box to search for object data on online astronomical database services. More...
#include <OnlineObjectSearchDialog.h>
Additional Inherited Members | |
![]() | |
using | execute_event_handler = void(Control::*)(Dialog &sender) |
using | return_event_handler = void(Control::*)(Dialog &sender, int retCode) |
using | std_code = StdDialogCode::value_type |
![]() | |
using | child_event_handler = void(Control::*)(Control &sender, Control &child) |
using | close_event_handler = void(Control::*)(Control &sender, bool &allowClose) |
using | event_handler = void(Control::*)(Control &sender) |
using | file_drag_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const StringList &files, unsigned modifiers, bool &wantsFiles) |
using | file_drop_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const StringList &files, unsigned modifiers) |
using | keyboard_event_handler = void(Control::*)(Control &sender, int key, unsigned modifiers, bool &wantsKey) |
using | mouse_button_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, int button, unsigned buttons, unsigned modifiers) |
using | mouse_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, unsigned buttons, unsigned modifiers) |
using | mouse_wheel_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, int delta, unsigned buttons, unsigned modifiers) |
using | move_event_handler = void(Control::*)(Control &sender, const pcl::Point &newPos, const pcl::Point &oldPos) |
using | paint_event_handler = void(Control::*)(Control &sender, const pcl::Rect &updateRect) |
using | resize_event_handler = void(Control::*)(Control &sender, int newWidth, int newHeight, int oldWidth, int oldHeight) |
using | view_drag_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const View &view, unsigned modifiers, bool &wantsView) |
using | view_drop_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const View &view, unsigned modifiers) |
![]() | |
static void | ProcessEvents (bool excludeUserInputEvents=false) |
![]() | |
static void | HideToolTip () |
static Control & | Null () |
static void | ShowToolTip (const Point &pos, const String &text, const Control &control=Control::Null(), const Rect &rect=Rect(0)) |
static void | ShowToolTip (int x, int y, const String &text, const Control &control=Control::Null(), const Rect &rect=Rect(0)) |
static String | ToolTipText () |
![]() | |
static UIObject & | Null () |
![]() | |
UIObject ()=default | |
UIObject (const UIObject &x) | |
UIObject (UIObject &&x) | |
UIObject & | operator= (const UIObject &x) |
UIObject & | operator= (UIObject &&x) |
OnlineObjectSearchDialog allows the user to enter the name or identifier of an object to search for, such as 'M31', 'Pleiades', 'NGC 253', 'Orion Nebula', 'Antares', or 'alpha Lyr'. The dialog sends an ADQL query to a public SIMBAD database service to retrieve several object properties, including ICRS equatorial coordinates, proper motions and visual magnitude, among others.
This class is a useful component for processes requiring a flexible and fast way to retrieve data for user-selected objects. Currently two public SIMBAD database services can be used: the master SIMBAD service in France (Centre de Données Astronomiques de Strasbourg) and its mirror site in the USA (Harvard-Smithsonian Center for Astrophysics).
References
SIMBAD Astronomical Database - CDS Strasbourg:
http://simbad.u-strasbg.fr/simbad/
SIMBAD mirror site in the USA - CFA Harvard:
http://simbad.cfa.harvard.edu/
SIMBAD TAP Service:
http://simbad.u-strasbg.fr/simbad/sim-tap
ADQL Cheat sheet:
http://simbad.u-strasbg.fr/simbad/tap/help/adqlHelp.html
Definition at line 109 of file OnlineObjectSearchDialog.h.
pcl::OnlineObjectSearchDialog::OnlineObjectSearchDialog | ( | ) |
Default constructor.
|
inline |
Returns the ICRS declination coordinate in degrees, or zero if no object has been found or searched for.
Definition at line 172 of file OnlineObjectSearchDialog.h.
|
inline |
Returns true iff an object has been specified and valid data have been found. In such case valid right ascension and declination coordinates are always available. Other data items (proper motions, etc) are optional, depending on the type of the object that has been searched for.
Definition at line 223 of file OnlineObjectSearchDialog.h.
|
inline |
Returns the proper motion in declination in mas/year, or zero if no object has been found or searched for, or if proper motions are not available for the specified object.
Definition at line 192 of file OnlineObjectSearchDialog.h.
|
inline |
Returns the proper motion in right ascension in mas/year, or zero if no object has been found or searched for, or if proper motions are not available for the specified object.
Definition at line 182 of file OnlineObjectSearchDialog.h.
|
inline |
Returns the name of the object that has been found, or an empty string if no object has been found or searched for.
Definition at line 122 of file OnlineObjectSearchDialog.h.
|
inline |
Returns a code representing the type of the object, or an empty string if no object has been found or searched for.
Object type codes are abbreviations standardized on the SIMBAD database, such as 'GlC' (globular cluster), 'G' (galaxy), or '*' (star).
Definition at line 134 of file OnlineObjectSearchDialog.h.
|
inline |
Returns the parallax in mas, or zero if no object has been found or searched for, or if the parallax is not available for the specified object.
Definition at line 202 of file OnlineObjectSearchDialog.h.
|
inline |
Returns the ICRS right ascension coordinate in degrees, or zero if no object has been found or searched for.
Definition at line 163 of file OnlineObjectSearchDialog.h.
|
inline |
Returns the radial velocity in km/s, or zero if no object has been found or searched for, or if the radial velocity is not available for the specified object.
Definition at line 212 of file OnlineObjectSearchDialog.h.
|
inline |
Returns the user-defined text that has been searched for during the latest dialog execution. Typically this is either an empty string or the name or identifier of an astronomical object, such as 'M31', 'Pleiades', 'NGC 253', 'Orion Nebula', 'Antares', or 'alpha Lyr'.
Definition at line 234 of file OnlineObjectSearchDialog.h.
String pcl::OnlineObjectSearchDialog::ServerURL | ( | ) | const |
Returns the URL of the online database service provider that is currently selected on this dialog.
The database server URL selected by the user on these dialogs is a global item stored in core application settings. It is restored by each instance of this class upon creation.
|
inline |
Returns a string representing the spectral type, or an empty string if no object has been found or searched for, or if the spectral type is not available for the specified object.
Definition at line 144 of file OnlineObjectSearchDialog.h.
|
inline |
Returns the V (visual) magnitude of the object, or zero if no object has been found or searched for, or if the V magnitude is not available for the specified object.
Definition at line 154 of file OnlineObjectSearchDialog.h.