Commit f63313bd authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

Outdoor Result

- added ids for paths
parent 638ac3b7
......@@ -36,6 +36,8 @@ namespace ITA
oAirAttenuationSpectrum.SetIdentity();
};
int iID;
double dPropagationDelay;
double dSpreadingLoss; //!< Wave type specific spreading loss factor
......
......@@ -118,12 +118,14 @@ namespace ITA
auto pResult = std::make_unique< COutdoorSimulationResult>();
pResult->sourceReceiverPair = oSRPair;
pResult->iReferenceID = m_pSceneUpdate->GetReferenceID();
pResult->voPathProperties.resize( vpEigenrays.size() );
auto oIdentitySpectrum = ITABase::CThirdOctaveFactorMagnitudeSpectrum();
oIdentitySpectrum.SetIdentity();
for (int idx = 0; idx < vpEigenrays.size(); idx++)
{
pResult->voPathProperties.push_back( COutdoorSimulationResult::CPathProperty() );
pResult->voPathProperties[idx].iID = idx;
pResult->voPathProperties[idx].dPropagationDelay = vpEigenrays[idx]->LastTimeStamp();
pResult->voPathProperties[idx].dSpreadingLoss = vpEigenrays[idx]->SpreadingLoss();
pResult->voPathProperties[idx].iReflectionOrder = vpEigenrays[idx]->ReflectionOrder();
......
......@@ -16,6 +16,8 @@ int COutdoorSimulationResult::CPathProperty::Serialize(IVistaSerializer& pSerial
{
int returnVal = 0;
returnVal += pSerializer.WriteInt32(iID);
returnVal += pSerializer.WriteDouble(dPropagationDelay);
returnVal += pSerializer.WriteDouble(dSpreadingLoss);
returnVal += pSerializer.WriteInt32(iReflectionOrder);
......@@ -34,6 +36,8 @@ int COutdoorSimulationResult::CPathProperty::DeSerialize(IVistaDeSerializer& pDe
{
int returnVal = 0;
returnVal += pDeserializer.ReadInt32(iID);
returnVal += pDeserializer.ReadDouble(dPropagationDelay);
returnVal += pDeserializer.ReadDouble(dSpreadingLoss);
returnVal += pDeserializer.ReadInt32(iReflectionOrder);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment