VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
locationStateComponent.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 
11 #include <vrfutil/rwUUID.h>
12 #include <matrix/vlVector.h>
13 #include <matrix/vlDcm.h>
14 #include <matrix/vlTaitBryan.h>
15 #include <vlpi/disEnums.h>
16 #include <vlpi/thresholder.h>
17 
18 #include <boost/signals2.hpp>
19 
20 namespace makVrf
21 {
26  {
27  public:
29 
31  static const char* StringType() { return "LocationStateComponent"; }
32 
33  UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(DtUUID, hostGlobalId, HostGlobalId)
35  UNDEFINED_RETURNVALUE_ACCESSOR(bool, locationChanged)
37  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(DtTaitBryan, orientation, Orientation)
38  UNDEFINED_RETURNREF_ACCESSOR(DtVector, worldPosition)
39  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, topographicOrientation)
40  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, worldOrientation)
41  UNDEFINED_RETURNREF_ACCESSOR(DtDcm, worldOrientationMatrix)
42  UNDEFINED_RETURNREF_ACCESSOR(DtVector, localPosition)
43  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, localOrientation)
44  UNDEFINED_RETURNREF_ACCESSOR(DtDcm, localOrientationMatrix)
45  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, localOrientationWrtDatabase)
46  UNDEFINED_RETURNVALUE_ACCESSOR(double, roll)
47  UNDEFINED_RETURNVALUE_ACCESSOR(double, pitch)
48  UNDEFINED_RETURNVALUE_ACCESSOR(double, heading)
49  UNDEFINED_RETURNREF_ACCESSOR(DtDcm, parentOrientationMatrix)
50  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, parentOrientation)
51  UNDEFINED_RETURNREF_ACCESSOR(DtVector, relativePosition)
52  UNDEFINED_RETURNREF_ACCESSOR(DtVector, parentPosition)
53  UNDEFINED_RETURNVALUE_ACCESSOR(bool, localPositionIsValid)
54  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(bool, frozen, Frozen)
55  UNDEFINED_METHOD(void, setLocalOrientationMatrix, const DtDcm&)
56  UNDEFINED_METHOD(void, setLocalOrientation, const DtTaitBryan&)
57  UNDEFINED_METHOD(void, setLocalOrientationWrtDatabase, const DtTaitBryan&)
58  UNDEFINED_METHOD(void, setParentPosition, const DtVector&)
59  UNDEFINED_METHOD(void, setParentOrientation, const DtTaitBryan&)
60  UNDEFINED_METHOD(void, setLocalPosition, const DtVector&)
61  UNDEFINED_METHOD(void, setWorldPosition, const DtVector&)
62  UNDEFINED_METHOD(void, setWorldOrientation, const DtTaitBryan&)
63  UNDEFINED_METHOD(void, setWorldOrientationMatrix, const DtDcm&)
64  UNDEFINED_METHOD(void, setKinematicState, const DtRwVrfKinematicState&)
65 
67  mutable boost::signals2::signal<void (const DtFrameStateInterface*, const DtUUID& oldUUID, const DtUUID& newUUID)> signal_hostChanged;
68  };
69 }
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
#define UNDEFINED_METHOD(Type, Method,...)
Definition: doubleBufferedDataStorage.h:68
The DtLocationStateComponent interface contains the interface that all DtLocationStateComponents can ...
Definition: locationStateComponent.h:25
unsigned int StateComponentType
Definition: stateComponent.h:55
#define UNDEFINED_RETURNVALUE_ACCESSOR(ReturnType, Member)
Definition: doubleBufferedDataStorage.h:31
Contains the DtUUID class declaration.
#define UNDEFINED_RETURNREF_ACCESSOR(ReturnType, Member)
Definition: doubleBufferedDataStorage.h:34
static const char * StringType()
Definition: locationStateComponent.h:31
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:336
static DtStateComponent::StateComponentType ComponentType()
Definition: locationStateComponent.h:30
#define UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(Type, Member, Set)
Definition: doubleBufferedDataStorage.h:53
#define UNDEFINED_RETURNREF_CONST_ACCESSOR(ReturnType, Member)
Definition: doubleBufferedDataStorage.h:37
#define UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(Type, Member, Set)
Definition: doubleBufferedDataStorage.h:57
Definition: rwVrfKinematicState.h:25
#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:282

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)