CorePlotting::MappedRectElement
CorePlotting::MappedRectElement
Element type for rectangles (intervals). More…
#include <MappedElement.hpp>
Public Functions
| Name | |
|---|---|
| MappedRectElement() =default | |
| MappedRectElement(float x_, float y_, float w, float h, EntityId id) | |
| glm::vec4 | bounds() const Get bounds as glm::vec4 (x, y, width, height). |
| glm::vec2 | center() const Get center position. |
Public Attributes
| Name | |
|---|---|
| float | x Left edge X position in world space. |
| float | y Bottom edge Y position in world space. |
| float | width Width in world space. |
| float | height Height in world space. |
| EntityId | entity_id Entity identifier for hit testing. |
Detailed Description
struct CorePlotting::MappedRectElement;Element type for rectangles (intervals).
Yielded by mappers when transforming interval-based data sources. Contains world-space bounds and entity identification.
Public Functions Documentation
function MappedRectElement
MappedRectElement() =defaultfunction MappedRectElement
inline MappedRectElement(
float x_,
float y_,
float w,
float h,
EntityId id
)function bounds
inline glm::vec4 bounds() constGet bounds as glm::vec4 (x, y, width, height).
Direct compatibility with RenderableRectangleBatch::bounds format.
function center
inline glm::vec2 center() constGet center position.
Public Attributes Documentation
variable x
float x;Left edge X position in world space.
variable y
float y;Bottom edge Y position in world space.
variable width
float width;Width in world space.
variable height
float height;Height in world space.
variable entity_id
EntityId entity_id;Entity identifier for hit testing.
Updated on 2026-11-13 at 20:25:42 +0000