• 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
noprecessindex.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  noprecessindex.h - K Desktop Planetarium
3  -------------------
4  begin : 2007-08-04
5  copyright : (C) 2007 James B. Bowlin
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 "noprecessindex.h"
19 #include "Options.h"
20 #include "skyobjects/skypoint.h"
21 #include "kstarsdata.h"
22 #include "linelist.h"
23 
24 NoPrecessIndex::NoPrecessIndex( SkyComposite *parent, const QString& name ) :
25  LineListIndex( parent, name )
26 {}
27 
28 // Don't precess the points, just account for the Earth's rotation
29 void NoPrecessIndex::JITupdate( LineList* lineList )
30 {
31  KStarsData *data = KStarsData::Instance();
32  lineList->updateID = data->updateID();
33  SkyList* points = lineList->points();
34  for (int i = 0; i < points->size(); i++ ) {
35  points->at( i )->EquatorialToHorizontal( data->lst(), data->geo()->lat() );
36  }
37 }
SkyList
QVector< SkyPoint * > SkyList
Definition: skycomponents/typedef.h:45
KStarsData
KStarsData is the backbone of KStars.
Definition: kstarsdata.h:66
KStarsData::updateID
unsigned int updateID()
Definition: kstarsdata.h:224
NoPrecessIndex::JITupdate
virtual void JITupdate(LineList *lineList)
Definition: noprecessindex.cpp:29
KStarsData::lst
dms * lst()
Definition: kstarsdata.h:161
KStarsData::Instance
static KStarsData * Instance()
Definition: kstarsdata.h:92
KStarsData::geo
GeoLocation * geo()
Definition: kstarsdata.h:164
LineList
Definition: linelist.h:35
LineList::points
SkyList * points()
Definition: linelist.h:53
linelist.h
noprecessindex.h
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
skypoint.h
NoPrecessIndex::NoPrecessIndex
NoPrecessIndex(SkyComposite *parent, const QString &name)
Definition: noprecessindex.cpp:24
Options.h
GeoLocation::lat
const dms * lat() const
Definition: geolocation.h:79
LineListIndex
Definition: linelistindex.h:39
kstarsdata.h
LineList::updateID
UpdateID updateID
Definition: linelist.h:47
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