![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Dialog to select one or multiple items. More...
#include <ecvItemSelectionDlg.h>


Public Member Functions | |
| ccItemSelectionDlg (bool multiSelectionEnabled, QWidget *parent=0, QString itemName="entities", QString label=QString()) | |
| Default constructor. More... | |
| void | setItems (const QStringList &items, int defaultSelectedIndex=0) |
| Sets the list of items. More... | |
| int | getSelectedIndex () const |
| Returns selected index (unique selection mode) More... | |
| void | getSelectedIndexes (std::vector< int > &indexes) const |
| Returns selected indexes (multi-selection mode) More... | |
Static Public Member Functions | |
| static int | SelectEntity (const ccHObject::Container &entities, int defaultSelectedIndex=0, QWidget *parent=0, QString label=QString()) |
| Static shortcut: unique selection mode. More... | |
| static bool | SelectEntities (const ccHObject::Container &entities, std::vector< int > &indexes, QWidget *parent=0, QString label=QString()) |
| Static shortcut: multi-selection mode. More... | |
Dialog to select one or multiple items.
Definition at line 16 of file ecvItemSelectionDlg.h.
| ccItemSelectionDlg::ccItemSelectionDlg | ( | bool | multiSelectionEnabled, |
| QWidget * | parent = 0, |
||
| QString | itemName = "entities", |
||
| QString | label = QString() |
||
| ) |
Default constructor.
Definition at line 14 of file ecvItemSelectionDlg.cpp.
| int ccItemSelectionDlg::getSelectedIndex | ( | ) | const |
Returns selected index (unique selection mode)
Definition at line 52 of file ecvItemSelectionDlg.cpp.
Referenced by SelectEntity().
| void ccItemSelectionDlg::getSelectedIndexes | ( | std::vector< int > & | indexes | ) | const |
Returns selected indexes (multi-selection mode)
Definition at line 58 of file ecvItemSelectionDlg.cpp.
Referenced by ccEntityAction::interpolateSFs(), and SelectEntities().
|
static |
Static shortcut: multi-selection mode.
Definition at line 97 of file ecvItemSelectionDlg.cpp.
References getSelectedIndexes(), and setItems().
|
static |
Static shortcut: unique selection mode.
Definition at line 74 of file ecvItemSelectionDlg.cpp.
References getSelectedIndex(), and setItems().
Referenced by ccGraphicalSegmentationTool::doActionUseExistingPolyline().
| void ccItemSelectionDlg::setItems | ( | const QStringList & | items, |
| int | defaultSelectedIndex = 0 |
||
| ) |
Sets the list of items.
Definition at line 36 of file ecvItemSelectionDlg.cpp.
Referenced by ccEntityAction::interpolateSFs(), SelectEntities(), and SelectEntity().