VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
reflectedExtAggregateList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
15 #include <vl/reflectedAggregateList.h>
16 #include <vl/dataInteraction.h>
17 #include <vlutil/vlSmartPointers.h>
18 
19 class DtRwProperties;
20 class DtVrfParameterDb;
21 
28 {
29 
30 public:
31 
37  DtReflectedExtAggregateList(DtExerciseConn* exConn,
38  const DtRwProperties& stateProps = DtRwProperties::emptyProperties(),
39  const DtRwProperties& paramProps = DtRwProperties::emptyProperties());
40  DtReflectedExtAggregateList(DtExerciseConn* exConn, bool smoothCapable,
41  const DtRwProperties& stateProps = DtRwProperties::emptyProperties(),
42  const DtRwProperties& paramProps = DtRwProperties::emptyProperties());
43 
44 #if DtHLA
45  DtReflectedExtAggregateList(DtExerciseConn* exConn,
51  const DtDDMRegionSet* regionSetToUse,
52  const DtRwProperties& stateProps = DtRwProperties::emptyProperties(),
53  const DtRwProperties& paramProps = DtRwProperties::emptyProperties());
54 
60  DtReflectedExtAggregateList(DtExerciseConn* exConn,
61  const DtList *handleList, const DtDDMRegionSet* regionSetToUse = 0,
62  const DtRwProperties& stateProps = DtRwProperties::emptyProperties(),
63  const DtRwProperties& paramProps = DtRwProperties::emptyProperties());
64 
65 #endif
66 
68  virtual ~DtReflectedExtAggregateList() override;
69 
73  virtual void setPropertyPrototypes(const DtRwProperties& stateProps,
74  const DtRwProperties& paramProps);
75 
76 #if DtHLA
77 #if DtHLA_1516
78  virtual DtReflectedExtAggregate* lookupEA ( RTI::ObjectInstanceHandle id);
80 #else
81  virtual DtReflectedExtAggregate* lookupEA ( RTI::ObjectHandle id);
83 #endif
84 
86  virtual DtReflectedExtAggregate* lookupEA (
87  const DtGlobalObjectDesignator& objName);
88 #else // DIS
89  virtual DtReflectedExtAggregate* lookup(const DtObjectId& id);
91 #endif
92 
94  virtual DtReflectedExtAggregate* firstEA() const;
95 
97  virtual DtReflectedExtAggregate* lastEA() const;
98 
100  virtual void addAggregateAdditionCallback
101  (
102  DtExtAggregateCallbackFunction cb, void* userData
103  );
104 
106  virtual void removeAggregateAdditionCallback
107  (
108  DtExtAggregateCallbackFunction cb, void* userData
109  );
110 
112  virtual void addAggregateRemovalCallback
113  (
114  DtExtAggregateCallbackFunction cb, void* userData
115  );
116 
118  virtual void removeAggregateRemovalCallback
119  (
120  DtExtAggregateCallbackFunction cb, void* userData
121  );
122 
124  static void setInitializer(DtExtendedAttributesInitializerPtr init);
125 
127  static DtExtendedAttributesInitializerPtr initializer();
128 
129 private:
130 
133 
136 
137 protected:
138 
139  static void dataInteractionCallback(DtDataInteraction* i, void* usr);
140 
141  virtual void processDataInteraction(DtDataInteraction* i);
142 
144  void initializeExtendedProperties();
145 
148  virtual bool readyToAdd(DtReflectedObject *obj) override;
149 
152  static void aggregateAddedCallback(DtReflectedExtAggregate* aggregate, void* userData);
153  virtual void aggregateAdded(DtReflectedExtAggregate*);
154 
155 #if DtHLA
156  virtual DtReflectedObject *
158  newReflectedObject(DtHlaObject *obj) const override;
159 #else // DIS
160  virtual DtReflectedAggregate *
162  newReflectedAggregate(const DtEntityIdentifier &id,
163  const DtEntityType &type) const override;
164 
165  virtual DtReflectedAggregate *
166  processAggregateState(const DtAggregateStatePdu &pdu) override;
167  virtual void finalPduIsSetAction(DtReflectedAggregate* aggregate);
168 #endif
169 
170 protected:
171 
174 
176 };
Instances of DtVrfParameterDb are the database of DtVrfObjectParameters objects used in the construct...
Definition: vrfParameterDb.h:41
DtRwProperties myParameterPropertiesPrototype
Definition: reflectedExtAggregateList.h:173
Definition: reflectedExtAggregate.h:35
static const DtRwProperties & emptyProperties()
void(* DtExtAggregateCallbackFunction)(DtReflectedExtAggregate *obj, void *userData)
Definition: reflectedExtAggregate.h:29
static DtExtendedAttributesInitializerPtr theInitializer
Definition: reflectedExtAggregateList.h:175
DtRwProperties myStatePropertiesPrototype
Definition: reflectedExtAggregateList.h:172
Contains the DtReflectedExtAggregate class declaration.
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
std::shared_ptr< DtExtendedAttributesInitializer > DtExtendedAttributesInitializerPtr
Definition: extendedAttributesInitializer.h:162
A list of properties. A DtPropertyInterface object that is a specialized version of DtRwVariableBindi...
Definition: rwProperties.h:122
class DtReflectedExtAggregateList:
Definition: reflectedExtAggregateList.h:27
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

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)