WSF
WsfKinematicStateExtrapolation.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 2021 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 WSFKINEMATICSTATEEXTRAPOLATION_HPP
13#define WSFKINEMATICSTATEEXTRAPOLATION_HPP
14
15#include "wsf_export.h"
16
17#include "UtInformation.hpp"
18#include "UtVec3.hpp"
19#include "WsfStringId.hpp"
21
22namespace wsf
23{
26{
27public:
28 KinematicState() = default;
29 KinematicState(const UtVec3d& aLocationWCS, const UtVec3d& aVelocityWCS)
30 : mLocationWCS(aLocationWCS)
31 , mVelocityWCS(aVelocityWCS)
32 {
33 }
34 KinematicState& operator=(const KinematicState& aRhs) = default;
35
36 void SetLocationWCS(const UtVec3d& aLocationWCS) { mLocationWCS = aLocationWCS; }
37 void SetVelocityWCS(const UtVec3d& aVelocityWCS) { mVelocityWCS = aVelocityWCS; }
38
39 UtVec3d GetLocationWCS() const { return mLocationWCS; }
40 UtVec3d GetVelocityWCS() const { return mVelocityWCS; }
41
42private:
43 UtVec3d mLocationWCS;
44 UtVec3d mVelocityWCS;
45};
46
47using KinematicStateInformation = UtInformation<KinematicState>;
48
51{
52public:
54
55 static WsfStringId GetTypeId();
56};
57} // namespace wsf
58
59#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
KinematicStateExtrapolation()
Definition WsfKinematicStateExtrapolation.cpp:14
static WsfStringId GetTypeId()
Definition WsfKinematicStateExtrapolation.cpp:23
void SetLocationWCS(const UtVec3d &aLocationWCS)
Definition WsfKinematicStateExtrapolation.hpp:36
UtVec3d GetVelocityWCS() const
Definition WsfKinematicStateExtrapolation.hpp:40
KinematicState(const UtVec3d &aLocationWCS, const UtVec3d &aVelocityWCS)
Definition WsfKinematicStateExtrapolation.hpp:29
KinematicState()=default
void SetVelocityWCS(const UtVec3d &aVelocityWCS)
Definition WsfKinematicStateExtrapolation.hpp:37
UtVec3d GetLocationWCS() const
Definition WsfKinematicStateExtrapolation.hpp:39
KinematicState & operator=(const KinematicState &aRhs)=default
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
UtInformation< KinematicState > KinematicStateInformation
Definition WsfKinematicStateExtrapolation.hpp:47
Copyrights Multiple, All Rights Reserved