![]() |
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:
|
explicit |
|
overridedefault |
| void cvQueryValueWidget::clear | ( | ) |
Clear all input fields
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.
References type.
| void cvQueryValueWidget::setValues | ( | const QMap< QString, QString > & | values | ) |
Set values from a map (used when parsing existing expressions)
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"
References result.
Referenced by cvQueryConditionWidget::expression(), and setValues().