• 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
constellationlines.h
Go to the documentation of this file.
1 /***************************************************************************
2  constellationlines.h - K Desktop Planetarium
3  -------------------
4  begin : 25 Oct. 2005
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 #ifndef CONSTELLATIONLINES_H
19 #define CONSTELLATIONLINES_H
20 
21 #include <QHash>
22 
23 #include "linelistindex.h"
24 #include "ksnumbers.h"
25 
26 class CultureList;
27 
28 /*
29 *@class ConstellationLines
30 *Collection of lines making the 88 constellations
31 
32 *@author Jason Harris
33 *@version 0.1
34 */
35 
36 class ConstellationLines : public LineListIndex
37 {
38 
39 public:
40  /* @short Constructor
41  * @p parent Pointer to the parent SkyComposite object
42  *
43  * Constellation lines data is read from clines.dat.
44  * Each line in the file contains a command character ("M" means move to
45  * this position without drawing a line, "D" means draw a line from
46  * the previous position to this one), followed by the genetive name of
47  * a star, which marks the position of the constellation node.
48  */
49  ConstellationLines( SkyComposite *parent, CultureList* cultures );
50 
51  void reindex( KSNumbers *num );
52 
53 protected:
54  const IndexHash& getIndexHash(LineList* lineList );
55 
56  /* @short we need to override the update routine because stars are
57  * updated differently from mere SkyPoints.
58  */
59  virtual void JITupdate( LineList* lineList );
60 
61  /* @short Set the QColor and QPen for drawing. */
62  virtual void preDraw( SkyPainter* skyp );
63 
64  bool selected();
65 
66 private:
67 
68  KSNumbers m_reindexNum;
69  double m_reindexInterval;
70 
71 };
72 
73 
74 #endif
SkyComponent::parent
SkyComposite * parent()
Definition: skycomponent.h:82
ConstellationLines::preDraw
virtual void preDraw(SkyPainter *skyp)
Definition: constellationlines.cpp:126
ConstellationLines::selected
bool selected()
Definition: constellationlines.cpp:120
LineList
Definition: linelist.h:35
linelistindex.h
ksnumbers.h
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
ConstellationLines::reindex
void reindex(KSNumbers *num)
Definition: constellationlines.cpp:152
LineListIndex
Definition: linelistindex.h:39
ConstellationLines
Definition: constellationlines.h:36
ConstellationLines::JITupdate
virtual void JITupdate(LineList *lineList)
Definition: constellationlines.cpp:140
IndexHash
QHash< Trixel, bool > IndexHash
Definition: skycomponents/typedef.h:46
ConstellationLines::ConstellationLines
ConstellationLines(SkyComposite *parent, CultureList *cultures)
Definition: constellationlines.cpp:40
ConstellationLines::getIndexHash
const IndexHash & getIndexHash(LineList *lineList)
Definition: constellationlines.cpp:133
SkyPainter
Draws things on the sky, without regard to backend.
Definition: skypainter.h:47
CultureList
A list of all cultures.
Definition: culturelist.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 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