• 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
  • skyobjects
skyline.h
Go to the documentation of this file.
1 /***************************************************************************
2  skyline.h - K Desktop Planetarium
3  -------------------
4  begin : Mon June 26 2006
5  copyright : (C) 2006 by Jason Harris
6  email : kstarss@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 #ifndef SKYLINE_H_
19 #define SKYLINE_H_
20 
21 #include "skypoint.h"
22 
23 class dms;
24 class KStarsData;
25 
38 class SkyLine {
39 public:
41  SkyLine();
42 
44  ~SkyLine();
45 
49  void append( SkyPoint *p );
50 
54  inline SkyPoint* point( int i ) const { return m_pList[i]; }
55 
56  inline QList<SkyPoint*>& points() { return m_pList; }
57 
59  void clear();
60 
65  void setPoint( int i, SkyPoint *p );
66 
71  dms angularSize( int i=0 ) const;
72 
73  void update( KStarsData *data, KSNumbers *num=0 );
74 
75 private:
76  QList<SkyPoint*> m_pList;
77 };
78 
79 #endif
KStarsData
KStarsData is the backbone of KStars.
Definition: kstarsdata.h:66
SkyLine::update
void update(KStarsData *data, KSNumbers *num=0)
Definition: skyline.cpp:71
SkyLine::clear
void clear()
Remove all points from list.
Definition: skyline.cpp:29
SkyLine::setPoint
void setPoint(int i, SkyPoint *p)
Set point i in the SkyLine.
Definition: skyline.cpp:38
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
SkyLine::angularSize
dms angularSize(int i=0) const
Definition: skyline.cpp:46
SkyLine
A series of connected line segments in the sky, composed of SkyPoints at its vertices.
Definition: skyline.h:38
dms
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:42
SkyLine::SkyLine
SkyLine()
Default Constructor (empty).
Definition: skyline.cpp:22
skypoint.h
SkyLine::point
SkyPoint * point(int i) const
Definition: skyline.h:54
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
SkyLine::~SkyLine
~SkyLine()
Destructor.
Definition: skyline.cpp:25
SkyLine::points
QList< SkyPoint * > & points()
Definition: skyline.h:56
SkyLine::append
void append(SkyPoint *p)
Append a segment to the list by adding a new endpoint.
Definition: skyline.cpp:34
QList
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