• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • skycomponents
pointlistcomponent.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  listcomponent.cpp - K Desktop Planetarium
3  -------------------
4  begin : 2005/10/01
5  copyright : (C) 2005 by Jason Harris
6  email : kstars@30doradus.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "pointlistcomponent.h"
19 
20 #include "skyobjects/skypoint.h"
21 #include "kstarsdata.h"
22 
23 PointListComponent::PointListComponent( SkyComposite *parent ) :
24  SkyComponent( parent )
25 {}
26 
27 PointListComponent::~PointListComponent()
28 {
29  qDeleteAll( pointList() );
30 }
31 
32 void PointListComponent::update( KSNumbers *num )
33 {
34  if ( ! selected() )
35  return;
36  KStarsData *data = KStarsData::Instance();
37  foreach( SkyPoint *p, pointList() ) {
38  if( num )
39  p->updateCoords( num );
40  p->EquatorialToHorizontal( data->lst(), data->geo()->lat() );
41  }
42 }
PointListComponent::PointListComponent
PointListComponent(SkyComposite *parent)
Definition: pointlistcomponent.cpp:23
KStarsData
KStarsData is the backbone of KStars.
Definition: kstarsdata.h:66
KStarsData::lst
dms * lst()
Definition: kstarsdata.h:161
KStarsData::Instance
static KStarsData * Instance()
Definition: kstarsdata.h:92
SkyComponent
SkyComponent represents an object on the sky map.
Definition: skycomponent.h:44
SkyPoint::updateCoords
virtual void updateCoords(KSNumbers *num, bool includePlanets=true, const dms *lat=0, const dms *LST=0, bool forceRecompute=false)
Determine the current coordinates (RA, Dec) from the catalog coordinates (RA0, Dec0), accounting for both precession and nutation.
Definition: skypoint.cpp:317
PointListComponent::~PointListComponent
virtual ~PointListComponent()
Definition: pointlistcomponent.cpp:27
KStarsData::geo
GeoLocation * geo()
Definition: kstarsdata.h:164
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
skypoint.h
PointListComponent::pointList
QList< SkyPoint * > & pointList()
Definition: pointlistcomponent.h:58
SkyPoint::EquatorialToHorizontal
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
pointlistcomponent.h
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
GeoLocation::lat
const dms * lat() const
Definition: geolocation.h:79
kstarsdata.h
PointListComponent::update
virtual void update(KSNumbers *num=0)
Update the sky positions of this component.
Definition: pointlistcomponent.cpp:32
SkyComponent::selected
virtual bool selected()
Definition: skycomponent.h:79
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal