Stellarium 0.11.3
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

Landscape Class Reference

Store and manages the displaying of the Landscape. More...

#include <Landscape.hpp>

List of all members.


struct  landscapeTexCoord

Public Member Functions

 Landscape (float _radius=2.f)
virtual void load (const QSettings &landscapeIni, const QString &landscapeId)=0
virtual void draw (StelCore *core)=0
void update (double deltaTime)
void setBrightness (const float b)
void setFlagShow (const bool b)
bool getFlagShow () const
void setFlagShowFog (const bool b)
bool getFlagShowFog () const
QString getName () const
QString getAuthorName () const
QString getDescription () const
const StelLocationgetLocation () const
int getDefaultBortleIndex () const
int getDefaultFogSetting () const
float getDefaultAtmosphericExtinction () const
float getDefaultAtmosphericTemperature () const
float getDefaultAtmosphericPressure () const
void setZRotation (float d)

Protected Member Functions

void loadCommon (const QSettings &landscapeIni, const QString &landscapeId)
const QString getTexturePath (const QString &basename, const QString &landscapeId)

Protected Attributes

float radius
QString name
float skyBrightness
bool validLandscape
LinearFader landFader
LinearFader fogFader
QString author
QString description
int rows
int cols
int defaultBortleIndex
int defaultFogSetting
double defaultExtinctionCoefficient
double defaultTemperature
double defaultPressure
StelLocation location
float angleRotateZ
float angleRotateZOffset

Detailed Description

Store and manages the displaying of the Landscape.

Don't use this class direcly, use the LandscapeMgr.

Member Function Documentation

float Landscape::getDefaultAtmosphericPressure (  )  const [inline]

Return default atmospheric temperature, for refraction computation.

returns -1 to signal "standard conditions", or -2 for "unknown/invalid/no change"

const QString Landscape::getTexturePath ( const QString &  basename,
const QString &  landscapeId 
) [protected]

search for a texture in landscape directory, else global textures directory

basename The name of a texture file, e.g. "fog.png"
landscapeId The landscape ID (directory name) to which the texture belongs
misc possibility of throwing "file not found" exceptions
void Landscape::loadCommon ( const QSettings &  landscapeIni,
const QString &  landscapeId 
) [protected]

Load attributes common to all landscapes.

landscapeIni A reference to an existant QSettings object which describes the landscape
landscapeId The name of the directory for the landscape files (e.g. "ocean")
Generated on Thu May 31 10:37:20 2012 for Stellarium by  doxygen 1.6.3