CorePlotting::TimedMappedElement
CorePlotting::TimedMappedElement
MappedElement with temporal distance from the center of a window. More…
#include <SpatialMapper_Window.hpp>
Public Functions
| Name | |
|---|---|
| TimedMappedElement() =default | |
| TimedMappedElement(float x_, float y_, EntityId id, int dist) | |
| TimedMappedElement(MappedElement const & elem, int dist) Construct from a MappedElement plus temporal distance. |
|
| glm::vec2 | position() const Convert to glm::vec2 for rendering. |
| int | absTemporalDistance() const Absolute temporal distance (for alpha computation). |
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. |
| int | temporal_distance Signed distance from window center (in time indices). |
Detailed Description
struct CorePlotting::TimedMappedElement;MappedElement with temporal distance from the center of a window.
Used by OnionSkinView to compute per-element alpha based on how far the element’s time frame is from the current time position. temporal_distance == 0 means the element is at the center (current time).
Public Functions Documentation
function TimedMappedElement
TimedMappedElement() =defaultfunction TimedMappedElement
inline TimedMappedElement(
float x_,
float y_,
EntityId id,
int dist
)function TimedMappedElement
inline TimedMappedElement(
MappedElement const & elem,
int dist
)Construct from a MappedElement plus temporal distance.
function position
inline glm::vec2 position() constConvert to glm::vec2 for rendering.
function absTemporalDistance
inline int absTemporalDistance() constAbsolute temporal distance (for alpha computation).
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.
variable temporal_distance
int temporal_distance;Signed distance from window center (in time indices).
Updated on 2026-11-13 at 20:25:42 +0000