VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateObjectParameters.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <readerWriter/rwBoolean.h>
15 #include "readerWriter/rwVector.h"
16 #include "vrfutil/soilList.h"
18 
19 class DtString;
21 class DtFormationTable;
22 class DtFormation;
23 class DtEnvironment;
24 
30 {
31 public:
33  DtAggregateObjectParameters (const DtString& name = DtString::nullString(),
34  DtReaderWriterRegistry* parentRegistry = NULL, DtEnvironmentSP env = DtEnvironmentSP(),
35  DtEnvValueSP* objectNode = NULL);
37  DtReaderWriterRegistry* parentRegistry = NULL, DtEnvironmentSP env = DtEnvironmentSP(),
38  DtEnvValueSP* objectNode = NULL);
39 
40 protected:
43  const DtString& name = DtString::nullString(),
44  DtReaderWriterRegistry* parentRegistry = NULL);
46  const DtSymbolString& name,
47  DtReaderWriterRegistry* parentRegistry = NULL);
48 
49 public:
51  const DtAggregateObjectParameters& orig);
52 
54  virtual ~DtAggregateObjectParameters() override;
55 
56  virtual bool init() override;
57 
59  const DtString& name = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = NULL) const override;
61  const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL) const override;
62 
65  virtual bool inheritValues(const DtVrfObjectParameters* benefactor) override;
66 
69  virtual DtString type() const override;
70 
72  benefactor);
73 
77  virtual DtFormation* getFormation(const DtString& formationName, DtString* retFormationName = NULL) const;
79  virtual DtFormation* getDefaultFormation() const;
80 
82  virtual DtFormationTable* formationTable();
83  virtual const DtFormationTable* formationTable() const;
84 
86  virtual bool canHaveSubordinates() const;
87  virtual void setCanHaveSubordinates(bool);
88 
89 protected:
92  virtual DtFormationTable* createFormationTable(const DtSymbolString& name,
93  DtReaderWriterRegistry* parentRegistry = NULL) const;
94 
95 public:
96 
98  static DtVrfObjectParameters* creator(DtEnvironmentSP env, DtEnvValueSP* objectNode);
99 
100 protected:
109 
116 };
Instances of DtVrfObjectParameters are the readable/writeable objects that contain the information ne...
Definition: vrfObjectParameters.h:64
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
Contains the DtMovingObjectParameters class declaration.
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtFormationTable * myFormationTable
Parameter Name: can-have-subordinates Parameter Description: Flag indicating whether or not this aggr...
Definition: aggregateObjectParameters.h:108
virtual DtString type() const override
Should return the type of object this is a parameter block for. Use the strings in vrfParamTypes...
Definition: readerWriterRegistry.h:39
Instances of DtFormation are a list of DtFormationEntry objects which make up an aggregate formation...
Definition: formation.h:22
DtRwBoolean myCanHaveSubordinates
Parameter Name: can-have-subordinates Parameter Description: Flag indicating whether or not this aggr...
Definition: aggregateObjectParameters.h:114
virtual bool init()
Invoked when created so that deriving classes may do virtual allocation as necessary. The base class version creates the local and remote composed object types. Calls createSubordinateObjectsList() and createAttachedObjectsList() to create the mySubordinateObjects and myAttachedObjects data members, respectively.
virtual bool inheritValues(const DtVrfObjectParameters *benefactor) override
virtual DtVrfObjectParameters * clone(const DtString &name=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=NULL) const override
const DtMovingObjectParameters & operator=(const DtMovingObjectParameters &orig)
assignment operator
DtFormationTable.
Definition: formationTable.h:23
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
static DtVrfObjectParameters * creator(DtEnvironmentSP env, DtEnvValueSP *objectNode)
virtual void inheritValuesFromThisType(const DtMovingObjectParameters *benefactor)
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DT_DLL_readerWriter std::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
Contains the set of readable/writeable parameters associated with a pseudo-aggregate entities...
Definition: aggregateObjectParameters.h:29
File: rwVector.h.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)