WSF
SphericalMapFunction.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef SPHERICALMAPFUNCTION_HPP
13#define SPHERICALMAPFUNCTION_HPP
14
15#include <string>
16#include <vector>
17
18#include "MapPlotFunction.hpp"
19#include "Sensor.hpp"
20#include "Target.hpp"
21
23{
24public:
26 using Point = std::vector<double>;
27
28 SphericalMapFunction(const WsfScenario& aScenario);
29
30 bool Execute(WsfSimulation& aSimulation) override;
31 bool ProcessInput(UtInput& aInput) override;
32
33private:
34 void WriteGnuPlotFile(const std::vector<double>& aRowValues,
35 const std::vector<double>& aColValues,
36 const std::vector<Point>& aVarValues);
37
38 void WritePdMapFile(const std::vector<double>& aRowValues,
39 const std::vector<double>& aColValues,
40 const std::vector<Point>& aVarValues,
41 size_t aVarIndex);
42
43 std::string GetPdMapFileJsonMetadata() const;
44
45 WsfSimulation* mSimulationPtr;
46
47 Sensor mSensor;
48 double mSensorPlatformYaw;
49 double mSensorPlatformPitch;
50 double mSensorPlatformRoll;
51 double mSensorPlatformAltitude;
52 Target mTarget;
53
54 double mAzMin;
55 double mAzMax;
56 double mAzStep;
57 double mElMin;
58 double mElMax;
59 double mElStep;
60 double mRange;
61 double mAltitude;
62
63 std::string mPdMapFile;
64 std::string mHeaderLine1;
65 std::string mHeaderLine2;
66 std::string mHeaderLine3;
67 size_t mOutputColumnLimit;
68 std::string mGnuPlotFile;
69
72 bool mFixedSensorPosition;
73};
74
75#endif
MapPlotFunction()=default
Definition Sensor.hpp:30
bool ProcessInput(UtInput &aInput) override
Definition SphericalMapFunction.cpp:275
std::vector< double > Point
The list of values at a specified sample point.
Definition SphericalMapFunction.hpp:26
SphericalMapFunction(const WsfScenario &aScenario)
Definition SphericalMapFunction.cpp:40
bool Execute(WsfSimulation &aSimulation) override
Definition SphericalMapFunction.cpp:69
Definition Target.hpp:27
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Copyrights Multiple, All Rights Reserved