Skip to main content

LineDisplayOptions

LineDisplayOptions

Display options for line/polyline data.

#include <DisplayOptions.hpp>

Public Functions

Name
std::string & hex_color()
std::string const & hex_color() const
float & alpha()
float const & alpha() const
bool & is_visible()
bool const & is_visible() const

Public Attributes

Name
rfl::Flatten< CommonDisplayFields > common
Flattened common fields.
int line_thickness
Line width in pixels.
bool show_points
Show points as open circles along the line.
bool edge_snapping
Enable edge snapping for new points.
CoordinateMappingMode coordinate_mapping
How data coordinates map to canvas.
bool show_position_marker
Show position marker at percentage distance.
int position_percentage
Percentage distance along line (0-100%).
bool show_segment
Show only a segment of the line.
int segment_start_percentage
Start percentage for line segment (0-100%).
int segment_end_percentage
End percentage for line segment (0-100%).
int selected_line_index
Index of selected line (-1 = none selected).

Public Functions Documentation

function hex_color

inline std::string & hex_color()

function hex_color

inline std::string const & hex_color() const

function alpha

inline float & alpha()

function alpha

inline float const & alpha() const

function is_visible

inline bool & is_visible()

function is_visible

inline bool const & is_visible() const

Public Attributes Documentation

variable common

rfl::Flatten< CommonDisplayFields > common;

Flattened common fields.

variable line_thickness

int line_thickness {DefaultDisplayValues::LINE_THICKNESS};

Line width in pixels.

variable show_points

bool show_points {DefaultDisplayValues::SHOW_POINTS};

Show points as open circles along the line.

variable edge_snapping

bool edge_snapping {false};

Enable edge snapping for new points.

variable coordinate_mapping

CoordinateMappingMode coordinate_mapping {CoordinateMappingMode::ScaleToCanvas};

How data coordinates map to canvas.

variable show_position_marker

bool show_position_marker {false};

Show position marker at percentage distance.

variable position_percentage

int position_percentage {20};

Percentage distance along line (0-100%).

variable show_segment

bool show_segment {false};

Show only a segment of the line.

variable segment_start_percentage

int segment_start_percentage {0};

Start percentage for line segment (0-100%).

variable segment_end_percentage

int segment_end_percentage {100};

End percentage for line segment (0-100%).

variable selected_line_index

int selected_line_index {-1};

Index of selected line (-1 = none selected).


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