~ubuntu-branches/ubuntu/oneiric/kstars/oneiric-proposed

« back to all changes in this revision

Viewing changes to kstars/skycomponents/pointlistcomponent.h

  • Committer: Bazaar Package Importer
  • Author(s): Rohan Garg
  • Date: 2011-07-23 23:07:27 UTC
  • Revision ID: james.westby@ubuntu.com-20110723230727-xp70ea7v5eay0wya
Tags: upstream-4.7.0
ImportĀ upstreamĀ versionĀ 4.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          pointlistcomponent.h  -  K Desktop Planetarium
 
3
                             -------------------
 
4
    begin                : 2005/10/01
 
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 POINTLISTCOMPONENT_H
 
19
#define POINTLISTCOMPONENT_H
 
20
 
 
21
#define NCIRCLE 360   //number of points used to define equator, ecliptic and horizon
 
22
 
 
23
#include <QList>
 
24
 
 
25
#include "skycomponent.h"
 
26
 
 
27
class SkyPoint;
 
28
 
 
29
/**
 
30
 *@class PointListComponent
 
31
 *An abstract parent class, to be inherited by SkyComponents that store a QList
 
32
 *of SkyPoints.
 
33
 *
 
34
 *@author Jason Harris
 
35
 *@version 0.1
 
36
 */
 
37
class PointListComponent : public SkyComponent
 
38
{
 
39
public:
 
40
 
 
41
    PointListComponent( SkyComposite *parent );
 
42
 
 
43
    virtual ~PointListComponent();
 
44
 
 
45
    /**@short Update the sky positions of this component.
 
46
     *
 
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.
 
55
     */
 
56
    virtual void update( KSNumbers *num=0 );
 
57
 
 
58
    QList<SkyPoint*>& pointList() { return m_PointList; }
 
59
 
 
60
private:
 
61
    QList<SkyPoint*> m_PointList;
 
62
};
 
63
 
 
64
#endif