Stellarium 0.13.2
List of all members | Classes | Public Member Functions
LandscapeOldStyle Class Reference

This was the original landscape, introduced for decorative purposes. More...

#include <Landscape.hpp>

Classes

struct  landscapeTexCoord
 

Public Member Functions

 LandscapeOldStyle (float radius=2.f)
 
virtual void load (const QSettings &landscapeIni, const QString &landscapeId)
 Load landscape. More...
 
virtual void draw (StelCore *core)
 
virtual float getOpacity (Vec3d azalt) const
 can be used to find sunrise or visibility questions on the real-world landscape horizon. More...
 
- Public Member Functions inherited from Landscape
 Landscape (float _radius=2.f)
 
void update (double deltaTime)
 
void setBrightness (const float b, const float pollutionBrightness=0.0f)
 Set the brightness of the landscape plus brightness of optional add-on night lightscape. More...
 
void setFlagShow (const bool b)
 Set whether landscape is displayed (does not concern fog) More...
 
bool getFlagShow () const
 Get whether landscape is displayed (does not concern fog) More...
 
void setFlagShowFog (const bool b)
 Set whether fog is displayed. More...
 
bool getFlagShowFog () const
 Get whether fog is displayed. More...
 
QString getName () const
 Get landscape name. More...
 
QString getAuthorName () const
 Get landscape author name. More...
 
QString getDescription () const
 Get landscape description. More...
 
const StelLocationgetLocation () const
 Return the associated location (may be empty!) More...
 
bool hasLocation () const
 Return if the location is valid (a valid location has a valid planetName!) More...
 
int getDefaultBortleIndex () const
 Return default Bortle index (light pollution value) or -1 (unknown/no change) More...
 
int getDefaultFogSetting () const
 Return default fog setting (0/1) or -1 (no change) More...
 
float getDefaultAtmosphericExtinction () const
 Return default atmosperic extinction [mag/airmass], or -1 (no change) More...
 
float getDefaultAtmosphericTemperature () const
 Return configured atmospheric temperature [degrees Celsius], for refraction computation, or -1000 for "unknown/no change". More...
 
float getDefaultAtmosphericPressure () const
 Return configured atmospheric pressure [mbar], for refraction computation. More...
 
float getLandscapeMinimalBrightness () const
 Return minimal brightness for landscape returns -1 to signal "standard conditions" (use default value from config.ini) More...
 
void setZRotation (float d)
 Set an additional z-axis (azimuth) rotation after landscape has been loaded. More...
 
bool getIsFullyVisible () const
 Get whether the landscape is currently fully visible (i.e. opaque). More...
 

Additional Inherited Members

- Public Types inherited from Landscape
enum  horizonListMode {
  azDeg_altDeg = 0, azDeg_zdDeg = 1, azRad_altRad = 2, azRad_zdRad = 3,
  azGrad_altGrad = 4, azGrad_zdGrad = 5
}
 The list of azimuths and altitudes can come in various formats. We read the first two elements, which can be of formats: More...
 
- Protected Member Functions inherited from Landscape
void loadCommon (const QSettings &landscapeIni, const QString &landscapeId)
 Load attributes common to all landscapes. More...
 
void createPolygonalHorizon (const QString &lineFileName, const float polyAngleRotateZ=0.0f, const QString &listMode="azDeg_altDeg")
 Create a StelSphericalPolygon that describes a measured horizon line. More...
 
const QString getTexturePath (const QString &basename, const QString &landscapeId) const
 search for a texture in landscape directory, else global textures directory More...
 
- Protected Attributes inherited from Landscape
float radius
 
QString name
 
QString author
 Read from landscape.ini:[landscape]name. More...
 
QString description
 Read from landscape.ini:[landscape]author. More...
 
float minBrightness
 Read from landscape.ini:[landscape]description. More...
 
float landscapeBrightness
 Read from landscape.ini:[landscape]minimal_brightness. Allows minimum visibility that cannot be underpowered. More...
 
