49 lines
1.1 KiB
C++
Executable File
49 lines
1.1 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* ViewshedParameter
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
// Own
|
|
#include "viewshed_parameter.h"
|
|
#include "situation_map_utils.h"
|
|
|
|
|
|
//Qt
|
|
#include <QJsonDocument>
|
|
#include <QJsonObject>
|
|
#include <QJsonArray>
|
|
|
|
#include <sstream>
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
namespace SituationMap
|
|
{
|
|
|
|
QString ViewshedParameter::toString() const
|
|
{
|
|
std::ostringstream stream;
|
|
stream << " viewshedOrigin_latLon = " << viewshedOrigin_latLon;
|
|
stream << "; innerRadius = " << innerRadius;
|
|
stream << "; outerRadius = " << outerRadius;
|
|
stream << "; observerOffset = " << observerHeight;
|
|
stream << "; targetOffset = " << targetHeight;
|
|
stream << "; startArngle = " << startAngle;
|
|
stream << "; dAngle = " << dAngle;
|
|
stream << "; noBeams = " << noBeams;
|
|
stream << "; alpha = " << alpha;
|
|
return QString::fromLatin1(stream.str().c_str());
|
|
}
|
|
|
|
std::ostream &operator<< (std::ostream &stream,
|
|
const SituationMap::ViewshedParameter &value)
|
|
{
|
|
return stream << value.toString();
|
|
}
|
|
|
|
} // namespace SituationMap
|
|
|