Landscape.hpp   Landscape.hpp 
skipping to change at line 17 skipping to change at line 17
* 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 _LANDSCAPE_HPP_ #ifndef _LANDSCAPE_HPP_
#define _LANDSCAPE_HPP_ #define _LANDSCAPE_HPP_
#include <QMap> #include <QMap>
#include "VecMath.hpp" #include "VecMath.hpp"
#include "StelToneReproducer.hpp" #include "StelToneReproducer.hpp"
#include "StelProjector.hpp" #include "StelProjector.hpp"
skipping to change at line 55 skipping to change at line 55
virtual ~Landscape(); virtual ~Landscape();
virtual void load(const QSettings& landscapeIni, const QString& land scapeId) = 0; virtual void load(const QSettings& landscapeIni, const QString& land scapeId) = 0;
virtual void draw(StelCore* core) = 0; virtual void draw(StelCore* core) = 0;
void update(double deltaTime) void update(double deltaTime)
{ {
landFader.update((int)(deltaTime*1000)); landFader.update((int)(deltaTime*1000));
fogFader.update((int)(deltaTime*1000)); fogFader.update((int)(deltaTime*1000));
} }
//! Set the brightness of the landscape //! Set the brightness of the landscape
void setBrightness(float b) {skyBrightness = b;} void setBrightness(const float b) {skyBrightness = b;}
//! Set whether landscape is displayed (does not concern fog) //! Set whether landscape is displayed (does not concern fog)
void setFlagShow(bool b) {landFader=b;} void setFlagShow(const bool b) {landFader=b;}
//! Get whether landscape is displayed (does not concern fog) //! Get whether landscape is displayed (does not concern fog)
bool getFlagShow() const {return (bool)landFader;} bool getFlagShow() const {return (bool)landFader;}
//! Set whether fog is displayed //! Set whether fog is displayed
void setFlagShowFog(bool b) {fogFader=b;} void setFlagShowFog(const bool b) {fogFader=b;}
//! Get whether fog is displayed //! Get whether fog is displayed
bool getFlagShowFog() const {return (bool)fogFader;} bool getFlagShowFog() const {return (bool)fogFader;}
//! Get landscape name //! Get landscape name
QString getName() const {return name;} QString getName() const {return name;}
//! Get landscape author name //! Get landscape author name
QString getAuthorName() const {return author;} QString getAuthorName() const {return author;}
//! Get landscape description //! Get landscape description
QString getDescription() const {return description;} QString getDescription() const {return description;}
//! Return the associated location or NULL //! Return the associated location or NULL
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 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/