Constellation.hpp   Constellation.hpp 
/* /*
* Stellarium * Stellarium
* Copyright (C) 2002 Fabien Chereau * Copyright (C) 2002 Fabien Chereau
* Copyright (C) 2012 Timothy Reaves
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _CONSTELLATION_HPP_ #ifndef _CONSTELLATION_HPP_
#define _CONSTELLATION_HPP_ #define _CONSTELLATION_HPP_
#include <vector> #include <vector>
#include <QString> #include <QString>
#include <QFont> #include <QFont>
#include "StelObject.hpp" #include "StelObject.hpp"
skipping to change at line 115 skipping to change at line 116
//! Draw the lines for the Constellation. //! Draw the lines for the Constellation.
//! This method uses the coords of the stars (optimized for use thru //! This method uses the coords of the stars (optimized for use thru
//! the class ConstellationMgr only). //! the class ConstellationMgr only).
void drawOptim(StelPainter& sPainter, const StelCore* core, const Sp hericalCap& viewportHalfspace) const; void drawOptim(StelPainter& sPainter, const StelCore* core, const Sp hericalCap& viewportHalfspace) const;
//! Draw the art texture, optimized function to be called thru a con stellation manager only. //! Draw the art texture, optimized function to be called thru a con stellation manager only.
void drawArtOptim(StelPainter& sPainter, const SphericalRegion& regi on) const; void drawArtOptim(StelPainter& sPainter, const SphericalRegion& regi on) const;
//! Update fade levels according to time since various events. //! Update fade levels according to time since various events.
void update(int deltaTime); void update(int deltaTime);
//! Turn on and off Constellation line rendering. //! Turn on and off Constellation line rendering.
//! @param b new state for line drawing. //! @param b new state for line drawing.
void setFlagLines(bool b) {lineFader=b;} void setFlagLines(const bool b) {lineFader=b;}
//! Turn on and off Constellation boundary rendering. //! Turn on and off Constellation boundary rendering.
//! @param b new state for boundary drawing. //! @param b new state for boundary drawing.
void setFlagBoundaries(bool b) {boundaryFader=b;} void setFlagBoundaries(const bool b) {boundaryFader=b;}
//! Turn on and off Constellation name label rendering. //! Turn on and off Constellation name label rendering.
//! @param b new state for name label drawing. //! @param b new state for name label drawing.
void setFlagName(bool b) {nameFader=b;} void setFlagLabels(const bool b) {nameFader=b;}
//! Turn on and off Constellation art rendering. //! Turn on and off Constellation art rendering.
//! @param b new state for art drawing. //! @param b new state for art drawing.
void setFlagArt(bool b) {artFader=b;} void setFlagArt(const bool b) {artFader=b;}
//! Get the current state of Constellation line rendering. //! Get the current state of Constellation line rendering.
//! @return true if Constellation line rendering it turned on, else false. //! @return true if Constellation line rendering it turned on, else false.
bool getFlagLines() const {return lineFader;} bool getFlagLines() const {return lineFader;}
//! Get the current state of Constellation boundary rendering. //! Get the current state of Constellation boundary rendering.
//! @return true if Constellation boundary rendering it turned on, e lse false. //! @return true if Constellation boundary rendering it turned on, e lse false.
bool getFlagBoundaries() const {return boundaryFader;} bool getFlagBoundaries() const {return boundaryFader;}
//! Get the current state of Constellation name label rendering. //! Get the current state of Constellation name label rendering.
//! @return true if Constellation name label rendering it turned on, else false. //! @return true if Constellation name label rendering it turned on, else false.
bool getFlagName() const {return nameFader;} bool getFlagLabels() const {return nameFader;}
//! Get the current state of Constellation art rendering. //! Get the current state of Constellation art rendering.
//! @return true if Constellation art rendering it turned on, else f alse. //! @return true if Constellation art rendering it turned on, else f alse.
bool getFlagArt() const {return artFader;} bool getFlagArt() const {return artFader;}
//! International name (translated using gettext) //! International name (translated using gettext)
QString nameI18; QString nameI18;
//! Name in english //! Name in english
QString englishName; QString englishName;
//! Name in native language //! Name in native language
QString nativeName; QString nativeName;
 End of changes. 7 change blocks. 
6 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/