kstars
skymapcomposite.cpp
Go to the documentation of this file.
203 if ( Options::showEquatorialGrid() || Options::showHorizontalGrid() || Options::showCBounds() || Options::showEquator() ) {
267 m_StarHopRouteList->pen = QPen( QColor(data->colorScheme()->colorNamed( "StarHopRouteColor" )), 1. );
455 if ( n == KSPlanetBase::MERCURY ) return (KSPlanetBase*)(m_SolarSystem->findByName( i18n( "Mercury" ) ) );
456 if ( n == KSPlanetBase::VENUS ) return (KSPlanetBase*)(m_SolarSystem->findByName( i18n( "Venus" ) ) );
458 if ( n == KSPlanetBase::MARS ) return (KSPlanetBase*)(m_SolarSystem->findByName( i18n( "Mars" ) ) );
459 if ( n == KSPlanetBase::JUPITER ) return (KSPlanetBase*)(m_SolarSystem->findByName( i18n( "Jupiter" ) ) );
460 if ( n == KSPlanetBase::SATURN ) return (KSPlanetBase*)(m_SolarSystem->findByName( i18n( "Saturn" ) ) );
461 if ( n == KSPlanetBase::URANUS ) return (KSPlanetBase*)(m_SolarSystem->findByName( i18n( "Uranus" ) ) );
462 if ( n == KSPlanetBase::NEPTUNE ) return (KSPlanetBase*)(m_SolarSystem->findByName( i18n( "Neptune" ) ) );
463 if ( n == KSPlanetBase::PLUTO ) return (KSPlanetBase*)(m_SolarSystem->findByName( i18n( "Pluto" ) ) );
492 SkyMapDrawAbstract::setDrawLock( true ); // This is not (yet) multithreaded, so I think we don't have to worry about overwriting the state of an existing lock --asimha
501 // SkyMapDrawAbstract::setDrawLock( 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 update(KSNumbers *)
Update the sky position(s) of this component.
Definition: horizontalcoordinategrid.cpp:112
virtual void draw(SkyPainter *skyp)
Draw the Horizon on the Sky map map Pointer to the SkyMap object psky Reference to the QPainter on wh...
Definition: horizoncomponent.cpp:75
Collection of all the circles in the horizontal coordinate grid.
Definition: horizontalcoordinategrid.h:30
Represents artificial satellites on the sky map.
Definition: satellitescomponent.h:36
Definition: skylabeler.h:129
virtual void update(KSNumbers *)
Update the sky positions of this component.
Definition: horizoncomponent.cpp:61
virtual void updateMoons(KSNumbers *num)
Delegate moon position updates to the SolarSystemComposite.
Definition: skymapcomposite.cpp:159
Definition: ksplanetbase.h:82
virtual void updatePlanets(KSNumbers *num)
Delegate planet position updates to the SolarSystemComposite.
Definition: skymapcomposite.cpp:154
Highlights objects present in certain lists by drawing "target" symbols around them.
Definition: skycomponents/targetlistcomponent.h:50
A subclass of KSPlanetBase for seven of the major planets in the solar system (Earth and Pluto have t...
Definition: ksplanet.h:40
static void setDrawLock(bool state)
Acquire / release a draw lock.
Definition: skymapdrawabstract.cpp:346
const QList< SkyObject * > & comets() const
Definition: solarsystemcomposite.cpp:118
const QList< SkyObject * > & asteroids() const
Definition: skymapcomposite.cpp:568
Definition: ksplanetbase.h:82
const QList< DeepSkyObject * > & objectList() const
Definition: deepskycomponent.h:106
Represents the deep sky objects separated by catalogs.
Definition: deepskycomponent.h:55
Definition: ksplanetbase.h:82
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition: skymap.cpp:361
SkyObject * findStarByGenetiveName(const QString name)
Definition: skymapcomposite.cpp:449
const QList< DeepSkyObject * > & deepSkyObjects() const
Definition: skymapcomposite.cpp:554
virtual void draw(SkyPainter *skyp)
Delegate draw requests to all sub components psky Reference to the QPainter on which to paint...
Definition: skymapcomposite.cpp:170
virtual void draw(SkyPainter *skyp)
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: milkyway.cpp:69
virtual void updateMoons(KSNumbers *num)
Definition: solarsystemcomposite.cpp:97
const QList< SkyObject * > & constellationNames() const
Definition: skymapcomposite.cpp:558
Represents the constellation names on the sky map.
Definition: constellationnamescomponent.h:34
QList< SkyObject * > findObjectsInArea(const SkyPoint &p1, const SkyPoint &p2)
Definition: skymapcomposite.cpp:413
SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Search the nearest satellite from point p.
Definition: satellitescomponent.cpp:156
QColor colorNamed(const QString &name) const
Retrieve a color by name.
Definition: colorscheme.cpp:97
virtual void update(KSNumbers *num=0)
Delegate update-position requests to all sub components.
Definition: skycomposite.cpp:50
void setCurrentCulture(QString culture)
Definition: skymapcomposite.cpp:597
Definition: ksplanetbase.h:82
virtual void draw(SkyPainter *skyp)
Delegate draw requests to all sub components psky Reference to the QPainter on which to paint...
Definition: skycomposite.cpp:43
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Find the SkyObject nearest the given SkyPoint.
Definition: starcomponent.cpp:571
SkyObject * starNearest(SkyPoint *p, double &maxrad)
Definition: skymapcomposite.cpp:379
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Definition: skymapcomposite.cpp:309
virtual void draw(SkyPainter *skyp)
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: deepskycomponent.cpp:363
virtual SkyObject * findByName(const QString &name)
Search the children of this SkyComponent for a SkyObject whose name matches the argument name the nam...
Definition: deepskycomponent.cpp:495
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Find the SkyObject nearest the given SkyPoint.
Definition: deepskycomponent.cpp:521
Collection of all the circles in the equatorial coordinate grid.
Definition: equatorialcoordinategrid.h:30
void addCustomCatalog(const QString &filename, int index)
Definition: skymapcomposite.cpp:468
void addComponent(SkyComponent *comp)
Add a new sub component to the composite comp Pointer to the SkyComponent to be added.
Definition: skycomposite.cpp:31
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Find the SkyObject nearest the given SkyPoint.
Definition: supernovaecomponent.cpp:148
virtual void draw(SkyPainter *skyp)
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: flagcomponent.cpp:49
virtual SkyObject * findByName(const QString &name)
Search the children of this SkyComponent for a SkyObject whose name matches the argument name the nam...
Definition: listcomponent.cpp:54
virtual void update(KSNumbers *num)
Delegate update-position requests to all sub components.
Definition: solarsystemcomposite.cpp:75
virtual void objectsInArea(QList< SkyObject * > &list, const SkyRegion ®ion)
Searches the region(s) and appends the SkyObjects found to the list of sky objects.
Definition: starcomponent.cpp:514
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:66
SkyMapComposite(SkyComposite *parent)
Constructor parent pointer to the parent SkyComponent.
Definition: skymapcomposite.cpp:58
virtual void updatePlanets(KSNumbers *num)
Definition: solarsystemcomposite.cpp:89
SkyComposite(SkyComposite *parent)
Constructor parent pointer to the parent SkyComponent.
Definition: skycomposite.cpp:22
SkyPoint * focus()
Retrieve the Focus point; the position on the sky at the center of the skymap.
Definition: skymap.h:120
static bool showCBounds()
Get Draw constellation boundaries in the sky map?
Definition: Options.h:1550
void useStdFont()
sets the font in SkyLabeler and in psky to the font psky had originally when reset() was called...
Definition: skylabeler.cpp:185
const QList< SkyObject * > & comets() const
Definition: skymapcomposite.cpp:572
virtual void draw(SkyPainter *skyp)
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: equator.cpp:68
void reset(SkyMap *skyMap)
clears the virtual screen (if needed) and resizes the virtual screen (if needed) to match skyMap...
Definition: skylabeler.cpp:209
Definition: ksplanetbase.h:82
SupernovaeComponent * supernovaeComponent()
Definition: skymapcomposite.cpp:618
virtual void draw(SkyPainter *skyp)
Draw this component by iterating over the list.
Definition: skycomponents/targetlistcomponent.cpp:70
const QList< SkyObject * > & stars() const
Definition: skymapcomposite.cpp:563
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Identify the nearest SkyObject to the given SkyPoint, among the children of this SkyComposite p point...
Definition: skycomposite.cpp:64
const QList< SkyObject * > & objectList() const
Definition: listcomponent.h:61
void removeComponent(SkyComponent *comp)
Remove a sub component from the composite comp Pointer to the SkyComponent to be removed.
Definition: skycomposite.cpp:36
static bool showHorizontalGrid()
Get Draw horizontal coordinate grid in the sky map?
Definition: Options.h:1721
void draw(SkyPainter *skyp)
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: starcomponent.cpp:232
virtual SkyObject * findByName(const QString &name)
Search the children of this SkyComponent for a SkyObject whose name matches the argument name the nam...
Definition: supernovaecomponent.cpp:137
QList< SkyComponent * > customCatalogs()
Definition: skymapcomposite.cpp:585
const QList< SkyObject * > & asteroids() const
Definition: solarsystemcomposite.cpp:114
bool isLocalCNames()
Return true if we are using localized constellation names.
Definition: constellationnamescomponent.h:68
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
static StarComponent * Create(SkyComposite *)
Create an instance of StarComponent.
Definition: starcomponent.cpp:86
static bool obsListSymbol()
Get Use symbols to label observing list objects.
Definition: Options.h:2778
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:372
Definition: skymesh.h:52
Definition: ksplanetbase.h:82
void progressText(const QString &message)
Definition: ksplanetbase.h:82
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
Definition: skymesh.h:54
virtual void update(KSNumbers *num)
we need a custom routine (for now) so we don't precess the locations of the names.
Definition: constellationnamescomponent.cpp:102
void setClickedPoint(SkyPoint *f)
Set the ClickedPoint to the skypoint given as an argument.
Definition: skymap.cpp:829
Definition: skyobject.h:110
static QStringList showCatalogNames()
Get List for displaying custom object catalogs.
Definition: Options.h:467
SolarSystemComposite * solarSystemComposite()
Definition: skymapcomposite.cpp:613
virtual void update(KSNumbers *num=0)
Update the sky positions of this component.
Definition: supernovaecomponent.cpp:40
Definition: constellationlines.h:36
virtual SkyObject * findByName(const QString &name)
Search the children of this SkyMapComposite for a SkyObject whose name matches the argument...
Definition: skymapcomposite.cpp:426
A subclass of TrailObject that provides additional information needed for most solar system objects...
Definition: ksplanetbase.h:63
const QList< SkyObject * > & supernovae() const
Definition: skymapcomposite.cpp:576
virtual void update(KSNumbers *num)
Update satellites position.
Definition: satellitescomponent.cpp:68
Definition: milkyway.h:35
Definition: ksplanetbase.h:82
virtual void draw(SkyPainter *skyp)
Draw constellation names on the sky map.
Definition: constellationnamescomponent.cpp:111
void removeCustomCatalog(const QString &name)
Definition: skymapcomposite.cpp:477
bool removeNameLabel(SkyObject *o)
Definition: skymapcomposite.cpp:401
virtual void objectsInArea(QList< SkyObject * > &list, const SkyRegion ®ion)
Searches the region(s) and appends the SkyObjects found to the list of sky objects.
Definition: deepskycomponent.cpp:500
SkyObject * clickedObject() const
Retrieve the object nearest to a mouse click event.
Definition: skymap.h:214
Definition: ksplanetbase.h:82
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
virtual void update(KSNumbers *num=0)
Delegate update-position requests to all sub components.
Definition: skymapcomposite.cpp:117
Definition: ksplanetbase.h:82
static bool showEquatorialGrid()
Get Draw equatorial coordinate grid in the sky map?
Definition: Options.h:1702
void drawObjectLabels(QList< SkyObject * > &labelObjects)
Proxy method for SkyMapDrawAbstract::drawObjectLabels()
Definition: skymap.h:279
The solar system composite manages all planets, asteroids and comets.
Definition: solarsystemcomposite.h:41
virtual void emitProgressText(const QString &message)
Emit signal about progress.
Definition: skymapcomposite.cpp:548
virtual SkyObject * findStarByGenetiveName(const QString name)
Definition: starcomponent.cpp:498
virtual void draw(SkyPainter *skyp)
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: ecliptic.cpp:66
virtual void draw(SkyPainter *skyp)
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: linelistindex.cpp:162
static void AddLabel(SkyObject *obj, label_t type)
static version of addLabel() below.
Definition: skylabeler.h:149
virtual SkyObject * findByName(const QString &name)
Search the children of this SkyComposite for a SkyObject whose name matches the argument.
Definition: skycomposite.cpp:56
Definition: skymesh.h:53
virtual SkyObject * findByName(const QString &name)
Find stars by name (including genetive name)
Definition: starcomponent.cpp:503
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.