Kstars
skymapcomposite.cpp
473 oTry)) // There are gazillions of faint asteroids and comets; we want to prevent them from getting precedence
617 //if ( n == KSPlanetBase::PLUTO ) return (KSPlanetBase*)(m_SolarSystem->findByName( i18n( "Pluto" ) ) );
627 true); // This is not (yet) multithreaded, so I think we don't have to worry about overwriting the state of an existing lock --asimha
void append(const T &value)
SkyObject * findByName(const QString &name, bool exact=true) override
Search the children of this SkyComposite for a SkyObject whose name matches the argument.
Definition: skycomposite.cpp:64
void update(KSNumbers *) override
Update the sky position(s) of this component.
Definition: localmeridiancomponent.cpp:69
void draw(SkyPainter *skyp) override
Draw this component by iterating over the list.
Definition: targetlistcomponent.cpp:37
SkyObject * objectNearest(SkyPoint *p, double &maxrad) override
Find the SkyObject nearest the given SkyPoint.
Definition: starcomponent.cpp:667
Definition: terraincomponent.h:18
void update(KSNumbers *num=nullptr) override
Update the sky positions of this component.
Definition: supernovaecomponent.cpp:54
Definition: ecliptic.h:19
void update(KSNumbers *num) override
Update satellites position.
Definition: satellitescomponent.cpp:78
static void AddLabel(SkyObject *obj, label_t type)
static version of addLabel() below.
Definition: skylabeler.h:135
QDateTime currentDateTime()
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
Definition: skypoint.h:44
SkyObject * objectNearest(SkyPoint *p, double &maxrad) override
Find the SkyObject nearest the given SkyPoint.
Definition: supernovaecomponent.cpp:146
bool rename(const QString &newName)
void drawTrails(SkyPainter *skyp) override
Draw trails for objects.
Definition: solarsystemcomposite.cpp:144
void setClickedPoint(const SkyPoint *f)
Set the ClickedPoint to the skypoint given as an argument.
Definition: skymap.cpp:1011
void update(KSNumbers *) override
Update the sky position(s) of this component.
Definition: horizontalcoordinategrid.cpp:113
void aperture(SkyPoint *center, double radius, MeshBufNum_t bufNum=DRAW_BUF)
finds the set of trixels that cover the circular aperture specified after first performing a reverse ...
Definition: skymesh.cpp:56
void clear()
Definition: kstarsdata.h:71
void update(KSNumbers *num) override
Delegate update-position requests to all sub components.
Definition: solarsystemcomposite.cpp:109
SkyObject * clickedObject() const
Retrieve the object nearest to a mouse click event.
Definition: skymap.h:244
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: imageoverlaycomponent.cpp:321
void addComponent(SkyComponent *comp, int priority=1024)
Add a new sub component to the composite comp Pointer to the SkyComponent to be added priority A prio...
Definition: skycomposite.cpp:22
Definition: skycomposite.h:29
Class that handles drawing of MilkyWay (both filled and non-filled)
Definition: milkyway.h:24
QList< SkyObject * > findObjectsInArea(const SkyPoint &p1, const SkyPoint &p2)
Definition: skymapcomposite.cpp:544
bool close()
void objectsInArea(QList< SkyObject * > &list, const SkyRegion ®ion) override
Searches the region(s) and appends the SkyObjects found to the list of sky objects.
Definition: starcomponent.cpp:598
static StarComponent * Create(SkyComposite *)
Create an instance of StarComponent.
Definition: starcomponent.cpp:92
bool exists() const const
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: flagcomponent.cpp:52
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void emitProgressText(const QString &message) override
Emit signal about progress.
Definition: skymapcomposite.cpp:703
void removeAt(int i)
Definition: solarsystemcomposite.h:30
Definition: imageoverlaycomponent.h:68
void updateMoons(KSNumbers *num) override
Delegate moon position updates to the SolarSystemComposite.
Definition: skymapcomposite.cpp:233
Definition: horizoncomponent.h:23
void draw(SkyPainter *skyp) override
Delegate draw requests to all sub components psky Reference to the QPainter on which to paint.
Definition: skymapcomposite.cpp:244
void update(KSNumbers *) override
Update the sky position(s) of this component.
Definition: horizoncomponent.cpp:48
SkyObject * findByName(const QString &name, bool exact=true) override
Search the children of this SkyMapComposite for a SkyObject whose name matches the argument.
Definition: skymapcomposite.cpp:558
QString i18n(const char *text, const TYPE &arg...)
bool isLocalCNames()
Return true if we are using localized constellation names.
Definition: constellationnamescomponent.h:59
void update(KSNumbers *num=nullptr) override
Update the sky position(s) of this component.
Definition: flagcomponent.cpp:369
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: equator.cpp:59
void draw(SkyPainter *skyp) override
Definition: supernovaecomponent.cpp:178
void loadingFinished()
called when SkyMapComposite finished loading all SkyComponents
Definition: skymaplite.h:301
Definition: culturelist.h:16
int indexOf(const T &value, int from) const const
Definition: constellationlines.h:22
SkyObject * objectNearest(SkyPoint *p, double &maxrad) override
Definition: skymapcomposite.cpp:413
void update(KSNumbers *num) override
we need a custom routine (for now) so we don't precess the locations of the names.
Definition: constellationnamescomponent.cpp:103
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition: skymap.cpp:363
void draw(SkyPainter *skyp) override
Draws the objects in the currently visible trixels by dynamically loading them from the database.
Definition: catalogscomponent.cpp:69
void removeComponent(SkyComponent *const comp)
Remove a sub component from the composite comp Pointer to the SkyComponent to be removed.
Definition: skycomposite.cpp:33
void updateSolarSystemBodies(KSNumbers *num) override
Delegate planet position updates to the SolarSystemComposite.
Definition: skymapcomposite.cpp:228
void draw(SkyPainter *skyp) override
Draw constellation names on the sky map.
Definition: constellationnamescomponent.cpp:112
void update(KSNumbers *num=nullptr) override
Delegate update-position requests to all sub components.
Definition: skymapcomposite.cpp:186
void draw(SkyPainter *skyp) override
Draw the Horizon on the Sky map.
Definition: horizoncomponent.cpp:65
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: terraincomponent.cpp:22
Definition: equator.h:19
const SkyRegion & skyRegion(const SkyPoint &p1, const SkyPoint &p2)
returns the sky region needed to cover the rectangle defined by two SkyPoints p1 and p2
Definition: skymesh.cpp:312
void draw(SkyPainter *skyp) override
Delegate draw requests to all sub components psky Reference to the QPainter on which to paint.
Definition: skycomposite.cpp:51
focus
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: constellationartcomponent.cpp:105
void detailedError(QWidget *parent, const QString &text, const QString &details, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
Highlights objects present in certain lists by drawing "target" symbols around them.
Definition: targetlistcomponent.h:37
Canvas widget for displaying the sky bitmap; also handles user interaction events.
Definition: skymap.h:53
SkyObject * findByName(const QString &name, bool exact=true) override
Search the children of this SkyComponent for a SkyObject whose name matches the argument name the nam...
Definition: listcomponent.cpp:61
SkyObject * objectNearest(SkyPoint *p, double &maxrad) override
Search the nearest satellite from point p.
Definition: satellitescomponent.cpp:211
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: ecliptic.cpp:57
void drawLabels()
draw all the labels in the prioritized LabelLists and then clear the LabelLists.
Definition: starcomponent.cpp:368
SkyObject * objectNearest(SkyPoint *p, double &maxrad) override
Identify the nearest SkyObject to the given SkyPoint, among the children of this SkyComposite p point...
Definition: skycomposite.cpp:75
void objectsInArea(QList< SkyObject * > &list, const SkyRegion ®ion) override
Searches the region(s) and appends the SkyObjects found to the list of sky objects.
Definition: catalogscomponent.cpp:342
SkyMapComposite(SkyComposite *parent=nullptr)
Constructor parent pointer to the parent SkyComponent.
Definition: skymapcomposite.cpp:58
Represents objects loaded from an sqlite backed, trixel indexed catalog.
Definition: catalogscomponent.h:41
Represents a flag on the sky map. Each flag is composed by a SkyPoint where coordinates are stored,...
Definition: flagcomponent.h:33
Definition: hipscomponent.h:22
SkyObject * objectNearest(SkyPoint *p, double &maxrad) override
Find the SkyObject nearest the given SkyPoint.
Definition: catalogscomponent.cpp:371
SkyObject * findByName(const QString &name, bool exact=true) override
Search the underlying database for an object with the name.
Definition: catalogscomponent.cpp:331
Trixel index(const SkyPoint *p)
returns the index of the trixel containing p.
Definition: skymesh.cpp:74
Definition: satellitescomponent.h:23
ButtonCode questionYesNo(QWidget *parent, const QString &text, const QString &title=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const QString &dontAskAgainName=QString(), Options options=Notify)
SkyObject * starNearest(SkyPoint *p, double &maxrad)
Definition: skymapcomposite.cpp:497
SkyObject * findByName(const QString &name, bool exact=true) override
Return object given name.
Definition: satellitescomponent.cpp:246
void dropCache()
Clear the internal cache and effectively reload all objects from the database.
Definition: catalogscomponent.h:111
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: starcomponent.cpp:251
QObject * parent() const const
static void setDrawLock(bool state)
Acquire / release a draw lock.
Definition: skymapdrawabstract.cpp:461
QString message
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: hipscomponent.cpp:28
Provides necessary information about objects in the solar system.
Definition: ksplanetbase.h:49
QList< QSharedPointer< SkyObject > > list2
Pointer to list of objects to draw.
Definition: targetlistcomponent.h:66
Definition: mosaiccomponent.h:23
Database related error, thrown when database access fails or an action does not succeed.
Definition: catalogsdb.h:687
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:58:32 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:58:32 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.