CalcMySky  v0.3.1
Signals | Public Member Functions | List of all members
ToolsWidget Class Reference
Inheritance diagram for ToolsWidget:
ShowMySky::Settings

Signals

void settingChanged ()
 
void ditheringMethodChanged ()
 
void setScattererEnabled (QString const &name, bool enable)
 
void reloadShadersClicked ()
 
void setFlatSolarSpectrum ()
 
void resetSolarSpectrum ()
 
void setBlackBodySolarSpectrum (double temperature)
 
void windowDecorationToggled (bool enabled)
 
void projectionChanged (GLWidget::Projection)
 
void colorModeChanged (GLWidget::ColorMode)
 

Public Member Functions

 ToolsWidget (QWidget *parent=nullptr)
 
double altitude () override
 Camera altitude. More...
 
double sunAzimuth () override
 Azimuth of the Sun. More...
 
double sunZenithAngle () override
 Zenith angle of the Sun. More...
 
double sunAngularRadius () override
 Angular radius of the Sun. More...
 
double moonAzimuth () override
 Azimuth of the Moon. More...
 
double moonZenithAngle () override
 Zenith angle of the Moon. More...
 
double earthMoonDistance () override
 Distance between the Earth and the Moon. More...
 
float zoomFactor () const
 
float cameraYaw () const
 
float cameraPitch () const
 
double lightPollutionGroundLuminance () override
 Ground luminance for light pollution. More...
 
bool onTheFlySingleScatteringEnabled () override
 Whether single scattering should be computed on the fly. More...
 
bool onTheFlyPrecompDoubleScatteringEnabled () override
 Whether double scattering should be precomputed on the fly when using eclipse shader. More...
 
bool zeroOrderScatteringEnabled () override
 Whether to render zero-order scattering. More...
 
bool singleScatteringEnabled () override
 Whether to render single scattering. More...
 
bool multipleScatteringEnabled () override
 Whether to render multiple scattering. More...
 
bool textureFilteringEnabled () override
 Whether to enable texture filtering. More...
 
bool usingEclipseShader () override
 Whether to use shader designed to render eclipse atmosphere. More...
 
bool pseudoMirrorEnabled () override
 Whether to mirror the sky instead of rendering the ground. More...
 
bool gradualClippingEnabled () const
 
bool glareEnabled () const
 
float exposure () const
 
GLWidget::DitheringMode ditheringMode () const
 
GLWidget::DitheringMethod ditheringMethod () const
 
bool handleSpectralRadiance (ShowMySky::AtmosphereRenderer::SpectralRadiance const &spectrum)
 
void setCanGrabRadiance (bool can)
 
void setCanSetSolarSpectrum (bool can)
 
void setZoomFactor (double zoom)
 
void setCameraPitch (double pitch)
 
void setCameraYaw (double yaw)
 
void setSunAzimuth (double azimuth)
 
void setSunZenithAngle (double elevation)
 
void updateParameters (AtmosphereParameters const &params)
 
void setWindowDecorationEnabled (bool enabled)
 

Member Function Documentation

◆ altitude()

double ToolsWidget::altitude ( )
inlineoverridevirtual
Returns
Camera altitude in meters.

Implements ShowMySky::Settings.

◆ earthMoonDistance()

double ToolsWidget::earthMoonDistance ( )
inlineoverridevirtual

This option is used when usingEclipseShader returns true.

Returns
Distance between the centers of the Earth and the Moon in meters.

Implements ShowMySky::Settings.

◆ lightPollutionGroundLuminance()

double ToolsWidget::lightPollutionGroundLuminance ( )
inlineoverridevirtual
Returns
Ground luminance in \(\mathrm{cd/m^2}\). Should normally be zero during daytime and nonzero from evening to morning.

Implements ShowMySky::Settings.

◆ moonAzimuth()

double ToolsWidget::moonAzimuth ( )
inlineoverridevirtual

This option is used when usingEclipseShader returns true.

