QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 槽 | 信号 | Public 成员函数 | 所有成员列表
QwtPlotSeriesDataPickerGroup类 参考

Group manager for synchronizing multiple QwtPlotSeriesDataPicker instances across plot widgets 更多...

#include <qwt_plot_series_data_picker_group.h>

类 QwtPlotSeriesDataPickerGroup 继承关系图:

class  PrivateData
 

Public 槽

void onPickerMove (const QPoint &pos)
 
void onPickerActivated (bool on)
 
void onPickerDestroy (QObject *obj)
 
void onPickerClicked (QwtPlotSeriesDataPicker *picker, const QPoint &pos)
 Handles click signal from a picker, syncs other pickers, then emits group's clicked signal
 
void onPickerDoubleClicked (QwtPlotSeriesDataPicker *picker, const QPoint &pos)
 Handles double-click signal from a picker, syncs other pickers, then emits group's doubleClicked signal
 

信号

void clicked (QwtPlotSeriesDataPicker *picker, const QPoint &pos)
 Emitted when a picker in the group is clicked
 
void doubleClicked (QwtPlotSeriesDataPicker *picker, const QPoint &pos)
 Emitted when a picker in the group is double-clicked
 

Public 成员函数

 QwtPlotSeriesDataPickerGroup (QObject *par=nullptr)
 Constructor
 
 ~QwtPlotSeriesDataPickerGroup () override
 Destructor
 
void addPicker (QwtPlotSeriesDataPicker *pick)
 Add a picker to the group
 
void removePicker (QwtPlotSeriesDataPicker *pick)
 Remove a picker from the group
 
QList< QwtPlotSeriesDataPicker * > pickers () const
 Get all pickers in the group
 
void setEnabled (bool on)
 Set enabled state
 
bool isEnabled () const
 Check if enabled
 

详细描述

Group manager for synchronizing multiple QwtPlotSeriesDataPicker instances across plot widgets

This class enables coordinated interaction among multiple plot pickers, currently implementing synchronized X-axis proportional positioning. When a user moves the mouse over one plot within a subplot arrangement, the active picker displays its Y-value while all other pickers in the same group automatically position themselves at equivalent X-axis proportional locations on their respective plots, creating a unified cross-plot data inspection experience.

Key features:

注解
Currently supports only X-axis proportional synchronization; Y-axis values are displayed independently per plot based on local data at the synchronized X position.

构造及析构函数说明

◆ QwtPlotSeriesDataPickerGroup()

QwtPlotSeriesDataPickerGroup::QwtPlotSeriesDataPickerGroup ( QObject *  par = nullptr)

Constructor

参数
[in]parParent object

Destructor

成员函数说明

◆ addPicker()

void QwtPlotSeriesDataPickerGroup::addPicker ( QwtPlotSeriesDataPicker pick)

Add a picker to the group

Adds a picker to the synchronization group

参数
pickPointer to QwtPlotSeriesDataPicker instance to be added to the group
注解
The picker must belong to a QwtPlot with properly configured axes. Adding a null pointer or a picker already in the group has no effect. The group does not take ownership of the picker.
警告
Pickers from plots with significantly different X-axis scales may show positioning artifacts due to proportional mapping limitations.

◆ clicked

void QwtPlotSeriesDataPickerGroup::clicked ( QwtPlotSeriesDataPicker picker,
const QPoint &  pos 
)
signal

Emitted when a picker in the group is clicked

参数
pickerThe picker that was clicked
posThe click position in picker's canvas coordinates

◆ doubleClicked

void QwtPlotSeriesDataPickerGroup::doubleClicked ( QwtPlotSeriesDataPicker picker,
const QPoint &  pos 
)
signal

Emitted when a picker in the group is double-clicked

参数
pickerThe picker that was double-clicked
posThe double-click position in picker's canvas coordinates

◆ isEnabled()

bool QwtPlotSeriesDataPickerGroup::isEnabled ( ) const

Check if enabled

Check if synchronization is enabled

返回
True if enabled
参见
setEnabled()

◆ onPickerClicked

void QwtPlotSeriesDataPickerGroup::onPickerClicked ( QwtPlotSeriesDataPicker picker,
const QPoint &  pos 
)
slot

Handles click signal from a picker, syncs other pickers, then emits group's clicked signal

参数
pickerThe picker that emitted the click signal
posThe click position

◆ onPickerDoubleClicked

void QwtPlotSeriesDataPickerGroup::onPickerDoubleClicked ( QwtPlotSeriesDataPicker picker,
const QPoint &  pos 
)
slot

Handles double-click signal from a picker, syncs other pickers, then emits group's doubleClicked signal

参数
pickerThe picker that emitted the double-click signal
posThe double-click position

◆ pickers()

QList< QwtPlotSeriesDataPicker * > QwtPlotSeriesDataPickerGroup::pickers ( ) const

Get all pickers in the group

Returns the list of all pickers currently in the group

返回
QList containing pointers to all managed QwtPlotSeriesDataPicker instances
注解
The returned list is a copy; modifications to it do not affect the internal group state. Use addPicker() to modify group membership.

◆ removePicker()

void QwtPlotSeriesDataPickerGroup::removePicker ( QwtPlotSeriesDataPicker pick)

Remove a picker from the group

参数
[in]pickPointer to QwtPlotSeriesDataPicker instance to be removed from the group
注解
If the picker is not in the group, this function has no effect.

◆ setEnabled()

void QwtPlotSeriesDataPickerGroup::setEnabled ( bool  on)

Set enabled state

When disabled, picker synchronization will not occur.

参数
[in]onEnable/disable synchronization
参见
isEnabled()

该类的文档由以下文件生成: