VR-Forces 5.0.3 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();
55 
56  virtual bool init();
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 
69  virtual DtString type() const;
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:63
Definition: symbolString.h:20
virtual bool inheritValues(const DtVrfObjectParameters *benefactor)
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
DT_DLL_readerWriter DtBoost::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
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.
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
virtual DtString type() const
Should return the type of object this is a parameter block for. Use the strings in vrfParamTypes...
static DtVrfObjectParameters * creator(DtEnvironmentSP env, DtEnvValueSP *objectNode)
virtual void inheritValuesFromThisType(const DtMovingObjectParameters *benefactor)
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
Contains the set of readable/writeable parameters associated with a pseudo-aggregate entities...
Definition: aggregateObjectParameters.h:29
virtual DtVrfObjectParameters * clone(const DtString &name=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=NULL) const
File: rwVector.h.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)