![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Minimal dialog to pick one element in a list (combo box) More...
#include <ecvSelectChildrenDlg.h>


Public Member Functions | |
| ccSelectChildrenDlg (QWidget *parent=nullptr) | |
| Default constructor. More... | |
| ~ccSelectChildrenDlg () override | |
| void | addType (QString typeName, CV_CLASS_ENUM type) |
| Add an element to the 'type' combo box. More... | |
| CV_CLASS_ENUM | getSelectedType () |
| Returns the selected type. More... | |
| QString | getSelectedName () |
| Returns the selected name (if any) More... | |
| bool | getStrictMatchState () const |
| Returns the state of the strict type checkbox. More... | |
| bool | getTypeIsUsed () const |
| bool | getNameIsRegex () const |
| if the name must be considered as regex More... | |
| bool | getNameMatchIsUsed () const |
| if performing name-match (regex or not) More... | |
Protected Slots | |
| void | onAccept () |
| Called when the dialog is accepted. More... | |
Minimal dialog to pick one element in a list (combo box)
Definition at line 21 of file ecvSelectChildrenDlg.h.
|
explicit |
Default constructor.
Definition at line 19 of file ecvSelectChildrenDlg.cpp.
References onAccept(), s_lastName, s_lastNameState, s_lastTypeState, s_lastTypeStrictState, and s_lastUseRegex.
|
override |
Definition at line 33 of file ecvSelectChildrenDlg.cpp.
| void ccSelectChildrenDlg::addType | ( | QString | typeName, |
| CV_CLASS_ENUM | type | ||
| ) |
Add an element to the 'type' combo box.
Definition at line 38 of file ecvSelectChildrenDlg.cpp.
References s_lastType, and type.
Referenced by ccDBRoot::selectByTypeAndName().
| bool ccSelectChildrenDlg::getNameIsRegex | ( | ) | const |
if the name must be considered as regex
Definition at line 82 of file ecvSelectChildrenDlg.cpp.
Referenced by onAccept(), and ccDBRoot::selectByTypeAndName().
| bool ccSelectChildrenDlg::getNameMatchIsUsed | ( | ) | const |
if performing name-match (regex or not)
Definition at line 86 of file ecvSelectChildrenDlg.cpp.
Referenced by ccDBRoot::selectByTypeAndName().
| QString ccSelectChildrenDlg::getSelectedName | ( | ) |
Returns the selected name (if any)
Definition at line 66 of file ecvSelectChildrenDlg.cpp.
Referenced by ccDBRoot::selectByTypeAndName().
| CV_CLASS_ENUM ccSelectChildrenDlg::getSelectedType | ( | ) |
Returns the selected type.
Definition at line 56 of file ecvSelectChildrenDlg.cpp.
References CV_TYPES::HIERARCHY_OBJECT.
Referenced by onAccept(), and ccDBRoot::selectByTypeAndName().
| bool ccSelectChildrenDlg::getStrictMatchState | ( | ) | const |
Returns the state of the strict type checkbox.
Definition at line 74 of file ecvSelectChildrenDlg.cpp.
Referenced by ccDBRoot::selectByTypeAndName().
| bool ccSelectChildrenDlg::getTypeIsUsed | ( | ) | const |
if the type checkbox is checked the children are filtered before checking the name for matches
Definition at line 78 of file ecvSelectChildrenDlg.cpp.
Referenced by ccDBRoot::selectByTypeAndName().
|
protectedslot |
Called when the dialog is accepted.
Definition at line 47 of file ecvSelectChildrenDlg.cpp.
References getNameIsRegex(), getSelectedType(), s_lastName, s_lastNameState, s_lastType, s_lastTypeState, s_lastTypeStrictState, and s_lastUseRegex.
Referenced by ccSelectChildrenDlg().