Skip to main content

LineInteractionPrefs

LineInteractionPrefs

User preferences for line interaction tools. More…

#include <MediaWidgetStateData.hpp>

Public Attributes

Name
std::string smoothing_mode
“SimpleSmooth” or “PolynomialFit”
int polynomial_order
Order for polynomial fit (2-10).
bool edge_snapping_enabled
Whether to snap new points to edges.
int edge_threshold
Canny edge detection threshold.
int edge_search_radius
Radius in pixels for edge search.
int eraser_radius
Radius in pixels for line eraser.
float selection_threshold
Pixel distance for line selection.
LineAppendEndpoint append_endpoint
Pen append target endpoint.
PenLineTargetMode pen_target_mode
Pen create vs edit target.
std::string pen_new_line_key
LineData key when pen_target_mode == NewLine.

Detailed Description

struct LineInteractionPrefs;

User preferences for line interaction tools.

These are tool settings that persist across sessions, not transient state like “currently drawing” or “drag in progress”.

Public Attributes Documentation

variable smoothing_mode

std::string smoothing_mode = "SimpleSmooth";

“SimpleSmooth” or “PolynomialFit”

variable polynomial_order

int polynomial_order = 3;

Order for polynomial fit (2-10).

variable edge_snapping_enabled

bool edge_snapping_enabled = false;

Whether to snap new points to edges.

variable edge_threshold

int edge_threshold = 100;

Canny edge detection threshold.

variable edge_search_radius

int edge_search_radius = 20;

Radius in pixels for edge search.

variable eraser_radius

int eraser_radius = 10;

Radius in pixels for line eraser.

variable selection_threshold

float selection_threshold = 15.0f;

Pixel distance for line selection.

variable append_endpoint

LineAppendEndpoint append_endpoint = LineAppendEndpoint::Tip;

Pen append target endpoint.

variable pen_target_mode

PenLineTargetMode pen_target_mode = PenLineTargetMode::SelectedLine;

Pen create vs edit target.

variable pen_new_line_key

std::string pen_new_line_key;

LineData key when pen_target_mode == NewLine.


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