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) 2018 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();
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);
149 
152  static void aggregateAddedCallback(DtReflectedExtAggregate* aggregate, void* userData);
153  virtual void aggregateAdded(DtReflectedExtAggregate*);
154 
155 #if DtHLA
156  virtual DtReflectedObject* newReflectedObject(DtHlaObject* obj) const;
158 #else // DIS
159  virtual DtReflectedAggregate* newReflectedAggregate(const DtEntityIdentifier& id,
161  const DtEntityType& type) const;
162 
163  virtual DtReflectedAggregate* processAggregateState(const DtAggregateStatePdu& pdu);
164  virtual void finalPduIsSetAction(DtReflectedAggregate* aggregate);
165 #endif
166 
167 protected:
168 
171 
173 };
Instances of DtVrfParameterDb are the database of DtVrfObjectParameters objects used in the construct...
Definition: vrfParameterDb.h:40
DtRwProperties myParameterPropertiesPrototype
Definition: reflectedExtAggregateList.h:170
Definition: reflectedExtAggregate.h:35
static const DtRwProperties & emptyProperties()
void(* DtExtAggregateCallbackFunction)(DtReflectedExtAggregate *obj, void *userData)
Definition: reflectedExtAggregate.h:29
static DtExtendedAttributesInitializerPtr theInitializer
Definition: reflectedExtAggregateList.h:172
DtRwProperties myStatePropertiesPrototype
Definition: reflectedExtAggregateList.h:169
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:157
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)