VR-Forces 4.10 Class Documentation
 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) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: gndVehSR.h,v $ $Revision: 1.25 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef groundVehicleStateRepository_H_
9 #define groundVehicleStateRepository_H_
10 
14 
16 
17 #include <vlutil/vlMachineTypes.h>
18 #include <matrix/vlVector.h>
19 
21 #include "vrfutil/soilList.h"
23 
25 class DtSoilFactors;
26 
33 {
34 protected:
37 
38 public:
39 
42  const DtObjectType& objectType, DtVrfObjectParameters* parameters,
43  const DtString& rwName = DtString::nullString(),
44  DtReaderWriterRegistry* parentRegistry = 0);
45 
48  const DtString& rwName = DtString::nullString(),
49  DtReaderWriterRegistry* parentRegistry = 0);
50 
53  const DtGroundVehicleStateRepository& orig);
54 
57 
59  const DtString& rwName = DtString::nullString(),
60  DtReaderWriterRegistry* parentRegistry = 0) const;
61 
62  virtual bool init();
63 
65  virtual DtString type() const;
66 
68  virtual const int vrfMovingObjectStateRepositorySubType() const;
69 
71  virtual const int groundEntityStateRepositorySubType() const;
72 
73  virtual bool createParameters();
74  virtual void initializeFromParameters();
75  virtual const DtGroundVehicleParameters* groundVehicleParameters() const;
76 
77  virtual DtSoilFactors* lookupSoilFactors (const DtString& soilType);
78  virtual void addSoilFactors (DtSoilFactors* soilFactors);
79  virtual void removeSoilFactors (DtSoilFactors* soilFactors);
80 
84  virtual const DtGroundInteractionPt* rearSupport() const;
85  virtual DtGroundInteractionPt* rearSupport();
86  virtual void setRearSupport(const DtVector& rearSupport);
87 
88 
89  static DtVrfObjectStateRepository* creator (const DtString& name,
90  DtVrfObject* vrfObject,const DtObjectType& objectType,
91  DtVrfObjectParameters* parameters,
92  DtReaderWriterRegistry* parentRegistry);
93 
96  static DtGroundVehicleStateRepository* isGroundVehicleStateRepository(
97  DtSimObjectStateRepository* repository);
98 
99  static const DtGroundVehicleStateRepository* isGroundVehicleStateRepository(
100  const DtSimObjectStateRepository* repository);
101 
102 protected:
104 };
105 #endif
Instances of DtVrfObjectParameters are the readable/writeable objects that contain the information ne...
Definition: vrfObjectParameters.h:59
Description: This repository holds all information that is common to all the forms of local ground en...
Definition: groundVehicleStateRepository.h:32
Contains the DtVrfMovingObjectStateRepository class declaration.
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual bool init()
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:29
virtual void initializeFromParameters()
*virtual const DtObjectType & objectType() const
DtVrfMovingObjectStateRepository & operator=(const DtVrfMovingObjectStateRepository &orig)
Assignment Operator.
The DtSimObjectStateRepository is an abstract base class (ABC) for all state repositories.
Definition: simObjectStateRepository.h:46
Definition: readerWriterRegistry.h:39
virtual const int vrfMovingObjectStateRepositorySubType() const
Returns DtVrfMovingObjectStateRepositorySubTypeBase.
Description: This repository holds all information that is common to all the forms of all entity/aggr...
Definition: vrfObjectStateRepository.h:87
virtual DtString type() const
returns DtSimObjectStateRepositoryType
virtual DtSimObjectStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const
Clone method.
Definition: objectType.h:27
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtSoilList mySoilList
Definition: groundVehicleStateRepository.h:103
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
Class Invariant: The DtGroundInteractionPt class must always have a valid DtAttachedTerrain or DtSimM...
Definition: groundInteractionPt.h:28
static DtVrfObjectStateRepository * creator(const DtString &name, DtVrfObject *vrfObject, const DtObjectType &objectType, DtVrfObjectParameters *parameters, DtReaderWriterRegistry *parentRegistry)
Creator method.

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)