VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simulatedObjectStateComponent.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 
10 #include <vrfutil/rwUUID.h>
12 #include <vlpi/entityIdentifier.h>
13 
14 #include <boost/signals2.hpp>
15 
16 namespace makVrf
17 {
22  {
23  public:
25 
27  static const char* StringType() { return "IdentificationStateComponent"; }
28 
30  UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(bool, isLocal, IsLocal)
32  UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(DtString, markingText, MarkingText)
33  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(DtForceType, forceType, ForceType)
34  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(UInt32, appearanceBits, AppearanceBits)
35  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(DtEntityType, entityType, EntityType)
36  UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(DtEntityIdentifier, entityId, EntityId)
38 
39  mutable boost::signals2::signal<void (const DtUUID&, const DtUUID&, makVrf::SimStateID)> signal_uuidChanged;
40  mutable boost::signals2::signal<void (const DtString&, const DtString&, makVrf::SimStateID)> signal_markingTextChanged;
41  mutable boost::signals2::signal<void (int oldForce, int newForce, makVrf::SimStateID)> signal_forceChanged;
42 
43  virtual bool mainComponentOnLegion() const { return true; };
44  };
45 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
unsigned int UInt32
Definition: stateDataTypes.h:18
unsigned long long SimStateID
Definition: stateDataTypes.h:16
static const char * StringType()
Definition: simulatedObjectStateComponent.h:27
unsigned int StateComponentType
Definition: stateComponent.h:55
The DtSimulatedObjectStateComponent is an interface that all main components (those that are consider...
Definition: simulatedObjectStateComponent.h:21
#define UNDEFINED_RETURNVALUE_ACCESSOR(ReturnType, Member)
Definition: doubleBufferedDataStorage.h:31
Contains the DtUUID class declaration.
Definition: objectType.h:27
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:339
#define UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(Type, Member, Set)
Definition: doubleBufferedDataStorage.h:53
static DtStateComponent::StateComponentType ComponentType()
Definition: simulatedObjectStateComponent.h:26
#define UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(Type, Member, Set)
Definition: doubleBufferedDataStorage.h:57
#define DT_DLL_vrfStateData
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfStateDataDefines.h:26
Contains the DtStateComponent class declaration.
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:291

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)