VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEntityRotorWashVisualizer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
12 
15 
16 namespace makVrv
17 {
18  class DtRotorWashModelAgent;
19  class DtRotorWashObjectAgent;
20 
35  {
36  public:
39  DtStateListener& listener, int modelSet);
40 
43  DtSceneObjectAgent* sceneObject, int modelSet );
44 
46  virtual ~DtEntityRotorWashVisualizer();
47 
49  DtEntityRotorWashVisualizer() = delete;
50 
53 
55  DtEntityRotorWashVisualizer& operator=(const DtEntityRotorWashVisualizer&) = delete;
56 
57  public:
58 
60  virtual void initialize() override;
61 
63  virtual void setRotorWashEnabled(bool b);
64 
67  virtual void setRotorDiameter( double diameter );
68 
70  virtual void setRotorWindSpeed( double speed );
71 
73  virtual const DtStateVisualizer::TypeInfo& typeInfo() const;
74 
76  static const DtStateVisualizer::TypeInfo& theTypeInfo();
77 
78  protected:
81  virtual void createModelAgents();
82 
84  virtual void destroyModelAgents();
85 
87  virtual void setModelDefinitionForAgents();
88 
91  virtual void connectToListenerSignals() override;
92 
95  virtual void setInitialValuesFromVisualizerDefinition() override;
96 
98  virtual void setEmbarkedOn(const std::string&);
99 
102  virtual void slot_checkPowerPlantStatus();
103 
105  virtual void slot_rotorWashInfoSet(const DtRotorWashInfo& newInfo);
106 
108  virtual void setPowerPlantOn(bool isOn);
109 
111  virtual void setDamageState(EntityStateListener::DamageState state);
112 
114  virtual bool entityDestroyed() const;
115 
118  virtual bool visible() const;
119 
121  virtual void slot_rotorWashEnabledChanged(bool enabled);
122 
125  virtual void updateDrawState();
126 
128  virtual void setRotorWashPaused(bool b);
130  virtual bool rotorWashPaused() const;
132 
133  protected:
134  DtRotorWashModelAgent* myRotorWashModelAgent;
135  // DtRotorWashObjectAgent talks to the DtRotorWashManager
136  // which will talk to DtRotorWashSet to set parameters
137  DtRotorWashObjectAgent* myRotorWashObjectAgent;
139 
144  // False until our soil type is hit then true (for lazy init)
146 
147  // "RotorWash" for Triton or "ParticleSystem" for particles
148  std::string mySchema;
150 
154  };
155 
156 
161 }
162 
bool myEffectEnabled
Definition: DtEntityRotorWashVisualizer.h:138
Base class for entity state visualizers (using the DtModelVisualizer schema)
Definition: DtEntityStateVisualizer.h:23
DamageState
Definition: DtEntityStateListener.h:59
Definition: DtStateVisualizer.h:305
int myAttributeCompareValue
Definition: DtEntityRotorWashVisualizer.h:149
DtRotorWashModelAgent * myRotorWashModelAgent
Definition: DtEntityRotorWashVisualizer.h:134
std::string mySchema
Definition: DtEntityRotorWashVisualizer.h:148
bool myRotorWashStarted
Definition: DtEntityRotorWashVisualizer.h:151
DtRotorWashObjectAgent * myRotorWashObjectAgent
Definition: DtEntityRotorWashVisualizer.h:137
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:38
bool mySoilTypeActive
Definition: DtEntityRotorWashVisualizer.h:145
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
EntityStateListener::DamageState myDamageState
Definition: DtEntityRotorWashVisualizer.h:153
double myRotorDiameter
Definition: DtEntityRotorWashVisualizer.h:140
Rotorwash and rotorwash collision object information.
DtStateVisualizerCreatorTemplate< DtEntityRotorWashVisualizer > DtEntityRotorWashVisualizerCreator
Creator that will be registered with the state visualizer factory to create this class.
Definition: DtEntityRotorWashVisualizer.h:160
bool myPowerPlantOn
Definition: DtEntityRotorWashVisualizer.h:143
A collection of information about a rotor wash effect that is received by a network connection and tr...
Definition: DtRotorWashInfo.h:62
double myRotorWindSpeed
Definition: DtEntityRotorWashVisualizer.h:141
Contains makVrv:DtEntityStateVisualizer class. Base class for other state visualizers such as articul...
The DtStateListener is an abstract class. Subclasses implement functionality that will allow data to ...
Definition: DtStateListener.h:25
Struct to hold metadata about each functional visualizer type This allows users of the factory to get...
Definition: DtStateVisualizer.h:56
bool myEmbarked
Definition: DtEntityRotorWashVisualizer.h:142
Visualizer for rotorWashes Each rotary wing entity is configured with a visualizer for each soil type...
Definition: DtEntityRotorWashVisualizer.h:34
bool myRotorWashEffectPaused
Definition: DtEntityRotorWashVisualizer.h:152

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)