1
/***************************************************************************
2
constellationlines.h - K Desktop Planetarium
5
copyright : (C) 2005 by Jason Harris
6
email : kstars@30doradus.org
7
***************************************************************************/
9
/***************************************************************************
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. *
16
***************************************************************************/
18
#ifndef CONSTELLATIONLINES_H
19
#define CONSTELLATIONLINES_H
23
#include "linelistindex.h"
24
#include "ksnumbers.h"
29
*@class ConstellationLines
30
*Collection of lines making the 88 constellations
36
class ConstellationLines : public LineListIndex
41
* @p parent Pointer to the parent SkyComposite object
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.
49
ConstellationLines( SkyComposite *parent, CultureList* cultures );
51
void reindex( KSNumbers *num );
54
const IndexHash& getIndexHash(LineList* lineList );
56
/* @short we need to override the update routine because stars are
57
* updated differently from mere SkyPoints.
59
virtual void JITupdate( LineList* lineList );
61
/* @short Set the QColor and QPen for drawing. */
62
virtual void preDraw( SkyPainter* skyp );
68
KSNumbers m_reindexNum;
69
double m_reindexInterval;