71 lines
2.1 KiB
C++
Executable File
71 lines
2.1 KiB
C++
Executable File
|
|
// **************************************************************************
|
|
//
|
|
// (C) Copyright 2009 Swiss SIMTEC AG
|
|
//
|
|
// **************************************************************************
|
|
//
|
|
// $HeadURL$
|
|
// $LastChangedBy$
|
|
// $LastChangedDate$
|
|
// $LastChangedRevision$
|
|
//
|
|
// **************************************************************************
|
|
|
|
// manual class headers
|
|
#include "GeoPairingImplDted.hpp"
|
|
#include "GeoPairingImplFiredBulletDted.hpp"
|
|
|
|
namespace N_GeoPairingImpl
|
|
{
|
|
|
|
// ---------------------------------------------------------------
|
|
GeoPairingImplDted::GeoPairingImplDted()
|
|
: GeoPairingImplBalistic("GeoPairingImplDted")
|
|
{
|
|
}
|
|
|
|
|
|
// ---------------------------------------------------------------
|
|
// Creates a new fired bulled according to the given SensorData
|
|
// ---------------------------------------------------------------
|
|
GeoPairingImplFiredBullet *GeoPairingImplDted::createFiredBullet(GeoPairingImplSensorData &a_sensorData)
|
|
{
|
|
GeoPairingImplFiredBulletDted *p_firedBullet = new GeoPairingImplFiredBulletDted(a_sensorData);
|
|
p_firedBullet->setMeteoData(m_MeteoData);
|
|
return p_firedBullet;
|
|
}
|
|
|
|
|
|
// ---------------------------------------------------------------
|
|
// Initialize the GeoPairing implementation
|
|
// ---------------------------------------------------------------
|
|
bool GeoPairingImplDted::initialize(const QString &filePath)
|
|
{
|
|
GeoPairingImplBalistic::initialize(filePath);
|
|
|
|
if (!GeoPairingImplFiredBulletDted::initStatic())
|
|
{
|
|
ERROR_LOG(m_logger) << "Couldn't initialize DTED Version";
|
|
return false;
|
|
}
|
|
|
|
std::cout << "initialized" << std::endl;
|
|
|
|
m_Initialized = true;
|
|
return true;
|
|
}
|
|
|
|
|
|
// ---------------------------------------------------------------
|
|
// Pupulates a SensorData instance according to the given
|
|
// transparent datastream
|
|
// ---------------------------------------------------------------
|
|
SInt32 GeoPairingImplDted::createSensorData(GeoPairingImplSensorData *a_sensorData, const QByteArray& a_transparendData)
|
|
{
|
|
int isDefault;
|
|
return GeoPairingImpl::createSensorData(a_sensorData, a_transparendData, isDefault);
|
|
}
|
|
|
|
} // namespace N_GeoPairingImpl
|