VR-Forces 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)
34  UNDEFINED_RETURNVALUE_ACCESSOR(int, objectAttachMode)
36  UNDEFINED_RETURNVALUE_ACCESSOR(bool, locationChanged)
38  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(DtTaitBryan, orientation, Orientation)
39  UNDEFINED_RETURNREF_ACCESSOR(DtVector, worldPosition)
40  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, topographicOrientation)
41  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, worldOrientation)
42  UNDEFINED_RETURNREF_ACCESSOR(DtDcm, worldOrientationMatrix)
43  UNDEFINED_RETURNREF_ACCESSOR(DtVector, localPosition)
44  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, localOrientation)
45  UNDEFINED_RETURNREF_ACCESSOR(DtDcm, localOrientationMatrix)
46  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, localOrientationWrtDatabase)
47  UNDEFINED_RETURNVALUE_ACCESSOR(double, roll)
48  UNDEFINED_RETURNVALUE_ACCESSOR(double, pitch)
49  UNDEFINED_RETURNVALUE_ACCESSOR(double, heading)
50  UNDEFINED_RETURNREF_ACCESSOR(DtDcm, parentOrientationMatrix)
51  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, parentOrientation)
52  UNDEFINED_RETURNREF_ACCESSOR(DtVector, relativePosition)
53  UNDEFINED_RETURNREF_ACCESSOR(DtVector, parentPosition)
54  UNDEFINED_RETURNVALUE_ACCESSOR(bool, localPositionIsValid)
55  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(bool, frozen, Frozen)
56  UNDEFINED_METHOD(void, setLocalOrientationMatrix, const DtDcm&)
57  UNDEFINED_METHOD(void, setLocalOrientation, const DtTaitBryan&)
58  UNDEFINED_METHOD(void, setLocalOrientationWrtDatabase, const DtTaitBryan&)
59  UNDEFINED_METHOD(void, setParentPosition, const DtVector&)
60  UNDEFINED_METHOD(void, setParentOrientation, const DtTaitBryan&)
61  UNDEFINED_METHOD(void, setLocalPosition, const DtVector&)
62  UNDEFINED_METHOD(void, setWorldPosition, const DtVector&)
63  UNDEFINED_METHOD(void, setWorldOrientation, const DtTaitBryan&)
64  UNDEFINED_METHOD(void, setWorldOrientationMatrix, const DtDcm&)
65  UNDEFINED_METHOD(void, setKinematicState, const DtRwVrfKinematicState&)
66 
68  mutable boost::signals2::signal<void (const DtFrameStateInterface*, const DtUUID& oldUUID, const DtUUID& newUUID)> signal_hostChanged;
69  };
70 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
#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:339
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: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)