VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtRotorWashState.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 #include <vrvCore/DtUniqueID.h>
14 
15 #include <matrix/vlVector.h>
16 #include <matrix/vlTaitBryan.h>
17 
18 namespace makVrv
19 {
20  class DtRotorWashDistributorAgent;
21 
25  {
26  public:
28  : myIsStopped(true)
29  , myRotorDiameter(-1.0)
30  , myRotorWindSpeed(-1.0)
31  , myRotorWashDistributorAgent(NULL)
32  , myHelicopterId(0)
33  , myLocalWindId(0)
34  , myRotorWashId(0)
35  {}
36 
38  {
39  // DtRotorWashState does not own the agent pointer
40  // DtRotorWashSet will delete myRotorWashDistributorAgent
41  }
42 
43  // Copy constructor
45  {
46  myIsStopped = other.myIsStopped;
47  myModelDefinition = other.myModelDefinition;
48  myRotorDiameter = other.myRotorDiameter;
49  myRotorWindSpeed = other.myRotorWindSpeed;
50  myRotorWashDistributorAgent = other.myRotorWashDistributorAgent;
51  myHelicopterId = other.myHelicopterId;
52  myLocalWindId = other.myLocalWindId;
53  myRotorWashId = other.myRotorWashId;
54  }
55 
56  // Assignment operator
58  {
59  // Self-assignment check
60  if (this != &rhs)
61  {
62  myIsStopped = rhs.myIsStopped;
63  myModelDefinition = rhs.myModelDefinition;
64  myRotorDiameter = rhs.myRotorDiameter;
65  myRotorWindSpeed = rhs.myRotorWindSpeed;
66  myRotorWashDistributorAgent = rhs.myRotorWashDistributorAgent;
67  myHelicopterId = rhs.myHelicopterId;
68  myLocalWindId = rhs.myLocalWindId;
69  myRotorWashId = rhs.myRotorWashId;
70  }
71 
72  return *this;
73  }
74 
75  public:
76 
78  // Can retrieve schema from model definition name to determine
79  // type of rotorwash
80  // ex. myDe.sharedState().modelDefinitionManager().findDefinition(modelDef);
81  std::string myModelDefinition;
87  DtRotorWashDistributorAgent* myRotorWashDistributorAgent;
88  };
89 
90 }
bool myIsStopped
Definition: DtRotorWashState.h:77
~DtRotorWashState()
Definition: DtRotorWashState.h:37
double myRotorDiameter
Definition: DtRotorWashState.h:82
std::string myModelDefinition
Definition: DtRotorWashState.h:81
double myRotorWindSpeed
Definition: DtRotorWashState.h:83
DtUniqueID myHelicopterId
Definition: DtRotorWashState.h:84
DtRotorWashState()
Definition: DtRotorWashState.h:27
DtUniqueID myRotorWashId
Definition: DtRotorWashState.h:86
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtUniqueID myLocalWindId
Definition: DtRotorWashState.h:85
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
DtRotorWashState(const DtRotorWashState &other)
Definition: DtRotorWashState.h:44
Per rotorwash data used in DtRotorWashSet.
Definition: DtRotorWashState.h:24
Contains makVrv::DtUniqueID type.
DtRotorWashDistributorAgent * myRotorWashDistributorAgent
Definition: DtRotorWashState.h:87
DtRotorWashState & operator=(const DtRotorWashState &rhs)
Definition: DtRotorWashState.h:57
Contains DLL export macros.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)