VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregatedMovementDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
16 #include <boost/noncopyable.hpp>
17 
21 {
22 public:
25  : public DtReaderWriter
26  {
27  public:
28  MobilityEntry(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0);
29  MobilityEntry(const MobilityEntry& orig);
30 
31  virtual DtString queryName() const;
32  virtual double speedFactor() const;
33  virtual double priority() const;
34 
38  virtual const char* readerWriterType() const;
39 
41  static const char* theXmlType();
42 
43  virtual const char* xmlType() const
44  {
45  return theXmlType();
46  }
47 
48  protected:
52  };
53 
55 
56  static DtComponentDescriptor* creator();
57 
58  explicit DtAggregatedMovementDescriptor(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0);
59 
60  DtAggregatedMovementDescriptor* clone(DtReaderWriterRegistry* parentRegistry = 0) const;
61 
62  DtString type() const;
63 
64  virtual const MobilityList& mobilityList() const;
65  bool clampToGround() const;
66 
69  virtual double retrogradeMovementPenalty() const;
70  virtual void setRetrogradeMovementPenalty(double distance);
72 
75  virtual DtString engineeringObjectQueryName() const;
76  virtual void setEngineeringObjectQueryName(const DtString& name);
78 
81  virtual DtString engineeringObjectObstacleQueryName() const;
82  virtual void setEngineeringObjectObstacleQueryName(const DtString& name);
84 
87  virtual DtString movementType() const;
88  virtual void setMovementType(const DtString& t);
90 
93  virtual double supplyCheckPeriod()const;
94  virtual void setSupplyCheckPeriod(const double t);
96 
99  virtual double minimumAirborneAltitude()const;
100  virtual void setMinimumAirborneAltitude(const double alt);
102 
105  virtual double defaultAltitude()const;
106  virtual void setDefaultAltitude(const double alt);
108 
109 protected:
111  const DtAggregatedMovementDescriptor& orig, DtReaderWriterRegistry* parentRegistry = 0);
112 
115 
121 
127 
134 
141 
148 
155 
163 };
DtRwReal myDefaultAltitude
Parameter Name: default-agl Parameter Description: The altitude (AGL) will use by default when it sta...
Definition: aggregatedMovementDescriptor.h:162
DtRwString myQueryName
Definition: aggregatedMovementDescriptor.h:49
DtRwReal myMinimumAirborneAltitude
Parameter Name: min-airborne-altitude Parameter Description: The minimum altitude (meters AGL) an ent...
Definition: aggregatedMovementDescriptor.h:154
DtRwReal myPriority
Definition: aggregatedMovementDescriptor.h:51
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
End User Description: DtActuatorComponentDescriptor contains parameters common to all actuator compon...
Definition: actuatorComponentDescriptor.h:47
DtRwBoolean myClampToGroundFlag
Definition: aggregatedMovementDescriptor.h:114
DtRwReal myRetrogradeMovementPenalty
Parameter Name: retrograde-movement-penalty Parameter Description: If in retrograde movement...
Definition: aggregatedMovementDescriptor.h:120
MobilityList myMobilityList
Definition: aggregatedMovementDescriptor.h:113
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtRwReal mySpeedFactor
Definition: aggregatedMovementDescriptor.h:50
DtRwReal mySupplyCheckPeriod
Parameter Name: supply-check-period Parameter Description: The time, in seconds, between checks of su...
Definition: aggregatedMovementDescriptor.h:147
DtRwTemplatedListPtr< MobilityEntry, true > MobilityList
Definition: aggregatedMovementDescriptor.h:54
DtRwString myMovementType
Parameter Name: movement-type Parameter Description: The type of movement this actuator performs...
Definition: aggregatedMovementDescriptor.h:140
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
DtAggregatedMovementDescriptor is the descriptor for DtAggregatedMovementActuator.
Definition: aggregatedMovementDescriptor.h:20
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
ReaderWriter class which represents one terrain mobility entry.
Definition: aggregatedMovementDescriptor.h:24
DtRwString myEngineeringObjectObstacleQueryName
Parameter Name: engineering-object-obstacle-query-name Parameter Description: Name of the feature que...
Definition: aggregatedMovementDescriptor.h:133
virtual const char * xmlType() const
Definition: aggregatedMovementDescriptor.h:43
DtRwString myEngineeringObjectQueryName
Parameter Name: engineering-object-query-name Parameter Description: Name of the feature query to be ...
Definition: aggregatedMovementDescriptor.h:126

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)