Skip to main content

CorePlotting::SpanLineView

CorePlotting::SpanLineView

Non-owning view over a contiguous array of MappedVertex. More…

#include <MappedLineView.hpp>

Public Functions

Name
SpanLineView(EntityId id, std::span< MappedVertex const > verts)
Construct from span of vertices.
SpanLineView(EntityId id, std::vector< MappedVertex > const & verts)
Construct from vector of vertices.
std::span< MappedVertex const > vertices() const
Get vertex range for iteration.

Public Attributes

Name
EntityId entity_id
Entity identifier for the entire line.

Detailed Description

class CorePlotting::SpanLineView;

Non-owning view over a contiguous array of MappedVertex.

Useful when vertices have already been computed and stored, providing a lightweight view interface over existing data.

Public Functions Documentation

function SpanLineView

inline SpanLineView(
    EntityId id,
    std::span< MappedVertex const > verts
)

Construct from span of vertices.

Parameters:

  • id Entity identifier
  • verts Span over pre-computed vertices

function SpanLineView

inline SpanLineView(
    EntityId id,
    std::vector< MappedVertex > const & verts
)

Construct from vector of vertices.

Parameters:

  • id Entity identifier
  • verts Reference to vertex vector (must outlive this view)

function vertices

inline std::span< MappedVertex const > vertices() const

Get vertex range for iteration.

Public Attributes Documentation

variable entity_id

EntityId entity_id;

Entity identifier for the entire line.


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