line_widget::LineDrawAllFramesSelectionWidget
line_widget::LineDrawAllFramesSelectionWidget
Widget for the “Draw Across All Frames” selection mode. More…
#include <LineDrawAllFramesSelectionWidget.hpp>
Inherits from QWidget
Public Signals
| Name | |
|---|---|
| void | lineDrawingStarted() Signal emitted when line drawing is started. |
| void | lineDrawingCompleted() Signal emitted when line drawing is completed. |
| void | applyToAllFrames() Signal emitted when the line should be applied to all frames. |
| void | linePointsUpdated() Signal emitted when line points are updated. |
Public Functions
| Name | |
|---|---|
| LineDrawAllFramesSelectionWidget(QWidget * parent =[nullptr]) Constructor. |
|
| ~LineDrawAllFramesSelectionWidget() Destructor. |
|
| bool | isDrawingActive() const Check if line drawing is currently active. |
| std::vector< Point2D< float > > | getCurrentLinePoints() const Get the current line points. |
| void | clearLinePoints() Clear the current line points. |
| void | addPoint(const Point2D< float > & point) Add a point to the current line. |
Detailed Description
class line_widget::LineDrawAllFramesSelectionWidget;Widget for the “Draw Across All Frames” selection mode.
This widget provides UI for drawing a line that will be applied to all frames in the media. The user can:
- Draw a line by clicking points
- Complete the line drawing
- Apply the line to all frames
Public Signals Documentation
signal lineDrawingStarted
void lineDrawingStarted()Signal emitted when line drawing is started.
signal lineDrawingCompleted
void lineDrawingCompleted()Signal emitted when line drawing is completed.
signal applyToAllFrames
void applyToAllFrames()Signal emitted when the line should be applied to all frames.
signal linePointsUpdated
void linePointsUpdated()Signal emitted when line points are updated.
Public Functions Documentation
function LineDrawAllFramesSelectionWidget
explicit LineDrawAllFramesSelectionWidget(
QWidget * parent =nullptr
)Constructor.
Parameters:
- parent The parent widget
function ~LineDrawAllFramesSelectionWidget
~LineDrawAllFramesSelectionWidget()Destructor.
function isDrawingActive
bool isDrawingActive() constCheck if line drawing is currently active.
function getCurrentLinePoints
std::vector< Point2D< float > > getCurrentLinePoints() constGet the current line points.
function clearLinePoints
void clearLinePoints()Clear the current line points.
function addPoint
void addPoint(
const Point2D< float > & point
)Add a point to the current line.
Parameters:
- point The point to add
Updated on 2026-11-13 at 20:25:42 +0000