/*
 *     PreviSat, Satellite tracking software
 *     Copyright (C) 2005-2015  Astropedia web: http://astropedia.free.fr  -  mailto: astropedia@free.fr
 *
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * _______________________________________________________________________________________________________
 *
 * Nom du fichier
 * >    constellation.h
 *
 * Localisation
 * >    librairies.corps.etoiles
 *
 * Heritage
 * >    Corps
 *
 * Auteur
 * >    Astropedia
 *
 * Date de creation
 * >    24 mars 2012
 *
 * Date de revision
 * >    3 juin 2015
 *
 */

#ifndef CONSTELLATION_H
#define CONSTELLATION_H

#include <QString>
#include "librairies/corps/corps.h"
#include "librairies/observateur/observateur.h"

class Constellation : public Corps
{
public:

    /* Constructeurs */
    /**
     * @brief Constellation Constructeur par defaut
     */
    Constellation();

    /**
     * @brief Constellation Definition a partir des composantes
     * @param nomConst nom de la constellation
     * @param ascDroite ascension droite moyenne de la constellation
     * @param decl declinaison myenne de la declinaison
     */
    Constellation(const QString &nomConst, const double ascDroite, const double decl);

    ~Constellation();

    /* Constantes publiques */

    /* Variables publiques */
    static bool initCst;

    /* Methodes publiques */
    /**
     * @brief CalculConstellations Calcul des positions des noms des constellations pour la carte du ciel
     * @param observateur observateur
     * @param constellations tableau des constellations
     */
    static void CalculConstellations(const Observateur &observateur, QList<Constellation> &constellations);

    /* Accesseurs */
    QString nom() const;


protected:

    /* Constantes protegees */

    /* Variables protegees */

    /* Methodes protegees */


private:

    /* Constantes privees */

    /* Variables privees */
    QString _nom;

    /* Methodes privees */
    /**
     * @brief InitTabCst Lecture du fichier de constellations
     * @param constellations tableau de constellations
     */
    static void InitTabCst(QList<Constellation> &constellations);

};

#endif // CONSTELLATION_H
