kstars
skymapdrawabstract.cpp
Go to the documentation of this file.
100 m_SkyMap->m_proj->toScreen( m_SkyMap->AngularRuler.point(0) ), // FIXME: More ugliness. m_proj should probably be a single-instance class, or we should have our own instance etc.
101 m_SkyMap->m_proj->toScreen( m_SkyMap->AngularRuler.point(1) ) ); // FIXME: Again, AngularRuler should be something better -- maybe a class in itself. After all it's used for more than one thing after we integrate the StarHop feature.
108 p.drawRect( m_SkyMap->ZoomRect.x(), m_SkyMap->ZoomRect.y(), m_SkyMap->ZoomRect.width(), m_SkyMap->ZoomRect.height() );
113 bool checkSlewing = ( m_SkyMap->slewing || ( m_SkyMap->clockSlewing && m_KStarsData->clock()->isActive() ) ) && Options::hideOnSlew();
124 bool drawMessier = Options::showDeepSky() && ( Options::showMessier() || Options::showMessierImages() ) && !(checkSlewing && Options::hideMessier() );
125 bool drawNGC = Options::showDeepSky() && Options::showNGC() && !(checkSlewing && Options::hideNGC() );
126 bool drawIC = Options::showDeepSky() && Options::showIC() && !(checkSlewing && Options::hideIC() );
127 bool drawOther = Options::showDeepSky() && Options::showOther() && !(checkSlewing && Options::hideOther() );
133 QPointF o = m_SkyMap->m_proj->toScreen( m_SkyMap->focusObject() ); // FIXME: Same thing. m_proj should be accessible here.
140 if ( obj->type() == SkyObject::STAR || obj->type() == SkyObject::CATALOG_STAR || obj->type() == SkyObject::MULT_STAR ) {
171 if ( ! m_SkyMap->m_proj->checkVisibility( obj ) ) continue; // FIXME: m_proj should be a member of this class.
316 painter->setVectorStars( true ); // Since we are exporting an image, we may use vector stars without worrying about time
SkyMapDrawAbstract(SkyMap *sm)
Constructor that sets data and m_SkyMap, and initializes the FPS counters.
Definition: skymapdrawabstract.cpp:61
bool onScreen(const QPointF &p) const
Check whether the projected point is on-screen.
Definition: projector.cpp:98
static void setDrawLock(bool state)
Acquire / release a draw lock.
Definition: skymapdrawabstract.cpp:346
Definition: skyobject.h:108
virtual INDI::BaseDevice * getBaseDevice()=0
void drawOverlays(QPainter &p, bool drawFov=true)
Draw the overlays on top of the sky map.
Definition: skymapdrawabstract.cpp:67
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
static bool showTargetCrosshair()
Get Draw crosshairs at telescope position in the sky map?
Definition: Options.h:524
Definition: skyobject.h:109
QColor colorNamed(const QString &name) const
Retrieve a color by name.
Definition: colorscheme.cpp:97
Definition: skyobject.h:110
void drawObjectLabels(QList< SkyObject * > &labelObjects)
Draw "user labels".
Definition: skymapdrawabstract.cpp:112
Definition: skyobject.h:110
bool isActive()
Whether the clock is active or not is a bit complicated by the introduction of "manual mode"...
Definition: simclock.cpp:97
bool checkVisibility(SkyPoint *p) const
Determine if the skypoint p is likely to be visible in the display window.
Definition: projector.cpp:181
void exportSkyImage(QPaintDevice *pd, bool scale=false)
Draw the current Sky map to a pixmap which is to be printed or exported to a file.
Definition: skymapdrawabstract.cpp:302
Definition: skyobject.h:111
void drawAngleRuler(QPainter &psky)
Draw a dashed line from the Angular-Ruler start point to the current mouse cursor, when in Angular-Ruler mode.
Definition: skymapdrawabstract.cpp:96
QPointF toScreen(const SkyPoint *o, bool oRefract=true, bool *onVisibleHemisphere=0) const
This is exactly the same as toScreenVec but it returns a QPointF.
Definition: projector.cpp:93
void drawTelescopeSymbols(QPainter &psky)
Draw symbols at the position of each Telescope currently being controlled by KStars.
Definition: skymapdrawabstract.cpp:181
void drawZoomBox(QPainter &psky)
Draw a dotted-line rectangle which traces the potential new field-of-view in ZoomBox mode...
Definition: skymapdrawabstract.cpp:104
void useStdFont()
sets the font in SkyLabeler and in psky to the font psky had originally when reset() was called...
Definition: skylabeler.cpp:185
static bool showSolarSystem()
Get Meta-option for all planets in the sky map.
Definition: Options.h:1930
void EquatorialToHorizontal(const dms *LST, const dms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates, given the local sidereal time and the observer's latitude.
Definition: skypoint.cpp:55
void calculateFPS()
Calculate FPS and dump result to stderr using kDebug.
Definition: skymapdrawabstract.cpp:335
Provides all necessary information about a deep-sky object: data inherited from SkyObject (coordinate...
Definition: deepskyobject.h:43
virtual DeviceFamily getType()=0
static bool showMessierImages()
Get Draw Messier object images in the sky map?
Definition: Options.h:1854
Definition: skyobject.h:111
void setPen(const QPen &pen)
sets the pen used for drawing labels on the sky.
Definition: skylabeler.cpp:173
Definition: skyobject.h:110
bool drawNameLabel(SkyObject *obj, const QPointF &_p)
Tries to draw a label for an object.
Definition: skylabeler.cpp:151
void resetFont()
sets the font in SkyLabeler and in psky back to the zoom dependent value that was set in reset()...
Definition: skylabeler.cpp:190
The purpose of this class is to prevent labels from overlapping.
Definition: skylabeler.h:112
Definition: indicommon.h:66
Definition: skyobject.h:111
SkyObject * focusObject() const
Retrieve the object which is centered in the sky map.
Definition: skymap.h:229
Definition: skyobject.h:108
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
Definition: skyobject.h:108
Definition: skyobject.h:108
Definition: indistd.h:48
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.