VR-Engage  2.2
Loading...
Searching...
No Matches
util.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*********************************************************************************/
5
6//! \file util.h
7//! \brief Utility functions for VREngage player station connector
8//!
9//! This file provides utility functions to support the VREngage player station connector,
10//! including functions to create and populate simulation state messages from entity data.
11
12#pragma once
13
15
16#include "vreUtil/attribute.h"
17
18//! \brief Forward declaration of the reflected entity class
19class DtReflectedEntity;
20class DtReflectedExtEntityList;
21
22namespace makVre
23{
24//! \brief Forward declaration of the simulation state message class
26
27//! \brief Creates and populates a simulation state message from an entity
28//! \param entity Pointer to the reflected entity to extract state information from
29//! \return Pointer to a newly created simulation state message containing the entity's state
30//!
31//! This function extracts position, orientation, and other state information from
32//! the provided entity and creates a SimulationStateMessage containing this data.
33//! The caller is responsible for managing the lifecycle of the returned message.
35
36VRL_DLL void updateReflectedEntityAttributes(DtReflectedExtEntityList* rel, DtAttributeHandle entityStateStore);
37
38} // namespace makVre
Provides attribute handling system for hierarchical data storage and manipulation.
Handle class for safe access to attributes.
Definition attributeHandle.h:30
Definition simulationState.h:34
Defines export macros and protocol namespace for vrePlayerStationConnector.
#define VRL_DLL
Empty definition for non-Windows platforms.
Definition export.h:52
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
VRL_DLL SimulationStateMessage * createAndFillSimStateMessage(DtReflectedEntity *entity)
Creates and populates a simulation state message from an entity.
VRL_DLL void updateReflectedEntityAttributes(DtReflectedExtEntityList *rel, DtAttributeHandle entityStateStore)