![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure |
#include <Landscape.hpp>
Inherited by LandscapeFisheye, LandscapeOldStyle, and LandscapeSpherical.
Public Member Functions | |
| Landscape (float _radius=2.) | |
| virtual void | load (const QSettings &landscapeIni, const QString &landscapeId)=0 |
| virtual void | draw (StelCore *core)=0 |
| void | update (double deltaTime) |
| void | setBrightness (float b) |
| void | setFlagShow (bool b) |
| bool | getFlagShow () const |
| void | setFlagShowFog (bool b) |
| bool | getFlagShowFog () const |
| QString | getName () const |
| QString | getAuthorName () const |
| QString | getDescription () const |
| const StelLocation & | getLocation () const |
| void | setZRotation (double 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 |
| StelLocation | location |
| float | angleRotateZ |
| float | angleRotateZOffset |
Classes | |
| struct | landscapeTexCoord |
Don't use this class direcly, use the LandscapeMgr.
| void Landscape::setBrightness | ( | float | b | ) | [inline] |
Set the brightness of the landscape.
| void Landscape::setFlagShow | ( | bool | b | ) | [inline] |
Set whether landscape is displayed (does not concern fog).
| bool Landscape::getFlagShow | ( | ) | const [inline] |
Get whether landscape is displayed (does not concern fog).
| void Landscape::setFlagShowFog | ( | bool | b | ) | [inline] |
Set whether fog is displayed.
| bool Landscape::getFlagShowFog | ( | ) | const [inline] |
Get whether fog is displayed.
| QString Landscape::getName | ( | ) | const [inline] |
Get landscape name.
| QString Landscape::getAuthorName | ( | ) | const [inline] |
Get landscape author name.
| QString Landscape::getDescription | ( | ) | const [inline] |
Get landscape description.
| const StelLocation& Landscape::getLocation | ( | ) | const [inline] |
Return the associated location or NULL.
| void Landscape::setZRotation | ( | double | d | ) | [inline] |
Set the z-axis rotation (offset from original value when rotated.
| 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") |
| 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 boost:filesystem or "file not found" exceptions |
1.5.5