VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
groundVehicleStateRepository.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
10 
12 
13 #include <vlutil/vlMachineTypes.h>
14 #include <matrix/vlVector.h>
15 
17 #include "vrfutil/soilList.h"
19 
21 class DtSoilFactors;
22 
31 {
32 private:
35 
38 
41  const DtGroundVehicleStateRepository& orig);
42 
43 public:
44 
46  DtGroundVehicleStateRepository (DtLocalObject* vrfObject, const DtString& rwName = DtString::nullString(),
47  DtReaderWriterRegistry* parentRegistry = 0);
48 
51 
52  virtual bool init() override;
53 
55  virtual DtString type() const override;
56 
58  virtual const int vrfMovingObjectStateRepositorySubType() const override;
59 
61  virtual const int groundEntityStateRepositorySubType() const;
62 
63  virtual void initializeFromParameters() override;
64  const DtGroundVehicleParameters* groundVehicleParameters() const;
65 
66  virtual const DtSoilFactors* lookupSoilFactors (const DtString& soilType) const;
67  virtual void addSoilFactors (DtSoilFactors* soilFactors);
68  virtual void removeSoilFactors (DtSoilFactors* soilFactors);
69 
73  virtual const DtGroundInteractionPt* rearSupport() const;
74  virtual DtGroundInteractionPt* rearSupport();
75  virtual void setRearSupport(const DtVector& rearSupport);
76 
78  bool hasLightingComponent() const;
79 
80  static DtVrfObjectStateRepository* creator (const DtString& name,
81  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
82 
83 protected:
84  virtual void createLegacyRWData() override;
85  virtual void setToLegacyRWData() override;
86  virtual void restoreFromLegacyRWData() override;
87 
88 protected:
90 };
Description: This repository holds all information that is common to all the forms of local ground en...
Definition: groundVehicleStateRepository.h:30
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:91
virtual void setToLegacyRWData() override
virtual void restoreFromLegacyRWData() override
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtSoilList mySoilList
Definition: groundVehicleStateRepository.h:89
virtual void createLegacyRWData() override
Creates the legacy data used for any pre/put operation. Override this to create your legacy data atta...
virtual void initializeFromParameters() override
Contains the set of readable/writeable parameters associated with a ground vehicle entity...
Definition: groundVehicleParameters.h:33
class DtSoilList:
Definition: soilList.h:32
class DtSoilFactors:
Definition: soilFactors.h:31
virtual DtString type() const override
returns DtSimObjectStateRepositoryType
Class Invariant: The DtGroundInteractionPt class must always have a valid DtAttachedTerrain or DtSimM...
Definition: groundInteractionPt.h:28
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)