WSF
P6DofFreezeFlags.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 2017 Infoscitex, a DCS 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 P6DofFreezeFlags_HPP
13#define P6DofFreezeFlags_HPP
14
15#include "p6dof_export.h"
16
17class P6DOF_EXPORT P6DofFreezeFlags
18{
19public:
25 , mMasterFreezeSpeed(false)
26 , mMasterFreezeYaw(false)
27 , mMasterFreezePitch(false)
28 , mMasterFreezeRoll(false)
29 , mMasterNoLag(false)
30 , mMasterNoAlpha(false)
31 {
32 }
33
34 // This can set/clear the freeze location flag, used by all P6DOF objects.
35 // Freeze location freezes objects in Lat/Lon. This is used for testing.
36 void SetMasterFreezeLocation(bool aFreeze) { mMasterFreezeLocation = aFreeze; }
38
39 // This can set/clear the freeze altitude flag, used by all P6DOF objects.
40 // This is used for testing.
41 void SetMasterFreezeAltitude(bool aFreeze) { mMasterFreezeAltitude = aFreeze; }
43
44 // This can set/clear the freeze vertical speed flag, used by all P6DOF objects.
45 // This is used for testing.
48
49 // This can set/clear the freeze fuel burn flag, used by all P6DOF objects.
50 // When active, no fuel will be consumed. This is used for testing.
51 void SetMasterFreezeFuelBurn(bool aFreeze) { mMasterFreezeFuelBurn = aFreeze; }
53
54 // This can set/clear the freeze speed flag, used by all P6DOF objects.
55 // When active, the speed will not change. This is used for testing.
56 void SetMasterFreezeSpeed(bool aFreeze) { mMasterFreezeSpeed = aFreeze; }
58
59 // This can set/clear the freeze speed flag, used by all P6DOF objects.
60 // When active, the yaw will not change. This is used for testing.
61 void SetMasterFreezeYaw(bool aFreeze) { mMasterFreezeYaw = aFreeze; }
62 bool GetMasterFreezeYaw() const { return mMasterFreezeYaw; }
63
64 // This can set/clear the freeze speed flag, used by all P6DOF objects.
65 // When active, the pitch will not change. This is used for testing.
66 void SetMasterFreezePitch(bool aFreeze) { mMasterFreezePitch = aFreeze; }
68
69 // This can set/clear the freeze speed flag, used by all P6DOF objects.
70 // When active, the roll will not change. This is used for testing.
71 void SetMasterFreezeRoll(bool aFreeze) { mMasterFreezeRoll = aFreeze; }
72 bool GetMasterFreezeRoll() const { return mMasterFreezeRoll; }
73
74 // This can set/clear the no lag flag, used by all P6DOF objects.
75 // When active, no lags will be used in propulsion, flight controls, etc.
76 // This is used for testing.
77 void SetMasterNoLagTesting(bool aNoLag) { mMasterNoLag = aNoLag; }
78 bool GetMasterNoLagTesting() const { return mMasterNoLag; }
79
80 // This can set/clear the no alpha flag, used by all P6DOF objects.
81 // When active, alpha will always remain at zero, being artificially
82 // modified at the end of the PDofIntegrator::Update().
83 // This is used for testing.
84 void SetMasterNoAlphaTesting(bool aNoAlpha) { mMasterNoAlpha = aNoAlpha; }
85 bool GetMasterNoAlphaTesting() const { return mMasterNoAlpha; }
86
87protected:
98};
99
100#endif
bool GetMasterFreezeSpeed() const
Definition P6DofFreezeFlags.hpp:57
void SetMasterFreezeYaw(bool aFreeze)
Definition P6DofFreezeFlags.hpp:61
bool GetMasterFreezePitch() const
Definition P6DofFreezeFlags.hpp:67
bool GetMasterFreezeYaw() const
Definition P6DofFreezeFlags.hpp:62
bool mMasterFreezeLocation
Definition P6DofFreezeFlags.hpp:88
void SetMasterFreezeLocation(bool aFreeze)
Definition P6DofFreezeFlags.hpp:36
bool GetMasterFreezeVerticalSpeed() const
Definition P6DofFreezeFlags.hpp:47
bool mMasterFreezeSpeed
Definition P6DofFreezeFlags.hpp:92
bool GetMasterFreezeAltitude() const
Definition P6DofFreezeFlags.hpp:42
bool mMasterNoAlpha
Definition P6DofFreezeFlags.hpp:97
void SetMasterFreezeAltitude(bool aFreeze)
Definition P6DofFreezeFlags.hpp:41
bool GetMasterNoLagTesting() const
Definition P6DofFreezeFlags.hpp:78
bool mMasterFreezeAltitude
Definition P6DofFreezeFlags.hpp:89
void SetMasterNoLagTesting(bool aNoLag)
Definition P6DofFreezeFlags.hpp:77
P6DofFreezeFlags()
Definition P6DofFreezeFlags.hpp:20
bool mMasterFreezePitch
Definition P6DofFreezeFlags.hpp:94
void SetMasterFreezeSpeed(bool aFreeze)
Definition P6DofFreezeFlags.hpp:56
bool mMasterNoLag
Definition P6DofFreezeFlags.hpp:96
void SetMasterFreezeVerticalSpeed(bool aFreeze)
Definition P6DofFreezeFlags.hpp:46
void SetMasterFreezeFuelBurn(bool aFreeze)
Definition P6DofFreezeFlags.hpp:51
void SetMasterNoAlphaTesting(bool aNoAlpha)
Definition P6DofFreezeFlags.hpp:84
bool GetMasterFreezeRoll() const
Definition P6DofFreezeFlags.hpp:72
bool GetMasterFreezeLocation() const
Definition P6DofFreezeFlags.hpp:37
bool mMasterFreezeFuelBurn
Definition P6DofFreezeFlags.hpp:91
bool mMasterFreezeYaw
Definition P6DofFreezeFlags.hpp:93
void SetMasterFreezePitch(bool aFreeze)
Definition P6DofFreezeFlags.hpp:66
bool GetMasterNoAlphaTesting() const
Definition P6DofFreezeFlags.hpp:85
void SetMasterFreezeRoll(bool aFreeze)
Definition P6DofFreezeFlags.hpp:71
bool mMasterFreezeRoll
Definition P6DofFreezeFlags.hpp:95
bool mMasterFreezeVerticalSpeed
Definition P6DofFreezeFlags.hpp:90
bool GetMasterFreezeFuelBurn() const
Definition P6DofFreezeFlags.hpp:52
Copyrights Multiple, All Rights Reserved