float lightScapeBrightness
 brightness [0..1] to draw the landscape. Computed by the LandscapeMgr. More...
 
bool validLandscape
 can be used to draw nightscape texture (e.g. city light pollution), if available. Computed by the LandscapeMgr. More...
 
LinearFader landFader
 was a landscape loaded properly? More...
 
LinearFader fogFader
 Used to slowly fade in/out landscape painting. More...
 
int rows
 Used to slowly fade in/out fog painting. More...
 
int cols
 horizontal rows. May be given in landscape.ini:[landscape]tesselate_rows. More indicates higher accuracy, but is slower. More...
 
float angleRotateZ
 vertical columns. May be given in landscape.ini:[landscape]tesselate_cols. More indicates higher accuracy, but is slower. More...
 
float angleRotateZOffset
 [radians] if pano does not have its left border in the east, rotate in azimuth. Configured in landscape.ini[landscape]angle_rotatez (or decor_angle_rotatez for old_style landscapes) More...
 
StelLocation location
 [radians] This is a rotation changeable at runtime via setZRotation (called by LandscapeMgr::setZRotation). More...
 
int defaultBortleIndex
 OPTIONAL. If present, can be used to set location. More...
 
int defaultFogSetting
 May be given in landscape.ini:[location]light_pollution. Default: -1 (no change). More...
 
float defaultExtinctionCoefficient
 May be given in landscape.ini:[location]display_fog: -1(no change), 0(off), 1(on). Default: -1. More...
 
float defaultTemperature
 May be given in landscape.ini:[location]atmospheric_extinction_coefficient. Default -1 (no change). More...
 
float defaultPressure
 [Celsius] May be given in landscape.ini:[location]atmospheric_temperature. default: -1000.0 (no change) More...
 
SphericalRegionP horizonPolygon
 [mbar] May be given in landscape.ini:[location]atmospheric_pressure. Default -1.0 (compute from [location]/altitude), use -2 to indicate "no change". More...
 
Vec3f horizonPolygonLineColor
 Optional element describing the horizon line. More...
 

Detailed Description

This was the original landscape, introduced for decorative purposes.

It segments the horizon in several tiles (usually 4 or 8), therefore allowing very high resolution horizons also on limited hardware, and closes the ground with a separate bottom piece. (You may want to configure a map with pointers to surrounding mountains or a compass rose instead!) You can use panoramas created in equirectangular or cylindrical coordinates, for the latter case set [landscape]tan_mode=true. Until V0.10.5 there was an undetected bug involving vertical positioning. For historical reasons (many landscapes were already configured and published), it was decided to keep this bug as feature, but a fix for new landscapes is available: [landscape]calibrated=true. As of 0.10.6, the fix is only valid for equirectangular panoramas. As of V0.13, [landscape]calibrated=true and [landscape]tan_mode=true go together for cylindrical panoramas. It is more involved to configure, but may still be preferred if you require the resolution, e.g. for alignment studies for archaeoastronomy. In this case, don't forget to set calibrated=true in landscape.ini. Since V0.13.1, also this landscape has a self-luminous (light pollution) option: Configure light<n> entries with textures overlaid the tex<n> textures. Only textures with light are necessary! Can be easily made using layers with e.g. Photoshop or Gimp.

Definition at line 202 of file Landscape.hpp.

Member Function Documentation

virtual float LandscapeOldStyle::getOpacity ( Vec3d  azalt) const
virtual

can be used to find sunrise or visibility questions on the real-world landscape horizon.

Default implementation indicates the horizon equals math horizon.

Reimplemented from Landscape.

virtual void LandscapeOldStyle::load ( const QSettings &  landscapeIni,
const QString &  landscapeId 
)
virtual

Load landscape.

Parameters
landscapeIniA reference to an existing QSettings object which describes the landscape
landscapeIdThe name of the directory for the landscape files (e.g. "ocean")

Implements Landscape.


The documentation for this class was generated from the following file: