Skip to main content

line_widget::LineAddSelectionWidget

line_widget::LineAddSelectionWidget

Widget for the “Add Points” selection mode. More…

#include <LineAddSelectionWidget.hpp>

Inherits from QWidget

Public Types

Name
enum class SmoothingMode { SimpleSmooth = 0, PolynomialFit = 1}
Enum defining the available smoothing modes.

Public Signals

Name
void edgeSnappingToggled(bool enabled)
Signal emitted when edge snapping is toggled.
void smoothingModeChanged(int mode)
Signal emitted when smoothing mode is changed.
void polynomialOrderChanged(int order)
Signal emitted when polynomial order is changed.
void edgeThresholdChanged(int threshold)
Signal emitted when edge threshold is changed.
void edgeSearchRadiusChanged(int radius)
Signal emitted when edge search radius is changed.

Public Functions

Name
LineAddSelectionWidget(QWidget * parent =[nullptr])
Constructor.
~LineAddSelectionWidget()
Destructor.
bool isEdgeSnappingEnabled() const
Get the current edge snapping enabled state.
int getEdgeThreshold() const
Get the current edge threshold value.
int getEdgeSearchRadius() const
Get the current edge search radius value.
int getPolynomialOrder() const
Get the current polynomial order value.
SmoothingMode getSmoothingMode() const
Get the current smoothing mode.

Detailed Description

class line_widget::LineAddSelectionWidget;

Widget for the “Add Points” selection mode.

This widget provides UI for adding points to lines, including options for:

  • Edge snapping
  • Smoothing methods (simple smooth or polynomial fit)
  • Edge detection parameters

Public Types Documentation

enum SmoothingMode

Enumerator Value Description
SimpleSmooth 0
PolynomialFit 1

Enum defining the available smoothing modes.

Public Signals Documentation

signal edgeSnappingToggled

void edgeSnappingToggled(
    bool enabled
)

Signal emitted when edge snapping is toggled.

Parameters:

  • enabled Whether edge snapping is enabled

signal smoothingModeChanged

void smoothingModeChanged(
    int mode
)

Signal emitted when smoothing mode is changed.

Parameters:

  • mode The selected smoothing mode

signal polynomialOrderChanged

void polynomialOrderChanged(
    int order
)

Signal emitted when polynomial order is changed.

Parameters:

  • order The new polynomial order value

signal edgeThresholdChanged

void edgeThresholdChanged(
    int threshold
)

Signal emitted when edge threshold is changed.

Parameters:

  • threshold The new threshold value

signal edgeSearchRadiusChanged

void edgeSearchRadiusChanged(
    int radius
)

Signal emitted when edge search radius is changed.

Parameters:

  • radius The new radius value

Public Functions Documentation

function LineAddSelectionWidget

explicit LineAddSelectionWidget(
    QWidget * parent =nullptr
)

Constructor.

Parameters:

  • parent The parent widget

function ~LineAddSelectionWidget

~LineAddSelectionWidget()

Destructor.

function isEdgeSnappingEnabled

bool isEdgeSnappingEnabled() const

Get the current edge snapping enabled state.

function getEdgeThreshold

int getEdgeThreshold() const

Get the current edge threshold value.

function getEdgeSearchRadius

int getEdgeSearchRadius() const

Get the current edge search radius value.

function getPolynomialOrder

int getPolynomialOrder() const

Get the current polynomial order value.

function getSmoothingMode

SmoothingMode getSmoothingMode() const

Get the current smoothing mode.


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