WSF
Target.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 TARGET_HPP
13#define TARGET_HPP
14
15#include <string>
16
17class Sensor;
18#include "UtAtmosphere.hpp"
19#include "UtEntity.hpp"
20class UtInput;
21class WsfPlatform;
22class WsfSensor;
23class WsfScenario;
24class WsfSimulation;
25
26class Target
27{
28public:
29 explicit Target(const UtAtmosphere& aAtmosphere);
30 ~Target();
31
32 bool Create(const WsfScenario& aScenario);
33
35
36 bool ProcessInput(UtInput& aInput);
37
38 void SetLocationRBA(Sensor& aSensor, double aGroundRange, double aBearing, double aAltitude);
39
40 void SetPitchRange(double aMin, double aMax, double aStep);
41 void SetRollRange(double aMin, double aMax, double aStep);
42 void SetSpeedAndAttitude(Sensor& aSensor);
43 void SetSpeedAndAttitude(WsfSensor* aSensorPtr);
44
45 WsfPlatform* GetPlatform() const { return mPlatformPtr; }
46 double GetTargetPitch() const { return mTargetPitch; }
47 double GetTargetPitchMin() const { return mTargetPitchMin; }
48 double GetTargetPitchMax() const { return mTargetPitchMax; }
49 double GetTargetPitchStep() const { return mTargetPitchStep; }
50 double GetTargetRoll() const { return mTargetRoll; }
51 double GetTargetRollMin() const { return mTargetRollMin; }
52 double GetTargetRollMax() const { return mTargetRollMax; }
53 double GetTargetRollStep() const { return mTargetRollStep; }
54 double GetSpeed();
55
56 void SetPitch(double aPitch) { mTargetPitch = aPitch; }
57 void SetRoll(double aRoll) { mTargetRoll = aRoll; }
58
59private:
60 static const double cUNDEFINED;
61
62 std::string mPlatformType;
63 double mTargetHeading;
64 double mTargetYaw;
65 double mTargetPitch;
66 double mTargetRoll;
67 double mTargetSpeed;
68
69 double mTargetPitchMin;
70 double mTargetPitchMax;
71 double mTargetPitchStep;
72 double mTargetRollMin;
73 double mTargetRollMax;
74 double mTargetRollStep;
75
76 WsfPlatform* mPlatformPtr;
77 UtEntity* mSensorReferencePtr;
78 bool mSensorRelativeOrientation;
79
80 UtAtmosphere mAtmosphere;
81};
82
83#endif
Definition Sensor.hpp:30
double GetTargetPitchMax() const
Definition Target.hpp:48
void SetPitch(double aPitch)
Definition Target.hpp:56
~Target()
Definition Target.cpp:52
double GetTargetRollStep() const
Definition Target.hpp:53
bool CreateAndInitialize(WsfSimulation &aSim)
Create and initialize a local platform.
Definition Target.cpp:75
double GetTargetRoll() const
Definition Target.hpp:50
bool Create(const WsfScenario &aScenario)
Definition Target.cpp:59
double GetTargetPitch() const
Definition Target.hpp:46
void SetSpeedAndAttitude(Sensor &aSensor)
Definition Target.cpp:176
void SetRollRange(double aMin, double aMax, double aStep)
Definition Target.cpp:241
void SetLocationRBA(Sensor &aSensor, double aGroundRange, double aBearing, double aAltitude)
Definition Target.cpp:168
Target(const UtAtmosphere &aAtmosphere)
Definition Target.cpp:31
void SetPitchRange(double aMin, double aMax, double aStep)
Definition Target.cpp:233
double GetTargetPitchStep() const
Definition Target.hpp:49
double GetSpeed()
Definition Target.cpp:249
double GetTargetRollMin() const
Definition Target.hpp:51
double GetTargetPitchMin() const
Definition Target.hpp:47
void SetRoll(double aRoll)
Definition Target.hpp:57
WsfPlatform * GetPlatform() const
Definition Target.hpp:45
bool ProcessInput(UtInput &aInput)
Definition Target.cpp:105
double GetTargetRollMax() const
Definition Target.hpp:52
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
Definition WsfSensor.hpp:92
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Copyrights Multiple, All Rights Reserved