VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfPropulsionNoiseSystem.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
17 #include <vlpi/disEnums.h>
18 #include <matrix/vlVector.h>
19 
20 class DtLocalObject;
22 class DtVrfPropulsionNoiseSystemEntry;
23 
27 
29 {
30 private:
37 
38 public:
40 
41  virtual ~DtVrfPropulsionNoiseSystem();
42 
44  virtual void tick();
45  bool init(bool publishAcoustics = false);
46 
47  virtual double speedToRPMFactor() const;
48  virtual double accelerationToRPMFactor() const;
49  virtual double minSpeed() const;
50 
51  virtual void setSpeedToRPMFactor(double factor);
52  virtual void setAccelerationToRPMFactor(double factor);
53  virtual void setMinSpeed(double speed);
54 
55 protected:
56  virtual void updateShaftRateData();
57 
58 protected:
65  double myMinSpeed;
66 
69 };
70 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
makVrf::DtUnderwaterAcousticsStateComponent * myUnderwaterAcousticsComponent
Definition: vrfPropulsionNoiseSystem.h:61
DtVrfPropulsionNoiseSystem manages a VR-Link propulsion noise system publisher, and sets all the valu...
Definition: vrfPropulsionNoiseSystem.h:28
double mySpeedToRPMFactor
Definition: vrfPropulsionNoiseSystem.h:63
std::vector< UnderwaterAcousticShaftSpeed > ShaftData
Definition: underwaterAcousticsStateComponent.h:91
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:31
double myMinSpeed
Definition: vrfPropulsionNoiseSystem.h:65
DtLocalObject * myHostEntity
Definition: vrfPropulsionNoiseSystem.h:59
double myAccelerationToRPMFactor
Definition: vrfPropulsionNoiseSystem.h:64
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: underwaterAcousticsStateComponent.h:106
makVrf::DtUnderwaterAcousticsStateComponentData::ShaftData myShaftData
Definition: vrfPropulsionNoiseSystem.h:62
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Member to allow for access to platform specific data.
Definition: vrfPropulsionNoiseSystem.h:68
DtVrfMovingObjectStateRepository * myEntitySR
Definition: vrfPropulsionNoiseSystem.h:60
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)