ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccPickOneElementDlg Class Reference

Minimal dialog to pick one element in a list (combox box) More...

#include <ecvPickOneElementDlg.h>

Inheritance diagram for ccPickOneElementDlg:
Collaboration diagram for ccPickOneElementDlg:

Public Member Functions

 ccPickOneElementDlg (const QString &label, const QString &windowTitle=QString(), QWidget *parent=nullptr)
 Default constructor. More...
 
 ~ccPickOneElementDlg () override
 Destructor. More...
 
void addElement (const QString &elementName)
 Add an element to the combo box. More...
 
void setDefaultIndex (int index)
 Sets the combo box default index. More...
 
int getSelectedIndex ()
 Returns the combo box current index (after completion) More...
 

Protected Attributes

Ui_PickOneElementDialog * m_ui
 Associated UI. More...
 

Detailed Description

Minimal dialog to pick one element in a list (combox box)

Definition at line 18 of file ecvPickOneElementDlg.h.

Constructor & Destructor Documentation

◆ ccPickOneElementDlg()

ccPickOneElementDlg::ccPickOneElementDlg ( const QString &  label,
const QString &  windowTitle = QString(),
QWidget *  parent = nullptr 
)

Default constructor.

Definition at line 13 of file ecvPickOneElementDlg.cpp.

References m_ui.

◆ ~ccPickOneElementDlg()

ccPickOneElementDlg::~ccPickOneElementDlg ( )
override

Destructor.

Definition at line 27 of file ecvPickOneElementDlg.cpp.

References m_ui.

Member Function Documentation

◆ addElement()

void ccPickOneElementDlg::addElement ( const QString &  elementName)

◆ getSelectedIndex()

int ccPickOneElementDlg::getSelectedIndex ( )

Returns the combo box current index (after completion)

Definition at line 42 of file ecvPickOneElementDlg.cpp.

References m_ui.

Referenced by ccEntityAction::computeStatParams(), ccGamepadManager::enableDevice(), ccEntityAction::enhanceRGBWithIntensities(), and ccEntityAction::statisticalTest().

◆ setDefaultIndex()

void ccPickOneElementDlg::setDefaultIndex ( int  index)

Sets the combo box default index.

Definition at line 38 of file ecvPickOneElementDlg.cpp.

References m_ui.

Referenced by ccEntityAction::computeStatParams(), ccEntityAction::enhanceRGBWithIntensities(), and ccEntityAction::statisticalTest().

Member Data Documentation

◆ m_ui

Ui_PickOneElementDialog* ccPickOneElementDlg::m_ui
protected

The documentation for this class was generated from the following files: