83 virtual void tick(
double dt)
override;
113 virtual const char*
type()
const override;
127 virtual std::string
getAttributeAsString(
const std::string& attrName,
const std::vector<std::string>& mappings);
Table-based access to Lua state for configuration data.
Definition initializer.h:38
DtOverlayComponent()
Constructor for DtOverlayComponent.
virtual void resolveTexts()
Updates text elements with current state attribute values.
virtual void setTextVisible(const std::string &name, bool isVisible)
Sets the visibility of a text element.
virtual void setAllElementGroups(int group)
Sets the group for all overlay elements.
virtual void shutdown() override
Shuts down the overlay component.
DtVrvOverlay * myOverlay
Pointer to the VRV overlay that contains all HUD elements.
Definition overlayComponent.h:144
virtual makVrv::DtTextProxy * findTextByName(const std::string &name)
Finds a text element by its name.
virtual const char * type() const override
Returns the component type identifier.
std::vector< makVrv::DtLineSegment * > myLines
Collection of line elements in the overlay.
Definition overlayComponent.h:166
virtual std::string getAttributeAsString(const std::string &attrName, const std::vector< std::string > &mappings)
Converts a state attribute to a string representation.
virtual ~DtOverlayComponent() override
Virtual destructor for DtOverlayComponent.
virtual void handleOverlayResized()
Handles overlay resize events.
virtual void destroyElements()
Destroys all overlay elements.
virtual void buildElements(DtInitTable &elements)
Builds overlay elements from a configuration table.
virtual bool postInitialize() override
Performs post-initialization after all components are initialized.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the overlay component.
std::vector< Text > myTexts
Collection of text elements in the overlay.
Definition overlayComponent.h:163
DtInitTable myElementConfig
Configuration table containing element definitions.
Definition overlayComponent.h:172
virtual void tick(double dt) override
Called every frame to update the overlay.
std::vector< makVrv::DtQuadProxy * > myQuads
Collection of quad elements in the overlay.
Definition overlayComponent.h:169
virtual DtPlayerStation & player()
Gets the player station.
virtual const std::string & name()
Gets the component name.
DtPlayerComponent()
Constructor.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Class for creating and managing 2D overlays on a 3D scene.
Definition vrvOverlay.h:79
constexpr const char * windowName
Definition overlayComponent.h:38
constexpr const char * channelName
Definition overlayComponent.h:32
constexpr const char * elements
Definition overlayComponent.h:35
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition overlayComponent.h:24
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtOverlayComponentType
Type identifier for DtOverlayComponent component.
Definition overlayComponent.h:44
Defines the DtPlayerComponent base class for VR-Engage role components.
Structure representing a text element in the overlay.
Definition overlayComponent.h:148
std::string myTextString
Original text string with attribute references.
Definition overlayComponent.h:153
makVrv::DtTextProxy * myText
Pointer to the text proxy in the overlay.
Definition overlayComponent.h:156
std::string myName
Name identifier for the text element.
Definition overlayComponent.h:150
std::vector< std::string > myValueMapping
Value mappings for translating numeric values to strings.
Definition overlayComponent.h:159
Provides a 2D overlay rendering system for VRV-based applications.