1
/***************************************************************************
2
pointlistcomponent.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 POINTLISTCOMPONENT_H
19
#define POINTLISTCOMPONENT_H
21
#define NCIRCLE 360 //number of points used to define equator, ecliptic and horizon
25
#include "skycomponent.h"
30
*@class PointListComponent
31
*An abstract parent class, to be inherited by SkyComponents that store a QList
37
class PointListComponent : public SkyComponent
41
PointListComponent( SkyComposite *parent );
43
virtual ~PointListComponent();
45
/**@short Update the sky positions of this component.
47
* This function usually just updates the Horizontal (Azimuth/Altitude)
48
* coordinates of the objects in this component. However, the precession
49
* and nutation must also be recomputed periodically. Requests to do
50
* so are sent through the doPrecess parameter.
51
* @p num Pointer to the KSNumbers object
52
* @note By default, the num parameter is NULL, indicating that
53
* Precession/Nutation computation should be skipped; this computation
54
* is only occasionally required.
56
virtual void update( KSNumbers *num=0 );
58
QList<SkyPoint*>& pointList() { return m_PointList; }
61
QList<SkyPoint*> m_PointList;