VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
airborneAggregatedMovementActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 
13 #include <boost/scoped_ptr.hpp>
14 
17 class DtRwPropertiesMap;
18 
23 {
24 public:
26  static DtSimComponent* creator(const DtString& name, DtVrfObject* object,
27  DtSimManager* simManager, DtComponentDescriptor* compDescriptor,
28  DtReaderWriterRegistry* parentRegistry);
29 
32  DtSimManager* simManager, DtComponentDescriptor* compDescriptor,
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
37 
39  virtual bool init();
40 
42  virtual const char* type() const;
43 
46  virtual void preFirstTickInit();
47 
49  virtual void calculateFuelUsage(
50  double distanceTraveled,
51  double velocity,
52  double altitude);
53 
55  virtual double emptyMass() const;
56 
58  virtual double fullMass() const;
59 
61  virtual double currentMass() const;
62 
64  virtual double holdingPatternSpeed() const;
65 
66 protected:
68  virtual bool findProperties();
69 
70  virtual DtAircraftFuelConsumptionModel * createFuelConsumptionModel();
71 
73  virtual void setAviationFuel();
74 
76 
83 
84  boost::scoped_ptr<DtAircraftFuelConsumptionModel> myFuelConsumptionModel;
85 
86 private:
89 
92 };
virtual const char * type() const
Returns a string from simComponentTypes.h, identifying the type of component.
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
double myHoldPatternSpeed
Definition: airborneAggregatedMovementActuator.h:82
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
End User Description: Actuator for moving aggregated aggregates along the ground. ...
Definition: aggregatedMovementActuator.h:46
DtRwBoolean * myHasFuelProperty
Definition: airborneAggregatedMovementActuator.h:80
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
End User Description: Actuator for moving airborne aggregated aggregates.
Definition: airborneAggregatedMovementActuator.h:21
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
boost::scoped_ptr< DtAircraftFuelConsumptionModel > myFuelConsumptionModel
Definition: airborneAggregatedMovementActuator.h:84
Implements the Breguet range equation V(L/D) Range = ---—*ln(Wi/Wf) g*SFC V = Velocity L/D = Lift/Dra...
Definition: aircraftFuelConsumptionModel.h:28
DtRwPropertiesMap * myFuelTanksProperty
Definition: airborneAggregatedMovementActuator.h:78
DtAirborneAggregatedMovementDescriptor * myAirborneDescriptor
Definition: airborneAggregatedMovementActuator.h:75
Acts as a map for properties.
Definition: rwPropertiesMap.h:41
DtRwBoolean * myIsAirborneProperty
Definition: airborneAggregatedMovementActuator.h:77
virtual void calculateFuelUsage(double distanceTraveled, double velocity, double altitude)
Calculates the amount of fuel used.
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
const DtAggregatedMovementActuator & operator=(const DtAggregatedMovementActuator &orig)
assignment operator
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual bool init()
Perform any initialization required by the actuator.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtRwBoolean * myEngagementFlag
Definition: airborneAggregatedMovementActuator.h:81
static DtSimComponent * creator(const DtString &name, DtVrfObject *object, DtSimManager *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry)
Creator function to be registered with the DtSimComponentFactory – see main.cxx.
DtRwReal * myFuelAmountProperty
Definition: airborneAggregatedMovementActuator.h:79
DtAirborneAggregatedMovementDescriptor is the descriptor for DtAirborneAggregatedMovementActuator.
Definition: airborneAggregatedMovementDescriptor.h:17

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)