Commit 8c72e30c authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

WIP api changes

parent 1fb2a396
......@@ -132,6 +132,11 @@ void ITAPropagationPathSim::CombinedModel::CPathEngine::UpdateEmitter( shared_pt
}
}
void ITAPropagationPathSim::CombinedModel::CPathEngine::UpdateSensor( shared_ptr< CSensor > pSensor )
{
ITA_EXCEPT_NOT_IMPLEMENTED;
}
void ITAPropagationPathSim::CombinedModel::CPathEngine::ApplyEmitter( shared_ptr<ITAGeo::CEmitter> pEmitter )
{
if( m_pProgressHandler )
......
......@@ -179,7 +179,7 @@ int main( int iNumInArgs, char* pcInArgs[] )
sw.start();
pPathEngine->InitializePathEnvironment( pMeshModelList );
pPathEngine->ApplyEmitterForTestingOnlyTreeAndImageEdges( pSource ); //Builds tree and image edges
pPathEngine->UpdateEmitter( pSource ); //Builds tree and image edges
d1 = sw.stop();
cout << "Calculation time pre-processing of path environment: " << timeToString( d1 ) << endl;
......@@ -187,13 +187,13 @@ int main( int iNumInArgs, char* pcInArgs[] )
sw.start();
pPathEngine->ApplyEmitterForTestingOnlyImageSources();
pPathEngine->UpdateSensor( pReceiver );
d2 = sw.stop();
cout << "Calculation time applying emitter: " << timeToString( d2 ) << endl;
sw.start();
pPathEngine->ApplySensor( pReceiver );
pPathEngine->UpdateSensor( pReceiver );
d3 = sw.stop();
cout << "Calculation time applying sensor: " << timeToString( d3 ) << endl;
......
......@@ -172,8 +172,7 @@ int main( int, char** )
pPathEngine->SetSimulationConfiguration( oSimConf );
pPathEngine->SetAbortionCriteria( oAbort );
pPathEngine->InitializePathEnvironment( pMeshModelList );
pPathEngine->ApplyEmitter( scene.pEmitter );
pPathEngine->ApplySensor( scene.pSensor );
pPathEngine->SetEntities( scene.pEmitter, scene.pSensor );
CPropagationPathList oPathList;
pPathEngine->ConstructPropagationPaths( oPathList );
cout << "\t -> found " << oPathList.size() << " visible paths" << endl;
......
......@@ -163,8 +163,7 @@ int main( int, char** )
pPathEngine->SetSimulationConfiguration( oSimConf );
pPathEngine->SetAbortionCriteria( oAbort );
pPathEngine->InitializePathEnvironment( pMeshModelList );
pPathEngine->ApplyEmitter( scene.pEmitter );
pPathEngine->ApplySensor( scene.pSensor );
pPathEngine->SetEntities( scene.pEmitter, scene.pSensor );
CPropagationPathList oPathList;
pPathEngine->ConstructPropagationPaths( oPathList );
cout << "\t -> found " << oPathList.size() << " visible paths" << endl;
......
......@@ -147,8 +147,7 @@ int main( int, char** )
pPathEngine->SetAbortionCriteria( oAbort );
pPathEngine->InitializePathEnvironment( pMeshModelList );
// Path finding
pPathEngine->ApplyEmitter( pEmitter );
pPathEngine->ApplySensor( pSensor );
pPathEngine->SetEntities( pEmitter, pSensor );
CPropagationPathList oPathList;
pPathEngine->ConstructPropagationPaths( oPathList );
cout << "\t -> found " << oPathList.size() << " visible paths" << endl;
......
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