paysages3d/src/interface/modeler/AtmosphereModeler.cpp

18 lines
890 B
C++
Raw Normal View History

2014-08-28 13:09:47 +00:00
#include "AtmosphereModeler.h"
#include "MainModelerWindow.h"
#include "Scenery.h"
#include "AtmosphereDefinition.h"
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
main->setQmlProperty("atmosphere_daytime", "value", main->getScenery()->getAtmosphere()->getDaytime());
2014-08-28 13:09:47 +00:00
}