CatalogObject
#include <catalogobject.h>
Public Types | |
using | oid = QByteArray |
Public Types inherited from SkyObject | |
enum | TYPE { STAR = 0 , CATALOG_STAR = 1 , PLANET = 2 , OPEN_CLUSTER = 3 , GLOBULAR_CLUSTER = 4 , GASEOUS_NEBULA = 5 , PLANETARY_NEBULA = 6 , SUPERNOVA_REMNANT = 7 , GALAXY = 8 , COMET = 9 , ASTEROID = 10 , CONSTELLATION = 11 , MOON = 12 , ASTERISM = 13 , GALAXY_CLUSTER = 14 , DARK_NEBULA = 15 , QUASAR = 16 , MULT_STAR = 17 , RADIO_SOURCE = 18 , SATELLITE = 19 , SUPERNOVA = 20 , NUMBER_OF_KNOWN_TYPES = 21 , TYPE_UNKNOWN = 255 } |
typedef qint64 | UID |
Static Public Member Functions | |
static const oid | getId (const SkyObject::TYPE type, const double ra, const double dec, const QString &name, const QString &catalog_identifier) |
Static Public Member Functions inherited from SkyObject | |
static QString | typeName (const int t) |
Static Public Member Functions inherited from SkyPoint | |
static dms | findAltitude (const SkyPoint *p, const KStarsDateTime &dt, const GeoLocation *geo, const double hour=0) |
static dms | refract (const dms alt, bool conditional=true) |
static double | refract (const double alt, bool conditional=true) |
static double | refractionCorr (double alt) |
static SkyPoint | timeTransformed (const SkyPoint *p, const KStarsDateTime &dt, const GeoLocation *geo, const double hour=0) |
static dms | unrefract (const dms alt, bool conditional=true) |
static double | unrefract (const double alt, bool conditional=true) |
Additional Inherited Members | |
Static Public Attributes inherited from SkyObject | |
static const UID | invalidUID = ~0 |
static const UID | UID_DEEPSKY = 2 |
static const UID | UID_GALAXY = 1 |
static const UID | UID_SOLARSYS = 3 |
static const UID | UID_STAR = 0 |
Static Public Attributes inherited from SkyPoint | |
static const double | altCrit = -1.0 |
static bool | implementationIsLibnova = false |
Protected Member Functions inherited from SkyObject | |
void | setMag (float m) |
void | setName (const QString &name) |
void | setName2 (const QString &name2=QString()) |
Protected Member Functions inherited from SkyPoint | |
void | precess (const KSNumbers *num) |
Protected Attributes inherited from SkyObject | |
bool | has_been_updated = true |
QString | LongName |
QString | Name |
QString | Name2 |
Protected Attributes inherited from SkyPoint | |
double | lastPrecessJD { 0 } |
Detailed Description
A simple container object to hold the minimum information for a Deep Sky Object to be drawn on the skymap.
Detailed information about the object (like Catalog
information) will be loaded from it's birthing database when needed. Based on the original DeepSkyObject by Jason Harris.
You shouldn't create a CatalogObject manually!
- Todo
- maybe just turn the const members public
Definition at line 40 of file catalogobject.h.
Member Typedef Documentation
◆ oid
Definition at line 45 of file catalogobject.h.
Constructor & Destructor Documentation
◆ CatalogObject()
|
inline |
- Parameters
-
id oid (hash) of the object t Type of object r Right Ascension d Declination m magnitude (brightness) n Primary name lname Long name (common name) catalog_identifier a catalog specific identifier catalog_id catalog id a major axis (arcminutes) b minor axis (arcminutes) pa position angle (degrees) flux integrated flux (optional) database_path the path to the birthing database of this object, used to load additional information on-demand
Definition at line 64 of file catalogobject.h.
Member Function Documentation
◆ a()
|
inline |
- Returns
- the object's major axis length, in arcminutes.
Definition at line 112 of file catalogobject.h.
◆ b()
|
inline |
- Returns
- the object's minor axis length, in arcminutes.
Definition at line 117 of file catalogobject.h.
◆ catalogId()
|
inline |
Get the id of the catalog this object belongs to.
Definition at line 141 of file catalogobject.h.
◆ catalogIdentifier()
- Returns
- the catalog specific identifier. (For example UGC ...)
Definition at line 163 of file catalogobject.h.
◆ clone()
|
overridevirtual |
Clones the object and returns a pointer to it.
This is legacy code.
- Deprecated
- do not use in new code
Reimplemented from SkyObject.
Definition at line 19 of file catalogobject.cpp.
◆ e()
float CatalogObject::e | ( | ) | const |
Definition at line 26 of file catalogobject.cpp.
◆ flux()
|
inline |
- Returns
- the object's integrated flux, unit value is stored in the custom catalog component.
Definition at line 107 of file catalogobject.h.
◆ getCatalog()
const CatalogsDB::Catalog CatalogObject::getCatalog | ( | ) | const |
Get information about the catalog that this objects stems from.
The catalog information will be loaded from the catalog database on demand.
Definition at line 104 of file catalogobject.cpp.
◆ getId() [1/2]
const CatalogObject::oid CatalogObject::getId | ( | ) | const |
- Returns
- the unique ID of this object (not the physical ID = m_object_id) by hashing unique properties of the object.
This method provides the reference implementation for the oid hash.
Definition at line 115 of file catalogobject.cpp.
◆ getId() [2/2]
|
static |
Definition at line 122 of file catalogobject.cpp.
◆ getObjectId()
- Returns
- the physical object id of the catalogobject
Definition at line 188 of file catalogobject.h.
◆ getUID()
|
overridevirtual |
Generates a KStars internal UID from the object id.
Reimplemented from SkyObject.
Definition at line 72 of file catalogobject.cpp.
◆ image()
Get the image for this object.
- Returns
- [has image?, the image]
Definition at line 233 of file catalogobject.h.
◆ initPopupMenu()
|
overridevirtual |
Initialize the popup menu for a CatalogObject
.
Reimplemented from SkyObject.
Definition at line 95 of file catalogobject.cpp.
◆ JITupdate()
void CatalogObject::JITupdate | ( | ) |
Update the cooridnates and the horizontal coordinates if updateID or updateNumID have changed (global).
Definition at line 77 of file catalogobject.cpp.
◆ labelOffset()
|
overridevirtual |
- Returns
- the pixel distance for offseting the object's name label
Reimplemented from SkyObject.
Definition at line 33 of file catalogobject.cpp.
◆ labelString()
|
overridevirtual |
- Returns
- the string for the skymap label of the object.
Reimplemented from SkyObject.
Definition at line 51 of file catalogobject.cpp.
◆ load_image()
void CatalogObject::load_image | ( | ) |
Load the image for this object.
Definition at line 139 of file catalogobject.cpp.
◆ pa()
|
inlineoverridevirtual |
- Returns
- the object's position angle in degrees, measured clockwise from North.
Reimplemented from SkyObject.
Definition at line 128 of file catalogobject.h.
◆ setCatalogIdentifier()
Set the catalog identifier to `cat_ident`
.
Definition at line 193 of file catalogobject.h.
◆ setFlux()
|
inline |
Set the flux to `flux`
.
Definition at line 211 of file catalogobject.h.
◆ setMag()
|
inline |
Set the magnitude of the object.
Definition at line 221 of file catalogobject.h.
◆ setMaj()
|
inline |
Set the major axis to `a`
.
Definition at line 201 of file catalogobject.h.
◆ setMin()
|
inline |
Set the minor axis to `b`
.
Definition at line 206 of file catalogobject.h.
◆ setPA()
|
inline |
Set the position angle to `pa`
.
Definition at line 216 of file catalogobject.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.