VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
propulsionNoiseGeneratorDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 VT MAK
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <readerWriter/rwReal.h>
16 
20 {
21 public:
23  DtPropulsionNoiseGeneratorDescriptor(const DtString& componentName,
24  DtReaderWriterRegistry* parentRegistry = 0);
25 
28  DtReaderWriterRegistry* parentRegistry = 0);
29 
30  virtual ~DtPropulsionNoiseGeneratorDescriptor() override;
31 
35 
38  virtual DtString type() const override;
39 
40  virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
41 
44 
46 
47  virtual void setSpeedToRPMFactor(double value);
48  virtual double speedToRPMFactor() const;
50 
52 
53  virtual void setAccelerationToRPMFactor(double value);
54  virtual double accelerationToRPMFactor() const;
56 
58 
59  virtual void setMinSpeed(double value);
60  virtual double minSpeed() const;
62 
64 
65  virtual void setPowerPlantActive(bool active);
66  virtual bool powerPlantActive() const;
68 
69 protected:
72 
73 protected:
77 
83 
89 
94 
101 };
Instances of DtPropulsionNoiseGeneratorDescriptor are used to specify the parameters for a DtGlobalEn...
Definition: propulsionNoiseGeneratorDescriptor.h:19
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwReal myAccelerationToRPMFactor
Parameter Name: acceleration-to-rpm-factor Parameter Description: Factor by which current/ordered acc...
Definition: propulsionNoiseGeneratorDescriptor.h:88
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal mySpeedToRPMFactor
Parameter Name: speed-to-rpm-factor Parameter Description: Factor by which current/ordered speed (in ...
Definition: propulsionNoiseGeneratorDescriptor.h:82
virtual DtString type() const
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwReal myMinSpeed
Parameter Name: min-speed Parameter Description: The speed below which the RPMs will be set to 0...
Definition: propulsionNoiseGeneratorDescriptor.h:93
static DtComponentDescriptor * creator()
DtRwBoolean myPowerPlantActive
Paramter Name: "power-plant-active Parameter Description: Whether the powerplant is active upon entit...
Definition: propulsionNoiseGeneratorDescriptor.h:99

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)