Skip to main content

CorePlotting::MappedElement

CorePlotting::MappedElement

Common element type for discrete entities (events, points). More…

#include <MappedElement.hpp>

Public Functions

Name
MappedElement() =default
MappedElement(float x_, float y_, EntityId id)
glm::vec2 position() const
Convert to glm::vec2 for direct use with rendering.

Public Attributes

Name
float x
X position in world space.
float y
Y position in world space.
EntityId entity_id
Entity identifier for hit testing.

Detailed Description

struct CorePlotting::MappedElement;

Common element type for discrete entities (events, points).

Note: X and Y coordinates are in world space after layout transforms have been applied by the mapper.

Yielded by mappers when transforming discrete data sources. Contains world-space coordinates and entity identification.

Public Functions Documentation

function MappedElement

MappedElement() =default

function MappedElement

inline MappedElement(
    float x_,
    float y_,
    EntityId id
)

function position

inline glm::vec2 position() const

Convert to glm::vec2 for direct use with rendering.

Public Attributes Documentation

variable x

float x;

X position in world space.

variable y

float y;

Y position in world space.

variable entity_id

EntityId entity_id;

Entity identifier for hit testing.


Updated on 2026-11-13 at 20:25:42 +0000