VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
surfaceEntityStateRepository.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 
14 
16 
17 #include <matrix/vlVector.h>
18 
20 
27 {
28 public:
29  static DtVrfObjectStateRepository * creator(const DtString& name,
30  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
31 
32 private:
35 
38  const DtSurfaceEntityStateRepository & orig);
39 
42  const DtSurfaceEntityStateRepository & orig);
43 
44 public:
47  DtReaderWriterRegistry* parentRegistry = 0);
48 
51 
53  virtual DtString type() const override;
54 
55  virtual bool init() override;
56 
58  virtual const int vrfMovingObjectStateRepositorySubType() const override;
59 
61  virtual const int surfaceEntityStateRepositorySubType() const;
62 
63  virtual void initializeFromParameters() override;
64  const DtSurfaceEntityParameters* surfaceEntityParameters() const;
65 
68  virtual const DtVector& throttleAcceleration();
69  virtual void setThrottleAcceleration(const DtVector& throttle);
70 
73  virtual const DtVector& dragAcceleration();
74  virtual void setDragAcceleration(const DtVector& drag);
75 
78  virtual double rudderYawAcceleration();
79  virtual void setRudderYawAcceleration(double rudder);
80 
83  virtual double resistanceYawAcceleration();
84  virtual void setResistanceYawAcceleration(double resistance);
85 
86 protected:
89 
92 
95 
98 };
Definition: surfaceEntityParameters.h:24
Contains the DtVrfMovingObjectStateRepository class declaration.
virtual bool init() override
Our &#39;virtual&#39; constructor. Calls all the create&lt;&gt;() methods.
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:31
static DtVrfObjectStateRepository * creator(const DtString &name, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
DtVrfMovingObjectStateRepository & operator=(const DtVrfMovingObjectStateRepository &orig)
Assignment Operator.
Definition: readerWriterRegistry.h:39
virtual const int vrfMovingObjectStateRepositorySubType() const
Returns DtVrfMovingObjectStateRepositorySubTypeBase.
Description: This repository is an internal repository accessible only by local objects. It holds all information that is common to all the forms of all entity/aggregate/control objects within VR-Forces.
Definition: vrfObjectStateRepository.h:92
DtVector myThrottleAcceleration
Acceleration due to throttle in body coordinates.
Definition: surfaceEntityStateRepository.h:88
double myRudderYawAcceleration
Yaw acceleration due to rudder in body coordinates as calculated and set by.
Definition: surfaceEntityStateRepository.h:94
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
This repository holds all information that is common to all the forms of local surface entities withi...
Definition: surfaceEntityStateRepository.h:26
virtual void initializeFromParameters() override
DtVector myDragAcceleration
Acceleration due to drag in body coordinates.
Definition: surfaceEntityStateRepository.h:91
virtual DtString type() const override
returns DtSimObjectStateRepositoryType
double myResistanceYawAcceleration
Yaw acceleration due to drag in body coordinates as calculated and set by.
Definition: surfaceEntityStateRepository.h:97
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)