VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
stateDataWrapper.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
6 #pragma once
7 
15 #include <boost/signals2.hpp>
16 #include <matrix/vlVector.h>
17 #include <geometry/extent.h>
18 #include <vrfutil/rwUUID.h>
19 #include <vlpi/appearance.h>
20 #include <vlpi/disEnums.h>
21 #include <matrix/vlDcm.h>
22 #include <matrix/vlTaitBryan.h>
23 #include <map>
24 #include <list>
25 #include <tbb/spin_rw_mutex.h>
26 
27 class DtRwProperties;
28 
29 namespace makVrf
30 {
31  class DtIffStateComponent;
32  class DtLaserDesignatorStateComponent;
33  class DtExternalCurrentFrameState;
34  class DtStatePropertiesStateComponent;
35  class DtStateData;
36  class DtStateDataManager;
37  class DtVrfObjectGeometry;
38  class DtRwVrfKinematicState;
39 
50  {
51  private:
54 
55  public:
62  explicit DtStateDataWrapper(const DtStateDataManager* simManager, const DtUUID& uuid);
66  explicit DtStateDataWrapper(const DtStateDataManager* simManager, const DtEntityIdentifier& id);
69  explicit DtStateDataWrapper(const DtStateDataManager* simManager, const DtExternalCurrentFrameState*);
72  explicit DtStateDataWrapper(const DtStateData* sd);
73 
75  virtual ~DtStateDataWrapper();
76 
79  DtStateDataWrapper& operator=(const DtUUID&);
83 
85  bool operator==(const DtUUID& rhs) const;
87  bool operator==(const DtStateDataWrapper& rhs) const { return (*this == rhs.uuid()); };
88 
90  bool operator!=(const DtUUID& rhs) const { return !(*this == rhs); };
92  bool operator!=(const DtStateDataWrapper& rhs) const { return !(*this == rhs); };
93 
97  const DtUUID& uuid() const;
99  const DtString& objectName() const;
101  DtString label() const;
103  DtEntityType entityType() const;
105  DtEntityType objectType() const { return entityType(); };
107  unsigned long long userData() const;
111  const DtString& extendedData(const DtString& key) const;
113  std::map<DtString, DtString> extendedDataMap() const;
115  std::map<std::string, std::string> extendedDataStdStringMap() const;
118  bool hasExtendedData(const DtString& key) const;
120  DtString overlay() const;
122  DtAppearance appearance() const;
124  int capabilities() const;
126  DtEntityType guise() const;
128  const DtRwProperties& stateProperties() const;
130  const DtRwProperties& parameterProperties() const;
132  const DtString& sidc() const;
134 
136  bool isClutterEntity() const;
137 
139  DtVrfObjectGeometry objectGeometry() const;
140  virtual Dt3dBoundingVolume boundingVolume() const;
141 
143  const DtIffStateComponent* iffStateComponent() const;
144  std::vector<const DtLaserDesignatorStateComponent*> laserDesignatorStateComponents() const;
145 
148  {
149  return myAwaiting;
150  }
151 
153  bool isSpotReport() const;
154 
156  bool awaitingTransfer() const;
157 
159  bool isModified() const
160  {
161  if (myExternalCurrentFrameState)
162  {
163  return static_cast<const DtExternalCurrentFrameState*>(myExternalCurrentFrameState)->isModified();
164  }
165 
166  return false;
167  }
168 
172  template <typename T_Component>
173  const T_Component* getStateComponent() const
174  {
175  if (myExternalCurrentFrameState)
176  {
177  return myExternalCurrentFrameState->getStateComponent<T_Component>();
178  }
179 
180  return nullptr;
181  }
182 
185  template <typename T_Component>
186  std::vector<const T_Component*> getStateComponentList() const
187  {
188  if (myExternalCurrentFrameState)
189  {
190  return myExternalCurrentFrameState->getStateComponentList<T_Component>();
191  }
192 
193  return std::vector<const T_Component*>();
194  }
195 
197  template <typename T_Component>
198  bool hasStateComponent() const
199  {
200  if (myExternalCurrentFrameState)
201  {
202  return myExternalCurrentFrameState->hasStateComponent<T_Component>();
203  }
204 
205  return false;
206  }
208 
211  DtRwVrfKinematicState kinematicState() const;
212 
216  const DtVector& worldPosition() const;
218  const DtVector& localPosition() const;
220  const DtVector& parentPosition() const;
224  double distSquaredTo(const DtVector&) const;
225 
227  bool hasLocationChanged() const;
228 
231  bool objectVerticesChanged() const;
232 
235  bool worldVerticesChanged() const;
236 
238  bool haveVerticesChanged() const;
239 
241  virtual void frameAdvanced();
243  virtual void firstFrameAdvance();
244 
246  const DtStateData* stateData() const
247  {
248  return myStateData;
249  }
250 
252  DtUUID hostGlobalId() const;
254  DtString parentGlobalId() const;
255 
258  const DtTaitBryan& topographicOrientation() const;
260  const DtTaitBryan& worldOrientation() const;
262  const DtTaitBryan& localOrientation() const;
264  const DtTaitBryan& parentOrientation() const;
266  const DtTaitBryan& localOrientationWrtDatabase() const;
268  const DtDcm& localOrientationMatrix() const;
270  const DtDcm& parentOrientationMatrix() const;
272  const DtDcm& worldOrientationMatrix() const;
274  double heading() const;
276  double pitch() const;
278  double roll() const;
280 
282  DtForceType forceType() const;
283 
285  const DtEntityIdentifier& entityId() const;
287  const DtEntityIdentifier& objectIdentifier() const
288  {
289  return entityId();
290  }
291 
293  DtSimulationAddress simEngineAddress() const;
294 
296  bool isDestroyed() const;
298  int damageState() const;
299 
301  const DtString& globalId() const;
302 
306  bool isUnit() const;
308 
310  bool isEntityOrUnit() const;
312  bool isSimulatedObject() const { return isEntityOrUnit(); };
313 
315  bool isEntity() const;
316 
319  bool isEmbarked() const;
320 
322  DtUUID embarkedOn() const;
325  bool isEmbarkedOn(const DtUUID&) const;
327 
330  virtual bool checkValidity() const;
331 
332 #if defined(WIN32) || defined(_WIN32)
333  __declspec(deprecated("Method is deprecated. If this is a DtSimObjectReference use the ref.isValid() check instead.")) bool isValid() const { return checkValidity(); };
334 #endif
335 
337  int sessionId() const;
339  bool isVrfSimulatedObject() const;
341  bool isCurrentlyTasked() const;
343  bool isExecutingPlan() const;
345  bool hasPlan() const;
347  bool independentlyTasked() const;
349  bool underFire() const;
351  DtString rulesOfEngagement() const;
352 
354  DtEchelonId echelonId() const;
355 
357  bool isDeleted() const;
358 
360  virtual void makeInvalid();
361 
363  const DtLocalVertexList& localVertices() const;
365  std::vector<DtVector> localVertexList() const;
366 
368  const DtVertexList& worldVertices() const;
370  std::vector<DtVector> worldVertexList() const;
371 
373  const DtLocalVertexList& relativeVertices() const;
375  std::vector<DtVector> relativeVertexList() const;
376 
378  unsigned long long legionGlobalId() const;
379 
381  bool advancedFrame() const
382  {
383  return myAdvancedFrame;
384  }
385 
387  DtUUID superiorUUID() const;
388 
390  bool isTopLevel() const;
391 
394  {
395  return myExternalCurrentFrameState;
396  }
397 
398  public:
401  boost::signals2::signal<void ()> signal_objectVerticesChanged;
402 
404  mutable boost::signals2::signal<void ()> signal_extendedDataUpdated;
405 
407  mutable boost::signals2::signal<void ()> signal_simObjectDeleted;
408 
410  mutable boost::signals2::signal<void (const DtString&)> signal_discoveredReference;
411 
413  mutable boost::signals2::signal<void (const DtUUID& oldUUID, const DtUUID& newUUID)> signal_uuidChanged;
414 
416  mutable boost::signals2::signal<void (const DtSimulationAddress& oldAddr, const DtSimulationAddress& newAddr)> signal_simEngineAddressChanged;
417 
419  mutable boost::signals2::signal<void (const DtString& oldName, const DtString& newName)> signal_objectRenamed;
420 
422  mutable boost::signals2::signal<void (const DtUUID& oldSuperior, const DtUUID& newSuperior)> signal_superiorChanged;
423 
425  mutable boost::signals2::signal<void()> signal_isClutterChanged;
426 
428  mutable boost::signals2::signal<void (DtStateComponent*)> signal_stateComponentAdded;
430  mutable boost::signals2::signal<void (DtStateComponent*)> signal_stateComponentRemoved;
431 
436  mutable boost::signals2::signal<void ()> signal_advancedFrame;
437 
439  boost::signals2::signal<void ()> signal_firstFrameAdvance;
440 
441  public:
444  {
445  if (myCurrentFrameSimulatedObjectStateComponent)
446  {
447  return myCurrentFrameSimulatedObjectStateComponent;
448  }
449  else if (!myCachedComponents && hasStateComponent<DtSimulatedObjectStateComponent>())
450  {
451  return getStateComponent<DtSimulatedObjectStateComponent>();
452  }
453  else
454  {
455  return nullptr;
456  }
457  }
458 
461  {
462  if (myCurrentFrameLocationStateComponent)
463  {
464  return myCurrentFrameLocationStateComponent;
465  }
466  else if (!myCachedComponents && hasStateComponent<DtLocationStateComponent>())
467  {
468  return getStateComponent<DtLocationStateComponent>();
469  }
470  else
471  {
472  return nullptr;
473  }
474  }
475 
478  {
479  if (myCurrentFrameStatePropertiesStateComponent)
480  {
481  return myCurrentFrameStatePropertiesStateComponent;
482  }
483  else if (!myCachedComponents && hasStateComponent<DtStatePropertiesStateComponent>())
484  {
485  return getStateComponent<DtStatePropertiesStateComponent>();
486  }
487  else
488  {
489  return nullptr;
490  }
491  }
492 
495  {
496  if (myCurrentFrameVrfGeometryStateComponent)
497  {
498  return myCurrentFrameVrfGeometryStateComponent;
499  }
500  else if (!myCachedComponents && hasStateComponent<DtVrfGeometryStateComponent>())
501  {
502  return getStateComponent<DtVrfGeometryStateComponent>();
503  }
504  else
505  {
506  return nullptr;
507  }
508  }
509 
512  {
513  return myCurrentFrameEntityStateComponent;
514  }
515 
518  {
519  if (myCurrentFrameVrfStateComponent)
520  {
521  return myCurrentFrameVrfStateComponent;
522  }
523  else if (!myCachedComponents && hasStateComponent<DtVrfStateComponent>())
524  {
525  return getStateComponent<DtVrfStateComponent>();
526  }
527  else
528  {
529  return nullptr;
530  }
531  }
532 
534  std::set<int> currentFrameModifiedStateComponentTypes() const;
536  std::set<int> nextFrameModifiedStateComponentTypes() const;
537 
538  protected:
542  virtual const DtStateData* stateDataFor(const DtUUID& uuid) const;
544  virtual void cacheComponents();
546  virtual void clearCachedComponents();
547 
550  virtual void stateDataAdded(DtStateData*);
553  virtual void setUUID(const DtUUID&);
556  bool checkAndConnectForVrfStateComponent();
557 
561  void uuidChanged(const DtUUID&, const DtUUID&);
565  virtual void objectNameChanged(const DtString& oldText, const DtString& newText);
566 
568  virtual void completeSetup();
570  virtual void extendedDataUpdated();
572  virtual void superiorChanged();
574  virtual void isClutterChanged();
575 
577  virtual void externalFrameStateToBeDestroyed();
580  virtual void slot_stateComponentAdded(DtStateComponent*);
583  virtual void slot_stateComponentRemoved(DtStateComponent*);
587  virtual void simEngineAddressChanged(const DtSimulationAddress& oldAddress, const DtSimulationAddress& newAddress);
588 
589  protected:
592 
594  boost::signals2::scoped_connection myStateComponentAddedConnection;
596  boost::signals2::scoped_connection myStateComponentRemovedConnection;
598  boost::signals2::scoped_connection myDeletedConnection;
600  boost::signals2::scoped_connection myAddedConnection;
602  boost::signals2::scoped_connection myUUIDChangedConnection;
604  boost::signals2::scoped_connection myObjectNameChangedConnection;
606  boost::signals2::scoped_connection myExtendedDataUpdatedConnection;
608  boost::signals2::scoped_connection myFirstFrameAdvancedConnection;
610  boost::signals2::scoped_connection mySuperiorChangedConnection;
612  boost::signals2::scoped_connection myAdvancedFrameConnection;
614  boost::signals2::scoped_connection myIsClutterChangedConnection;
616  boost::signals2::scoped_connection mySimEngineAddressChangedConnection;
617 
621 
625  unsigned long long myLegionGlobalId;
626 
629 
633  mutable DtEntityType myEntityType;
634 
639 
641  mutable tbb::spin_rw_mutex myExternalCurrentFrameStateMutex;
642 
645 
658 
661 
663  const DtStateData* myStateData = nullptr;
664 
665  protected:
668  };
669 }
const DtSimulatedObjectStateComponent * currentFrameSimulatedObjectStateComponent() const
Definition: stateDataWrapper.h:443
UUID is a unique ID wrapper class.
Definition: uuid.h:59
boost::signals2::scoped_connection mySuperiorChangedConnection
Connection to signal_superiorChanged on the tracked state data.
Definition: stateDataWrapper.h:610
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: statePropertiesStateComponent.h:106
DtUUID myEmbarkedOn
UUID of the host object this object is embarked on, or null UUID if not embarked. ...
Definition: stateDataWrapper.h:644
boost::signals2::scoped_connection myExtendedDataUpdatedConnection
Connection to signal_extendedDataUpdated on the tracked state data.
Definition: stateDataWrapper.h:606
DtUUID mySuperiorUUID
UUID of this object&#39;s superior unit, or null UUID if it has no superior.
Definition: stateDataWrapper.h:636
const DtUUID & uuid() const
Convenience accessors for various pieces of state data.
DtStateDataWrapper & operator=(const DtStateDataWrapper &rhs)
Reassigns this wrapper to refer to the same simulation object as rhs.
Definition: stateDataWrapper.h:82
The DtLocationStateComponent interface contains the interface that all DtLocationStateComponents can ...
Definition: locationStateComponent.h:25
bool operator!=(const DtUUID &rhs) const
Returns true if this wrapper does not refer to the simulation object with the given UUID...
Definition: stateDataWrapper.h:90
Abstract base interface for the entity state component.
Definition: entityStateComponent.h:141
const DtStatePropertiesStateComponent * myCurrentFrameStatePropertiesStateComponent
Cached state properties component pointer for the current frame; nullptr if absent.
Definition: stateDataWrapper.h:657
DtUUID myUUID
Once assigned, the UUID of this object. This will be valid even after the object is deleted...
Definition: stateDataWrapper.h:623
The DtSimulatedObjectStateComponent is an interface that all main components (those that are consider...
Definition: simulatedObjectStateComponent.h:21
DT_DLL_VRFGUICORE bool operator==(const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &lhs, const std::vector< makArchives::DtEnvironmentRecord::DtElevationalConfigurationRecord > &rhs)
boost::signals2::scoped_connection myAddedConnection
Connection to signal_stateDataAdded on the state data manager (used while awaiting).
Definition: stateDataWrapper.h:600
bool isSimulatedObject() const
Returns true if this object is an entity or aggregate unit (not environmental); synonym for isEntityO...
Definition: stateDataWrapper.h:312
const DtLocationStateComponent * myCurrentFrameLocationStateComponent
Cached location state component pointer for the current frame; nullptr if absent. ...
Definition: stateDataWrapper.h:653
const DtLocationStateComponent * currentFrameLocationStateComponent() const
Definition: stateDataWrapper.h:460
boost::signals2::signal< void()> signal_extendedDataUpdated
Signal sent out (during advance frame) when the extended data has been updated.
Definition: stateDataWrapper.h:404
Contains the DtUUID class declaration.
boost::signals2::scoped_connection myObjectNameChangedConnection
Connection to signal_objectNameChanged on the tracked state data.
Definition: stateDataWrapper.h:604
const T_Component * getStateComponent() const
Returns the single state component of the given type, if present. Use this for components that do not...
Definition: stateDataWrapper.h:173
const DtExternalFrameStateInterface * externalCurrentFrameState() const
Definition: stateDataWrapper.h:393
const DtVrfStateComponent * currentFrameVrfStateComponent() const
Definition: stateDataWrapper.h:517
boost::signals2::signal< void()> signal_firstFrameAdvance
Signal when the frame is advanced for the first time.
Definition: stateDataWrapper.h:439
boost::signals2::signal< void(DtStateComponent *)> signal_stateComponentRemoved
Signal sent when a state component is removed from this object.
Definition: stateDataWrapper.h:430
const DtSimulatedObjectStateComponent * myCurrentFrameSimulatedObjectStateComponent
Cached simulated object state component pointer for the current frame; nullptr if absent...
Definition: stateDataWrapper.h:647
bool operator!=(const DtStateDataWrapper &rhs) const
Returns true if this wrapper does not refer to the same simulation object as rhs. ...
Definition: stateDataWrapper.h:92
boost::signals2::signal< void()> signal_isClutterChanged
Signal sent out (during advance frame) when the is-clutter flag has been updated. ...
Definition: stateDataWrapper.h:425
boost::signals2::scoped_connection myStateComponentRemovedConnection
Connection to signal_stateComponentRemoved on the tracked state data.
Definition: stateDataWrapper.h:596
1) Define the interface class that will be used to represent the next and current frames...
Definition: vrfGeometryStateComponent.h:65
const DtEntityIdentifier & objectIdentifier() const
Definition: stateDataWrapper.h:287
bool advancedFrame() const
Will be true if this object has advanced at least one frame.
Definition: stateDataWrapper.h:381
boost::signals2::signal< void(DtStateComponent *)> signal_stateComponentAdded
Signal sent when a state component is added to this object.
Definition: stateDataWrapper.h:428
boost::signals2::signal< void()> signal_objectVerticesChanged
Signal sent when the user changes the vertices via a set command. If this is a remote object...
Definition: stateDataWrapper.h:401
boost::signals2::signal< void(const DtString &)> signal_discoveredReference
Signal sent if this was awaiting for the base data to show up, and, it has.
Definition: stateDataWrapper.h:410
boost::signals2::scoped_connection myIsClutterChangedConnection
Connection to signal_isClutterChanged on the tracked state data.
Definition: stateDataWrapper.h:614
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: vrfStateComponent.h:72
const DtStateDataManager * myStateDataManager
The state data manager used to resolve UUID and entity identifier lookups.
Definition: stateDataWrapper.h:667
boost::signals2::scoped_connection myAdvancedFrameConnection
Connection to signal_frameAdvanced on the tracked state data.
Definition: stateDataWrapper.h:612
boost::signals2::signal< void(const DtSimulationAddress &oldAddr, const DtSimulationAddress &newAddr)> signal_simEngineAddressChanged
Signal sent when the backend hosting this object has changed. Sent during a frame advance...
Definition: stateDataWrapper.h:416
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:513
boost::signals2::scoped_connection myDeletedConnection
Connection to signal_externalFrameStateToBeDestroyed on the current frame state.
Definition: stateDataWrapper.h:598
DtString awaiting() const
If awaiting, who awaiting for.
Definition: stateDataWrapper.h:147
bool hasStateComponent() const
Returns true if this object currently has a state component of the given type.
Definition: stateDataWrapper.h:198
const DtStateData * stateData() const
Definition: stateDataWrapper.h:246
class DtVertexList:
Definition: vertexList.h:22
DtEntityType myEntityType
Cached entity type used for debug and logging; updated when the object is resolved.
Definition: stateDataWrapper.h:633
boost::signals2::signal< void()> signal_simObjectDeleted
Signal sent when this simulation object has been deleted from the exercise.
Definition: stateDataWrapper.h:407
bool isModified() const
Returns true if the underlying state data was modified during the current simulation frame...
Definition: stateDataWrapper.h:159
const DtEntityStateComponent * myCurrentFrameEntityStateComponent
Cached entity state component pointer for the current frame; nullptr if absent.
Definition: stateDataWrapper.h:651
Read-only view of the current (committed) frame state components within a DtStateData. Safe to access from any thread once the frame has been advanced.
Definition: stateData.h:391
This class maintains a rectangular bounding volume and an ordered list of vertices describing the phy...
Definition: vrfObjectGeometry.h:39
boost::signals2::scoped_connection myUUIDChangedConnection
Connection to signal_uuidChanged on the tracked state data.
Definition: stateDataWrapper.h:602
Definition: echelonId.h:13
bool operator==(const DtStateDataWrapper &rhs) const
Returns true if this wrapper refers to the same simulation object as rhs.
Definition: stateDataWrapper.h:87
const DtVrfGeometryStateComponent * currentFrameVrfGeometryStateComponent() const
Definition: stateDataWrapper.h:494
Definition: stateComponent.h:52
boost::signals2::signal< void(const DtString &oldName, const DtString &newName)> signal_objectRenamed
Signal sent when the uuid of this object has changed. Sent during a frame advance.
Definition: stateDataWrapper.h:419
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: stateDataWrapper.h:49
const DtEntityStateComponent * currentFrameEntityStateComponent() const
Definition: stateDataWrapper.h:511
DtEntityType objectType() const
Definition: stateDataWrapper.h:105
DtString myObjectName
This is for debug purposes only. It will get set when the bounding volume is checked (and locked) and...
Definition: stateDataWrapper.h:631
unsigned long long myLegionGlobalId
Internal 64-bit legion global handle; initialized to 0xFFFFFFFFFFFFFFFF until resolved.
Definition: stateDataWrapper.h:625
boost::signals2::scoped_connection myFirstFrameAdvancedConnection
Connection to signal_firstFrameAdvance on the tracked state data.
Definition: stateDataWrapper.h:608
boost::signals2::scoped_connection mySimEngineAddressChangedConnection
Connection to signal_simEngineAddressChanged on the tracked state data.
Definition: stateDataWrapper.h:616
bool myAdvancedFrame
True once this object has advanced at least one simulation frame.
Definition: stateDataWrapper.h:638
Contains the declaration of the DtExtent class.
boost::signals2::signal< void(const DtUUID &oldSuperior, const DtUUID &newSuperior)> signal_superiorChanged
Signal sent when superior has changed.
Definition: stateDataWrapper.h:422
const DtVrfStateComponent * myCurrentFrameVrfStateComponent
Cached VRF state component pointer for the current frame; nullptr if absent.
Definition: stateDataWrapper.h:649
boost::signals2::scoped_connection myStateComponentAddedConnection
Connection to signal_stateComponentAdded on the tracked state data.
Definition: stateDataWrapper.h:594
const DtExternalFrameStateInterface * myExternalCurrentFrameState
Pointer to the current-frame read-only state interface; null if this object is invalid.
Definition: stateDataWrapper.h:591
Abstract base class that provides access to a set of state components within a DtStateData, representing either the next frame (read/write) or the current frame (read-only) view. Both DtExternalNextFrameState and DtExternalCurrentFrameState derive from this class.
Definition: stateData.h:76
A subclass extension of DtRwSimKinematicState for VRF-specific movable objects. This class is a DtRwS...
Definition: rwVrfKinematicState.h:28
#define DT_DLL_vrfStateData
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfStateDataDefines.h:29
A list of properties. A DtPropertyInterface object that is a specialized version of DtRwVariableBindi...
Definition: rwProperties.h:122
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: iffStateComponent.h:102
bool myCachedComponents
True once component pointers have been populated by cacheComponents().
Definition: stateDataWrapper.h:660
bool myIsDeleted
True if this object has been removed from the exercise.
Definition: stateDataWrapper.h:628
const DtVrfGeometryStateComponent * myCurrentFrameVrfGeometryStateComponent
Cached VRF geometry state component pointer for the current frame; nullptr if absent.
Definition: stateDataWrapper.h:655
class DtLocalVertexList:
Definition: localVertexList.h:20
boost::signals2::signal< void()> signal_advancedFrame
Signal sent when the state data signals that the frame has been advanced WARNING: This signal will be...
Definition: stateDataWrapper.h:436
tbb::spin_rw_mutex myExternalCurrentFrameStateMutex
Reader-writer spin mutex protecting myExternalCurrentFrameState for thread-safe access.
Definition: stateDataWrapper.h:641
std::vector< const T_Component * > getStateComponentList() const
Returns all state components of the given type attached to this object.
Definition: stateDataWrapper.h:186
DtString myAwaiting
If this object is awaiting for its reference to show up, this will be either a UUID or an entity id s...
Definition: stateDataWrapper.h:620
boost::signals2::signal< void(const DtUUID &oldUUID, const DtUUID &newUUID)> signal_uuidChanged
Signal sent when the uuid of this object has changed. Sent during a frame advance.
Definition: stateDataWrapper.h:413
const DtStatePropertiesStateComponent * currentFrameStatePropertiesStateComponent() const
Definition: stateDataWrapper.h:477
This class holds the state data that represents each simulation object in the system.
Definition: stateDataManager.h:76

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)