VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
groundVehicleParameters.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: gndVehPar.h,v $ $Revision: 1.31 $ $State: Exp $
7 *******************************************************************************/
8 
11 
14 
15 #ifndef groundVehicleParameters_H_
16 #define groundVehicleParameters_H_
17 
19 
20 #include <readerWriter/rwBoolean.h>
21 #include "readerWriter/rwVector.h"
22 #include "vrfutil/soilList.h"
23 
24 class DtString;
26 class DtEnvironment;
27 
34 {
35 public:
37  DtGroundVehicleParameters (const DtString& name = DtString::nullString(),
38  DtReaderWriterRegistry* parentRegistry = NULL, DtEnvironmentSP env = DtEnvironmentSP(), DtEnvValueSP* objectNode = NULL);
40  DtReaderWriterRegistry* parentRegistry = NULL, DtEnvironmentSP env = DtEnvironmentSP(), DtEnvValueSP* objectNode = NULL);
41 
42 protected:
45  const DtString& name = DtString::nullString(),
46  DtReaderWriterRegistry* parentRegistry = NULL);
48  const DtSymbolString& name,
49  DtReaderWriterRegistry* parentRegistry = NULL);
50 
51 public:
53  const DtGroundVehicleParameters& orig);
54 
56  virtual ~DtGroundVehicleParameters();
57 
58  virtual DtVrfObjectParameters* clone(const DtString& name =
59  DtString::nullString(), DtReaderWriterRegistry* parentRegistry = NULL) const;
60  virtual DtVrfObjectParameters* clone(const DtSymbolString& name,
61  DtReaderWriterRegistry* parentRegistry = NULL) const;
62 
65  virtual bool inheritValues (const DtVrfObjectParameters * benefactor);
66 
68 
69  virtual const DtSoilList& soilList() const;
70  virtual DtSoilList& soilList();
72 
73  virtual const DtVector& rearSupport() const;
74  virtual void setRearSupport(const DtVector& rearSupport);
75 
76  virtual DtSoilFactors * lookupSoilFactors(const DtString& soilType);
77  virtual void addSoilFactors(DtSoilFactors* soilFactors);
78  virtual void removeSoilFactors(DtSoilFactors* soilFactors);
79 
81  virtual void getSelf(DtlObjPtr args,
83  const DtVariableBindingsList& variableBindings = nullVariableReference());
84 
87  virtual DtString type() const;
88 
90  benefactor);
91 public:
92 
94  static DtVrfObjectParameters* creator(DtEnvironmentSP env, DtEnvValueSP* objectNode);
95 
96 protected:
100 
135 
137 };
138 
139 #endif
Instances of DtVrfObjectParameters are the readable/writeable objects that contain the information ne...
Definition: vrfObjectParameters.h:63
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
virtual bool inheritValues(const DtVrfObjectParameters *benefactor)
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=DtReaderWriter::SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Override so we can figure out what kind of DtVrfStateRepositoryUserExtension to instantiate before ca...
Contains the DtMovingObjectParameters class declaration.
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DT_DLL_readerWriter DtBoost::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
Definition: readerWriterRegistry.h:39
const DtMovingObjectParameters & operator=(const DtMovingObjectParameters &orig)
assignment operator
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
The moving-object-param parameter type is used for objects that are capable of movement, such as individual entities and aggregates. DtMovingObjectParameters; holds all of the configurable parameters for the DtVrfMovingObjectStateRepository class. Parameters include support points, maximum speed, maximum reverse speed, turning radius, maximum slope, ordered speed, maximum acceleration, maximum deceleration, and fuel efficiency. Aggregates are moving objects and have this parameter type. All of the platform-specific parameter types derive from this one. .
Definition: movingObjectParameters.h:32
Contains the set of readable/writeable parameters associated with a ground vehicle entity...
Definition: groundVehicleParameters.h:33
virtual DtString type() const
Should return the type of object this is a parameter block for. Use the strings in vrfParamTypes...
class DtSoilList:
Definition: soilList.h:32
static DtVrfObjectParameters * creator(DtEnvironmentSP env, DtEnvValueSP *objectNode)
static const DtVariableBindingsList & nullVariableReference()
virtual void inheritValuesFromThisType(const DtMovingObjectParameters *benefactor)
class DtSoilFactors:
Definition: soilFactors.h:31
DtSoilList mySoilList
Parameter Name: soil-list Parameter Description: List of soil factor parameters. Each soil factor has...
Definition: groundVehicleParameters.h:134
virtual DtVrfObjectParameters * clone(const DtString &name=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=NULL) const
File: rwVector.h.

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)