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:
31 
35  static const char* StringType() { return "LocationStateComponent"; }
36 
38  UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(DtUUID, hostGlobalId, HostGlobalId)
40  UNDEFINED_RETURNVALUE_ACCESSOR(int, objectAttachMode)
44  UNDEFINED_RETURNVALUE_ACCESSOR(bool, locationChanged)
46  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(DtVector, location, Location)
48  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(DtTaitBryan, orientation, Orientation)
50  UNDEFINED_RETURNREF_ACCESSOR(DtVector, worldPosition)
52  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, topographicOrientation)
54  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, worldOrientation)
56  UNDEFINED_RETURNREF_ACCESSOR(DtDcm, worldOrientationMatrix)
58  UNDEFINED_RETURNREF_ACCESSOR(DtVector, localPosition)
60  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, localOrientation)
62  UNDEFINED_RETURNREF_ACCESSOR(DtDcm, localOrientationMatrix)
64  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, localOrientationWrtDatabase)
66  UNDEFINED_RETURNVALUE_ACCESSOR(double, roll)
68  UNDEFINED_RETURNVALUE_ACCESSOR(double, pitch)
70  UNDEFINED_RETURNVALUE_ACCESSOR(double, heading)
72  UNDEFINED_RETURNREF_ACCESSOR(DtDcm, parentOrientationMatrix)
74  UNDEFINED_RETURNREF_ACCESSOR(DtTaitBryan, parentOrientation)
76  UNDEFINED_RETURNREF_ACCESSOR(DtVector, relativePosition)
78  UNDEFINED_RETURNREF_ACCESSOR(DtVector, parentPosition)
80  UNDEFINED_RETURNVALUE_ACCESSOR(bool, localPositionIsValid)
82  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(bool, frozen, Frozen)
84  UNDEFINED_METHOD(void, setLocalOrientationMatrix, const DtDcm&)
86  UNDEFINED_METHOD(void, setLocalOrientation, const DtTaitBryan&)
88  UNDEFINED_METHOD(void, setLocalOrientationWrtDatabase, const DtTaitBryan&)
90  UNDEFINED_METHOD(void, setParentPosition, const DtVector&)
92  UNDEFINED_METHOD(void, setParentOrientation, const DtTaitBryan&)
94  UNDEFINED_METHOD(void, setLocalPosition, const DtVector&)
96  UNDEFINED_METHOD(void, setWorldPosition, const DtVector&)
98  UNDEFINED_METHOD(void, setWorldOrientation, const DtTaitBryan&)
100  UNDEFINED_METHOD(void, setWorldOrientationMatrix, const DtDcm&)
102  UNDEFINED_METHOD(void, setKinematicState, const DtRwVrfKinematicState&)
103 
104 
106  mutable boost::signals2::signal<void (const DtFrameStateInterface*, const DtUUID& oldUUID, const DtUUID& newUUID)> signal_hostChanged;
107  };
108 }
unsigned int StateComponentType
Definition: stateComponent.h:56
UUID is a unique ID wrapper class.
Definition: uuid.h:59
#define UNDEFINED_METHOD(Type, Method,...)
Defines a virtual non-const method with variadic parameters that throws DtUnimplementedMethod, requiring an override in a derived class.
Definition: doubleBufferedDataStorage.h:138
The DtLocationStateComponent interface contains the interface that all DtLocationStateComponents can ...
Definition: locationStateComponent.h:25
#define UNDEFINED_RETURNVALUE_ACCESSOR(ReturnType, Member)
Defines a virtual const accessor that throws DtUnimplementedMethod, marking the method as requiring a...
Definition: doubleBufferedDataStorage.h:53
Contains the DtUUID class declaration.
#define UNDEFINED_RETURNREF_ACCESSOR(ReturnType, Member)
Defines a virtual const reference accessor that throws DtUnimplementedMethod, marking the method as r...
Definition: doubleBufferedDataStorage.h:60
static const char * StringType()
Definition: locationStateComponent.h:35
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:513
static DtStateComponent::StateComponentType ComponentType()
Definition: locationStateComponent.h:33
#define UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(Type, Member, Set)
Defines an undefined virtual by-value accessor and an undefined virtual setter, both throwing DtUnimp...
Definition: doubleBufferedDataStorage.h:103
#define UNDEFINED_RETURNREF_CONST_ACCESSOR(ReturnType, Member)
Defines a virtual const reference accessor that throws DtUnimplementedMethod. Equivalent to UNDEFINED...
Definition: doubleBufferedDataStorage.h:67
#define UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(Type, Member, Set)
Defines an undefined virtual const-reference accessor and an undefined virtual setter, both throwing DtUnimplementedMethod and requiring overrides in a derived class.
Definition: doubleBufferedDataStorage.h:112
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
Contains the DtStateComponent class declaration.
Base interface for accessing current or next frame state in a double-buffered state component...
Definition: stateComponent.h:354

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)