LuciadCPillar 2026.1.02
Loading...
Searching...
No Matches
luciad::ScatteringAtmosphereModel Class Referencefinal

Atmosphere model that draws a physically based Rayleigh/Mie scattering sky. More...

#include <luciad/maps/effects/AtmosphereModel.h>

Inheritance diagram for luciad::ScatteringAtmosphereModel:
luciad::AtmosphereModel

Classes

class  Builder
 Builder for a luciad::ScatteringAtmosphereModel. More...

Public Member Functions

 ~ScatteringAtmosphereModel () override
Builder asBuilder () const
 Creates a builder pre-filled with this model's parameters.
double getBrightness () const
 Returns the scattering brightness.
double getMieAnisotropy () const
 Returns the Mie anisotropy.
double getMieFactor () const
 Returns the Mie scattering strength.
double getRayleighFactor () const
 Returns the Rayleigh scattering strength.
bool isAerialPerspectiveEnabled () const
 Returns whether aerial perspective is enabled, tinting the terrain surface in addition to the sky.
bool operator== (const ScatteringAtmosphereModel &other) const
 Returns whether this model is equal to another.
Public Member Functions inherited from luciad::AtmosphereModel
 AtmosphereModel (const AtmosphereModel &)=delete
virtual ~AtmosphereModel ()=default
AtmosphereModel & operator= (const AtmosphereModel &)=delete

Static Public Member Functions

static Builder newBuilder ()
 Creates a new builder with the default scattering parameters.

Additional Inherited Members

Protected Member Functions inherited from luciad::AtmosphereModel
 AtmosphereModel ()=default
 Default constructor.

Detailed Description

Atmosphere model that draws a physically based Rayleigh/Mie scattering sky.

This requires a geocentric 3D view and a light configured through GraphicsEffects::getLight. Without both, the effect falls back to the gradient model. Rendering it has a minor additional performance cost compared to the gradient model.

Since
2026.1

Constructor & Destructor Documentation

◆ ~ScatteringAtmosphereModel()

luciad::ScatteringAtmosphereModel::~ScatteringAtmosphereModel ( )
override

Member Function Documentation

◆ asBuilder()

Builder luciad::ScatteringAtmosphereModel::asBuilder ( ) const

Creates a builder pre-filled with this model's parameters.

Returns
a builder pre-filled with this model's parameters.

◆ getBrightness()

double luciad::ScatteringAtmosphereModel::getBrightness ( ) const

Returns the scattering brightness.

Returns
the scattering brightness.

◆ getMieAnisotropy()

double luciad::ScatteringAtmosphereModel::getMieAnisotropy ( ) const

Returns the Mie anisotropy.

Returns
the Mie anisotropy.

◆ getMieFactor()

double luciad::ScatteringAtmosphereModel::getMieFactor ( ) const

Returns the Mie scattering strength.

Returns
the Mie scattering strength.

◆ getRayleighFactor()

double luciad::ScatteringAtmosphereModel::getRayleighFactor ( ) const

Returns the Rayleigh scattering strength.

Returns
the Rayleigh scattering strength.

◆ isAerialPerspectiveEnabled()

bool luciad::ScatteringAtmosphereModel::isAerialPerspectiveEnabled ( ) const

Returns whether aerial perspective is enabled, tinting the terrain surface in addition to the sky.

Aerial perspective is the phenomenon where distant terrain takes on the atmosphere's color and fades toward the horizon with distance.

Returns
whether aerial perspective is enabled, tinting the terrain surface in addition to the sky.

◆ newBuilder()

Builder luciad::ScatteringAtmosphereModel::newBuilder ( )
static

Creates a new builder with the default scattering parameters.

Returns
a new builder.

◆ operator==()

bool luciad::ScatteringAtmosphereModel::operator== ( const ScatteringAtmosphereModel & other) const

Returns whether this model is equal to another.

Parameters
otherthe model to compare with.
Returns
whether this model is equal to another.