CorePlotting::Interaction::LineInteractionConfig
CorePlotting::Interaction::LineInteractionConfig
Configuration for line interaction behavior.
#include <LineInteractionController.hpp>
Public Attributes
| Name | |
|---|---|
| float | min_length Minimum line length in canvas pixels. |
| bool | snap_to_axis If true, constrain to horizontal or vertical when near axis. |
| float | snap_angle_threshold Angle threshold (degrees) for axis snapping. |
| bool | horizontal_only If true, constrain line to be horizontal (for time-axis selections). |
| bool | vertical_only If true, constrain line to be vertical. |
| glm::vec4 | stroke_color Default stroke color for preview. |
| float | stroke_width Stroke width in pixels. |
Public Attributes Documentation
variable min_length
float min_length {1.0f};Minimum line length in canvas pixels.
variable snap_to_axis
bool snap_to_axis {false};If true, constrain to horizontal or vertical when near axis.
variable snap_angle_threshold
float snap_angle_threshold {15.0f};Angle threshold (degrees) for axis snapping.
variable horizontal_only
bool horizontal_only {false};If true, constrain line to be horizontal (for time-axis selections).
variable vertical_only
bool vertical_only {false};If true, constrain line to be vertical.
variable stroke_color
glm::vec4 stroke_color {1.0f, 0.0f, 0.0f, 1.0f};Default stroke color for preview.
variable stroke_width
float stroke_width {2.0f};Stroke width in pixels.
Updated on 2026-11-13 at 20:25:42 +0000