Returns
Azimuth of the Moon at the location of the camera in radians.

Implements ShowMySky::Settings.

◆ moonZenithAngle()

double ToolsWidget::moonZenithAngle ( )
inlineoverridevirtual

This option is used when usingEclipseShader returns true.

Returns
Zenith angle of the Moon at the location of the camera in radians.

Implements ShowMySky::Settings.

◆ multipleScatteringEnabled()

bool ToolsWidget::multipleScatteringEnabled ( )
inlineoverridevirtual

If this method returns true, multiple scattering layer is rendered by AtmosphereRenderer::draw, otherwise it's skipped.

Implements ShowMySky::Settings.

◆ onTheFlyPrecompDoubleScatteringEnabled()

bool ToolsWidget::onTheFlyPrecompDoubleScatteringEnabled ( )
inlineoverridevirtual

This is a performance-quality tradeoff setting.

If this method returns true, and usingEclipseShader returns true, then double scattering is precomputed on the fly. Otherwise it is rendered from double scattering texture (see caveats described in AtmosphereRenderer::canRenderPrecomputedEclipsedDoubleScattering).

Implements ShowMySky::Settings.

◆ onTheFlySingleScatteringEnabled()

bool ToolsWidget::onTheFlySingleScatteringEnabled ( )
inlineoverridevirtual

This is a performance-quality tradeoff setting.

If this method returns true, single scattering is computed during rendering, on the fly. Otherwise the single scattering textures are used.

Implements ShowMySky::Settings.

◆ pseudoMirrorEnabled()

bool ToolsWidget::pseudoMirrorEnabled ( )
inlineoverridevirtual

Stellarium wants to show sky-like colors instead of the ground, this option controls whether this is enabled.

Returns
Whether to mirror the sky instead of rendering the ground.

Implements ShowMySky::Settings.

◆ singleScatteringEnabled()

bool ToolsWidget::singleScatteringEnabled ( )
inlineoverridevirtual

If this method returns true, single scattering layers are rendered by AtmosphereRenderer::draw, otherwise they are skipped.

Implements ShowMySky::Settings.

◆ sunAngularRadius()

double ToolsWidget::sunAngularRadius ( )
inlineoverridevirtual

This option is used when usingEclipseShader returns true.

Returns
Angular radius of the Sun when looked from the location of the camera, in radians.

Implements ShowMySky::Settings.

◆ sunAzimuth()

double ToolsWidget::sunAzimuth ( )
inlineoverridevirtual
Returns
Azimuth of the Sun at the location of the camera in radians.

Implements ShowMySky::Settings.

◆ sunZenithAngle()

double ToolsWidget::sunZenithAngle ( )
inlineoverridevirtual
Returns
Zenith angle of the Sun at the location of the camera in radians.

Implements ShowMySky::Settings.

◆ textureFilteringEnabled()

bool ToolsWidget::textureFilteringEnabled ( )
inlineoverridevirtual

This is a debugging option that lets one toggle linear interpolation between texels in the model textures. If true, filtering is enabled, otherwise disabled. It should normally be enabled.

Returns
Whether to enable texture filtering.

Reimplemented from ShowMySky::Settings.

◆ usingEclipseShader()

bool ToolsWidget::usingEclipseShader ( )
inlineoverridevirtual

Eclipsed atmosphere takes more resources to render, so if there's no eclipse, this method should return false. But when the solar shadow touches the Earth, this method should return true (see caveats described in AtmosphereRenderer::canRenderPrecomputedEclipsedDoubleScattering).

Implements ShowMySky::Settings.

◆ zeroOrderScatteringEnabled()

bool ToolsWidget::zeroOrderScatteringEnabled ( )
inlineoverridevirtual

If this method returns true, zero-order scattering is rendered by AtmosphereRenderer::draw, otherwise it's skipped.

This should return false if the application does zero-order rendering by its own means.

Implements ShowMySky::Settings.


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