![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
cvQueryValueWidget - Dynamic value input widget More...
#include <cvQueryWidgets.h>


Public Types | |
| enum | ValueType { NO_VALUE , SINGLE_VALUE , COMMA_SEPARATED_VALUES , RANGE_PAIR , LOCATION_WITH_TOLERANCE , LOCATION } |
Signals | |
| void | valueChanged () |
Public Member Functions | |
| cvQueryValueWidget (QWidget *parent=nullptr) | |
| ~cvQueryValueWidget () override=default | |
| void | setType (ValueType type) |
| QMap< QString, QString > | values () const |
| void | setValues (const QMap< QString, QString > &values) |
| void | clear () |
cvQueryValueWidget - Dynamic value input widget
Based on ParaView's pqValueWidget, this widget dynamically creates different UI components based on the ValueType. It supports:
Definition at line 34 of file cvQueryWidgets.h.
| Enumerator | |
|---|---|
| NO_VALUE | |
| SINGLE_VALUE | |
| COMMA_SEPARATED_VALUES | |
| RANGE_PAIR | |
| LOCATION_WITH_TOLERANCE | |
| LOCATION | |
Definition at line 38 of file cvQueryWidgets.h.
|
explicit |
Definition at line 16 of file cvQueryWidgets.cpp.
|
overridedefault |
| void cvQueryValueWidget::clear | ( | ) |
Clear all input fields
Definition at line 45 of file cvQueryWidgets.cpp.
Referenced by cvQueryConditionWidget::clear(), and cvQueryConditionWidget::setExpression().
| void cvQueryValueWidget::setType | ( | ValueType | type | ) |
Set the type of value widget. This rebuilds the UI with appropriate input components.
Definition at line 21 of file cvQueryWidgets.cpp.
References type.
| void cvQueryValueWidget::setValues | ( | const QMap< QString, QString > & | values | ) |
Set values from a map (used when parsing existing expressions)
Definition at line 37 of file cvQueryWidgets.cpp.
References values().
Referenced by cvQueryConditionWidget::setExpression().
|
signal |
Referenced by cvQueryConditionWidget::cvQueryConditionWidget().
| QMap< QString, QString > cvQueryValueWidget::values | ( | ) | const |
Get current values as a map (key -> value). Keys are: "value", "value_min", "value_max", "value_x", "value_y", "value_z", "value_tolerance"
Definition at line 28 of file cvQueryWidgets.cpp.
References result.
Referenced by cvQueryConditionWidget::expression(), and setValues().