2014-08-28 13:09:47 +00:00
|
|
|
#include "AtmosphereModeler.h"
|
|
|
|
|
|
|
|
#include "MainModelerWindow.h"
|
|
|
|
#include "Scenery.h"
|
|
|
|
#include "AtmosphereDefinition.h"
|
|
|
|
|
2015-12-29 23:20:20 +00:00
|
|
|
AtmosphereModeler::AtmosphereModeler(MainModelerWindow *main) : BaseModelerTool(main) {
|
|
|
|
addFloatBinding("atmosphere_humidity", "value", "/atmosphere/humidity");
|
|
|
|
addFloatBinding("atmosphere_sun_direction", "phi", "/atmosphere/sun/phi");
|
|
|
|
addFloatBinding("atmosphere_sun_direction", "theta", "/atmosphere/sun/theta");
|
|
|
|
addFloatBinding("atmosphere_sun_radius", "value", "/atmosphere/sun/radius");
|
|
|
|
addFloatBinding("atmosphere_moon_direction", "phi", "/atmosphere/moon/phi");
|
|
|
|
addFloatBinding("atmosphere_moon_direction", "theta", "/atmosphere/moon/theta");
|
|
|
|
// addFloatBinding("atmosphere_moon_radius", "value", "/atmosphere/moon/radius");
|
2014-08-28 13:09:47 +00:00
|
|
|
|
2015-12-29 23:20:20 +00:00
|
|
|
main->setQmlProperty("atmosphere_daytime", "value", main->getScenery()->getAtmosphere()->getDaytime());
|
2014-08-28 13:09:47 +00:00
|
|
|
}
|