class CWeatherManager

refs #612
This commit is contained in:
Roland Winklmeier
2016-03-26 21:11:08 +01:00
parent 8a0290b44b
commit f6a52874e3
4 changed files with 204 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
using namespace BlackMisc::Aviation;
using namespace BlackMisc::Geo;
using namespace BlackMisc::PhysicalQuantities;
namespace BlackMisc
{
@@ -28,6 +29,14 @@ namespace BlackMisc
m_windLayers(windLayers)
{ }
void CGridPoint::copyWeatherDataFrom(const CGridPoint &other)
{
setCloudLayers(other.getCloudLayers());
setTemperatureLayers(other.getTemperatureLayers());
setVisibilityLayers(other.getVisibilityLayers());
setWindLayers(other.getWindLayers());
}
CVariant CGridPoint::propertyByIndex(const BlackMisc::CPropertyIndex &index) const
{
if (index.isMyself()) { return CVariant::from(*this); }