kstars
skymap.cpp
Go to the documentation of this file.
393 QString message = i18n( "The requested position is below the horizon.\nWould you like to go there anyway?" );
395 KGuiItem(i18n("Go Anyway")), KGuiItem(i18n("Keep Position")), "dag_focus_below_horiz" )==KMessageBox::No ) {
438 //ra and dec must be the coordinates at J2000. If we clicked on an object, just use the object's ra0, dec0 coords
454 i18n( "Digitized Sky Survey image provided by the Space Telescope Science Institute [public domain]." ),
470 //ra and dec must be the coordinates at J2000. If we clicked on an object, just use the object's ra0, dec0 coords
490 i18n( "Sloan Digital Sky Survey image provided by the Astrophysical Research Consortium [free for non-commercial use]." ),
564 // Exactly 1 FOV symbol visible, so use that. Also assume a circular FOV of size min{sizeX, sizeY}
574 nameToFovMap.insert( f->name(), ( ( f->sizeX() >= f->sizeY() && f->sizeY() != 0) ? f->sizeY() : f->sizeX() ) );
576 fov = nameToFovMap[ QInputDialog::getItem( this, i18n("Star Hopper: Choose a field-of-view"), i18n("FOV to use for star hopping:"), nameToFovMap.uniqueKeys(), 0, false, &ok ) ];
580 fov = QInputDialog::getDouble( this, i18n("Star Hopper: Enter field-of-view to use"), i18n("FOV to use for star hopping (in arcminutes):"), 60.0, 1.0, 600.0, 1, &ok );
589 QList<const StarObject *> path = hopper.computePath( startHop, stopHop, fov/60.0, 9.0 ); // FIXME: Hardcoded magnitude limits for testing
650 if( i18nc( "Image/info menu item (should be translated)", clickedObject()->ImageTitle().at( i ).toLocal8Bit().data() ) == message ) {
679 if( i18nc( "Image/info menu item (should be translated)", clickedObject()->InfoTitle().at( i ).toLocal8Bit().data() ) == message ) {
708 // FIXME: subtraction of these 0.00001 is a simple workaround, because wrong SkyPoint is returned when _exact_ center of
710 retVal = projector()->fromScreen( QPointF(width() / 2 - 0.00001, height() / 2 - 0.00001), data->lst(), data->geo()->lat() );
746 DetailDialog* detail = new DetailDialog( clickedObject(), data->ut(), data->geo(), KStars::Instance() );
983 // if now=true, SkyMap::paintEvent() is run immediately, rather than being added to the event queue
1089 file.setFileName( KStandardDirs::locateLocal( "appdata", "image_url.dat" ) ); //determine filename in local user KDE directory tree.
1092 QString message = i18n( "Custom image-links file could not be opened.\nLink cannot be recorded for future sessions." );
1108 file.setFileName( KStandardDirs::locateLocal( "appdata", "info_url.dat" ) ); //determine filename in local user KDE directory tree.
1111 QString message = i18n( "Custom information-links file could not be opened.\nLink cannot be recorded for future sessions." );
1150 KStars::Instance()->actionCollection()->action( "opengl" )->setText(i18n("Switch to OpenGL backend"));
1154 QString message = i18n("This version of KStars comes with new experimental OpenGL support. Our experience is that OpenGL works "
1155 "much faster on machines with hardware acceleration. Would you like to switch to OpenGL painting backends?");
1165 KMessageBox::information( this, i18n("Infoboxes will be disabled as they do not work correctly when using OpenGL backends as of this version"),
1172 KStars::Instance()->actionCollection()->action( "opengl" )->setText(i18n("Switch to QPainter backend"));
1260 *xplanetProc << "-latitude" << Options::xplanetLatitude() << "-longitude" << Options::xplanetLongitude();
SkyPoint deprecess(const KSNumbers *num, long double epoch=J2000)
Obtain a Skypoint with RA0 and Dec0 set from the RA, Dec of this skypoint.
Definition: skypoint.cpp:190
void slotClockSlewing()
Checks whether the timestep exceeds a threshold value.
Definition: skymap.cpp:777
static bool shadeFocusBox()
Get Is the focus InfoBox in the "shaded" state?
Definition: Options.h:108
window showing detailed information for a selected object.
Definition: detaildialog.h:88
void set(const dms &r, const dms &d)
Sets RA, Dec and RA0, Dec0 according to arguments.
Definition: skypoint.cpp:46
Definition: skymap.h:97
void setManualMode(bool on=true)
Sets Manual Mode on/off according to the bool argument.
Definition: simclock.cpp:73
static QString xplanetWaitValue()
Get Number of seconds to wait before updating.
Definition: Options.h:3951
Highlights objects present in certain lists by drawing "target" symbols around them.
Definition: skycomponents/targetlistcomponent.h:50
static void setPositionFocusBox(const QPoint &v)
Set Position of the focus InfoBox.
Definition: Options.h:41
static void setShadeGeoBox(bool v)
Set Is the geographic InfoBox in the "shaded" state?
Definition: Options.h:117
Definition: orthographicprojector.h:27
bool isManualMode() const
Manual Mode is a new (04/2002) addition to the SimClock.
Definition: simclock.h:72
void setFocusObject(SkyObject *o)
Set the FocusObject pointer to the argument.
Definition: skymap.cpp:365
void slotInfo()
Popup menu function: Show webpage about ClickedObject (only available for some objects).
Definition: skymap.cpp:672
void setDestination(const SkyPoint &f)
sets the destination point of the sky map.
Definition: skymap.cpp:812
static double refract(const double alt)
Apply refraction correction to altitude.
Definition: skypoint.cpp:765
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition: skymap.cpp:361
Definition: skymap.h:101
static void setPositionGeoBox(const QPoint &v)
Set Position of the geographic InfoBox.
Definition: Options.h:60
Definition: lambertprojector.h:28
QList< StarObject const * > computePath(const SkyPoint &src, const SkyPoint &dest, float fov_, float maglim_)
Definition: starhopper.cpp:30
void slotDetail()
Popup menu function: Show the Detailed Information window for ClickedObject.
Definition: skymap.cpp:740
QColor colorNamed(const QString &name) const
Retrieve a color by name.
Definition: colorscheme.cpp:97
void forceUpdate(bool now=false)
Recalculates the positions of objects in the sky, and then repaints the sky map.
Definition: skymap.cpp:985
static void setPositionTimeBox(const QPoint &v)
Set Position of the time InfoBox.
Definition: Options.h:22
void pointingDone(SkyObject *obj)
Quit object pointing mode and set the pointed object.
Definition: printingwizard.cpp:111
void slotRemoveObjectLabel()
Remove ClickedObject from KStarsData::ObjLabelList, which stores pointers to SkyObjects which have Us...
Definition: skymap.cpp:714
Definition: infoboxwidget.h:31
Definition: skymap.h:96
static void setShadeTimeBox(bool v)
Set Is the time InfoBox in the "shaded" state?
Definition: Options.h:79
static bool useAnimatedSlewing()
Get Use animated slewing effects when changing focus position?
Definition: Options.h:961
void addLink()
Popup menu function: Add a custom Image or Information URL.
Definition: skymap.cpp:1074
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Definition: skymapcomposite.cpp:309
void slotAddFlag()
Open Flag Manager window with clickedObject() RA and Dec entered.
Definition: skymap.cpp:614
static bool shadeGeoBox()
Get Is the geographic InfoBox in the "shaded" state?
Definition: Options.h:127
bool isActive()
Whether the clock is active or not is a bit complicated by the introduction of "manual mode"...
Definition: simclock.cpp:97
void slotBeginAngularDistance()
Enables the angular distance measuring mode.
Definition: skymap.cpp:496
void slotEndRulerMode()
Computes the angular distance, prints the result in the status bar and disables the angular distance ...
Definition: skymap.cpp:524
static double slewTimeScale()
Get Minimum timescale for forced-slewing mode.
Definition: Options.h:2272
void showFocusCoords()
Update object name and coordinates in the Focus InfoBox.
Definition: skymap.cpp:331
SkyPoint * focus()
Retrieve the Focus point; the position on the sky at the center of the skymap.
Definition: skymap.h:120
QString getDSSURL(const SkyPoint *const p)
Create a URL to obtain a DSS image for a given SkyPoint.
static void setShadeFocusBox(bool v)
Set Is the focus InfoBox in the "shaded" state?
Definition: Options.h:98
virtual SkyPoint fromScreen(const QPointF &p, dms *LST, const dms *lat) const
Determine RA, Dec coordinates of the pixel at (dx, dy), which are the screen pixel coordinate offsets...
Definition: projector.cpp:353
QString messageFromTitle(const QString &imageTitle)
Given the Image title from a URL file, try to convert it to an image credit string.
Definition: skyobject.cpp:374
void slotImage()
Popup menu function: Show image of ClickedObject (only available for some objects).
Definition: skymap.cpp:643
i18nc("string from libindi, used in the config dialog","100x")
void setFocusAltAz(const dms &alt, const dms &az)
sets the focus point of the sky map, using its alt/az coordinates
Definition: skymap.cpp:801
void updateTime(const bool automaticDSTchange=true)
Update time-dependent data and (possibly) repaint the sky map.
Definition: kstars.cpp:334
void HorizontalToEquatorial(const dms *LST, const dms *lat)
Determine the (RA, Dec) coordinates of the SkyPoint from its (Altitude, Azimuth) coordinates, given the local sidereal time and the observer's latitude.
Definition: skypoint.cpp:102
void mousePointChanged(SkyPoint *)
Emitted when position under mouse changed.
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 destinationChanged()
Emitted by setDestination(), and connected to slewFocus().
Small optianally transparent box for display of text messages.
Definition: infoboxwidget.h:48
static void setZoomFactor(double v)
Set Zoom Factor, in pixels per radian.
Definition: Options.h:2509
Definition: skymap.h:99
static bool useRefraction()
Get Correct positions for atmospheric refraction?
Definition: Options.h:2462
static bool showInfoBoxes()
Get Meta-option to toggle display of all InfoBoxes.
Definition: Options.h:146
static void setShowInfoBoxes(bool v)
Set Meta-option to toggle display of all InfoBoxes.
Definition: Options.h:136
void setClickedPoint(SkyPoint *f)
Set the ClickedPoint to the skypoint given as an argument.
Definition: skymap.cpp:829
void slotAddObjectLabel()
Add ClickedObject to KStarsData::ObjLabelList, which stores pointers to SkyObjects which have User La...
Definition: skymap.cpp:719
void setSnapNextFocus(bool b=true)
Disable or re-enable the slewing animation for the next Focus change.
Definition: kstarsdata.h:194
void slotDSS()
Popup menu function: Display 1st-Generation DSS image with the Image Viewer.
Definition: skymap.cpp:434
void slotEditFlag(int flagIdx)
Open Flag Manager window with selected flag focused and ready to edit.
Definition: skymap.cpp:623
void updateFocus()
Update the focus position according to current options.
Definition: skymap.cpp:833
Definition: skymap.h:100
bool removeNameLabel(SkyObject *o)
Definition: skymapcomposite.cpp:401
SkyObject * clickedObject() const
Retrieve the object nearest to a mouse click event.
Definition: skymap.h:214
void append(SkyPoint *p)
Append a segment to the list by adding a new endpoint.
Definition: skyline.cpp:34
void setFocusPoint(SkyPoint *f)
set the FocusPoint; the position that is to be the next Destination.
Definition: skymap.h:191
SkyObject * focusObject() const
Retrieve the object which is centered in the sky map.
Definition: skymap.h:229
Definition: skymap.h:98
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
static bool useAutoTrail()
Get Automatically add trail to centered solar system body?
Definition: Options.h:2424
void slotSDSS()
Popup menu function: Display Sloan Digital Sky Survey image with the Image Viewer.
Definition: skymap.cpp:460
void setDestinationAltAz(const dms &alt, const dms &az)
sets the destination point of the sky map, using its alt/az coordinates.
Definition: skymap.cpp:822
Definition: gnomonicprojector.h:27
void setViewParams(const ViewParams &p)
Update cached values for projector.
Definition: projector.cpp:60
This is just a container that holds infromation needed to do projections.
Definition: projector.h:37
bool fillGround
If the ground is filled, then points below horizon are invisible.
Definition: projector.h:44
TargetListComponent * getStarHopRouteList()
Definition: skymapcomposite.h:195
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.