WSF
VerticalMapFunction.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 VERTICALMAPFUNCTION_HPP
13#define VERTICALMAPFUNCTION_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 static const double cUNDEFINED;
29
30 explicit VerticalMapFunction(const WsfScenario& aScenario);
31
32 bool Execute(WsfSimulation& aSimulation) override;
33 bool ProcessInput(UtInput& aInput) override;
34
35private:
36 void WriteGnuPlotFile(WsfSimulation& aSimulation,
37 const std::vector<double>& aRowValues,
38 const std::vector<double>& aColValues,
39 const std::vector<Point>& aVarValues);
40
41 void WriteGnuPlotPlayerFile(WsfSimulation& aSimulation);
42
43 void WritePdMapFile(const std::vector<double>& aRowValues,
44 const std::vector<double>& aColValues,
45 const std::vector<Point>& aVarValues,
46 size_t aVarIndex);
47
48 std::string GetPdMapFileJsonMetadata() const;
49
50 WsfSimulation* mSimulationPtr;
51
52 Sensor mSensor;
53 Target mTarget;
54
55 double mGroundRangeMin;
56 double mGroundRangeMax;
57 double mGroundRangeStep;
58 std::string mGroundRangeUnits;
59 double mAltitudeMin;
60 double mAltitudeMax;
61 double mAltitudeStep;
62 std::string mAltitudeUnits;
63
64 std::string mPdMapFile;
65 std::string mHeaderLine1;
66 std::string mHeaderLine2;
67 std::string mHeaderLine3;
68 size_t mOutputColumnLimit;
69 std::string mGnuPlotFile;
70 std::string mGnuPlotPlayerFile;
71
74 bool mFixedSensorPosition;
75};
76
77#endif
MapPlotFunction()=default
Definition Sensor.hpp:30
Definition Target.hpp:27
static const double cUNDEFINED
Definition VerticalMapFunction.hpp:28
bool Execute(WsfSimulation &aSimulation) override
Definition VerticalMapFunction.cpp:63
VerticalMapFunction(const WsfScenario &aScenario)
Definition VerticalMapFunction.cpp:35
std::vector< double > Point
The list of values at a specified sample point.
Definition VerticalMapFunction.hpp:26
bool ProcessInput(UtInput &aInput) override
Definition VerticalMapFunction.cpp:202
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