![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Dialog for configuration of PLY files opening sequence. More...
#include <PlyOpenDlg.h>


Signals | |
| void | fullyAccepted () |
Public Member Functions | |
| PlyOpenDlg (QWidget *parent=nullptr) | |
| void | setDefaultComboItems (const QStringList &stdPropsText) |
| void | setListComboItems (const QStringList &listPropsText) |
| void | setSingleComboItems (const QStringList &singlePropsText) |
| bool | isValid (bool displayErrors=true) const |
| Returns whether the current configuration is valid or not. More... | |
| bool | restorePreviousContext (bool &hasAPreviousContext) |
| Restores the previously saved configuration (if any) More... | |
| bool | canBeSkipped () const |
| Returns whether the dialog can be 'skipped'. More... | |
| void | addSFComboBox (int selectedIndex=0) |
Static Public Member Functions | |
| static void | ResetApplyAll () |
| Resets the "apply all" flag (if set) More... | |
Public Attributes | |
| std::vector< QComboBox * > | m_standardCombos |
| Standard comboboxes. More... | |
| std::vector< QComboBox * > | m_listCombos |
| List-related comboboxes (faces, etc.) More... | |
| std::vector< QComboBox * > | m_singleCombos |
| Single-related comboboxes (texture index, etc.) More... | |
| std::vector< QComboBox * > | m_sfCombos |
| SF comboboxes. More... | |
Protected Member Functions | |
| void | apply () |
| void | applyAll () |
| void | addAllStdPropsAsSF () |
| void | saveContext (PlyLoadingContext *context) |
| Saves current configuration (for internal use) More... | |
| bool | restoreContext (PlyLoadingContext *context, int &unassignedProps, int &mismatchProps) |
| Restore a previously saved configuration (for internal use) More... | |
Protected Attributes | |
| QStringList | m_stdPropsText |
| Standard comboboxes elements. More... | |
| QStringList | m_listPropsText |
| List-related comboboxes elements. More... | |
| QStringList | m_singlePropsText |
| Single-related comboboxes elements. More... | |
Dialog for configuration of PLY files opening sequence.
Definition at line 24 of file PlyOpenDlg.h.
|
explicit |
Definition at line 38 of file PlyOpenDlg.cpp.
References addAllStdPropsAsSF(), addSFComboBox(), apply(), applyAll(), fullyAccepted(), m_listCombos, m_singleCombos, and m_standardCombos.
|
protected |
Definition at line 437 of file PlyOpenDlg.cpp.
References addSFComboBox(), m_sfCombos, m_standardCombos, m_stdPropsText, and CVLog::Warning().
Referenced by PlyOpenDlg().
| void PlyOpenDlg::addSFComboBox | ( | int | selectedIndex = 0 | ) |
Definition at line 419 of file PlyOpenDlg.cpp.
References m_sfCombos, and m_stdPropsText.
Referenced by addAllStdPropsAsSF(), PlyFilter::loadFile(), PlyOpenDlg(), and restoreContext().
|
protected |
Definition at line 349 of file PlyOpenDlg.cpp.
References PlyLoadingContext::applyAll, fullyAccepted(), isValid(), s_lastContext, and saveContext().
Referenced by PlyOpenDlg().
|
protected |
Definition at line 357 of file PlyOpenDlg.cpp.
References PlyLoadingContext::applyAll, fullyAccepted(), isValid(), s_lastContext, and saveContext().
Referenced by PlyOpenDlg().
| bool PlyOpenDlg::canBeSkipped | ( | ) | const |
Returns whether the dialog can be 'skipped'.
i.e. 'Apply all' button has been previously clicked and the configuration is valid.
Definition at line 415 of file PlyOpenDlg.cpp.
References PlyLoadingContext::applyAll, isValid(), s_lastContext, and PlyLoadingContext::valid.
Referenced by PlyFilter::loadFile().
|
signal |
Referenced by apply(), applyAll(), and PlyOpenDlg().
| bool PlyOpenDlg::isValid | ( | bool | displayErrors = true | ) | const |
Returns whether the current configuration is valid or not.
Definition at line 365 of file PlyOpenDlg.cpp.
References m_listCombos, m_listPropsText, m_sfCombos, m_singleCombos, m_singlePropsText, m_standardCombos, and m_stdPropsText.
Referenced by apply(), applyAll(), and canBeSkipped().
|
static |
Resets the "apply all" flag (if set)
Definition at line 111 of file PlyOpenDlg.cpp.
References PlyLoadingContext::applyAll, and s_lastContext.
Referenced by PlyFilter::loadFile().
|
protected |
Restore a previously saved configuration (for internal use)
Definition at line 224 of file PlyOpenDlg.cpp.
References addSFComboBox(), context, count, m_listCombos, m_singleCombos, m_standardCombos, and m_stdPropsText.
Referenced by restorePreviousContext().
| bool PlyOpenDlg::restorePreviousContext | ( | bool & | hasAPreviousContext | ) |
Restores the previously saved configuration (if any)
| hasAPreviousContext | returns whether a previous context is stored |
Definition at line 113 of file PlyOpenDlg.cpp.
References PlyLoadingContext::applyAll, restoreContext(), s_lastContext, and PlyLoadingContext::valid.
Referenced by PlyFilter::loadFile().
|
protected |
Saves current configuration (for internal use)
Definition at line 131 of file PlyOpenDlg.cpp.
References context, count, m_listCombos, m_sfCombos, m_singleCombos, and m_standardCombos.
Referenced by apply(), and applyAll().
| void PlyOpenDlg::setDefaultComboItems | ( | const QStringList & | stdPropsText | ) |
Definition at line 72 of file PlyOpenDlg.cpp.
References m_sfCombos, m_standardCombos, and m_stdPropsText.
Referenced by PlyFilter::loadFile().
| void PlyOpenDlg::setListComboItems | ( | const QStringList & | listPropsText | ) |
Definition at line 89 of file PlyOpenDlg.cpp.
References m_listCombos, and m_listPropsText.
Referenced by PlyFilter::loadFile().
| void PlyOpenDlg::setSingleComboItems | ( | const QStringList & | singlePropsText | ) |
Definition at line 100 of file PlyOpenDlg.cpp.
References m_singleCombos, and m_singlePropsText.
Referenced by PlyFilter::loadFile().
| std::vector<QComboBox*> PlyOpenDlg::m_listCombos |
List-related comboboxes (faces, etc.)
Definition at line 37 of file PlyOpenDlg.h.
Referenced by isValid(), PlyOpenDlg(), restoreContext(), saveContext(), and setListComboItems().
|
protected |
List-related comboboxes elements.
Definition at line 83 of file PlyOpenDlg.h.
Referenced by isValid(), and setListComboItems().
| std::vector<QComboBox*> PlyOpenDlg::m_sfCombos |
SF comboboxes.
Definition at line 41 of file PlyOpenDlg.h.
Referenced by addAllStdPropsAsSF(), addSFComboBox(), isValid(), PlyFilter::loadFile(), saveContext(), and setDefaultComboItems().
| std::vector<QComboBox*> PlyOpenDlg::m_singleCombos |
Single-related comboboxes (texture index, etc.)
Definition at line 39 of file PlyOpenDlg.h.
Referenced by isValid(), PlyOpenDlg(), restoreContext(), saveContext(), and setSingleComboItems().
|
protected |
Single-related comboboxes elements.
Definition at line 85 of file PlyOpenDlg.h.
Referenced by isValid(), and setSingleComboItems().
| std::vector<QComboBox*> PlyOpenDlg::m_standardCombos |
Standard comboboxes.
Definition at line 35 of file PlyOpenDlg.h.
Referenced by addAllStdPropsAsSF(), isValid(), PlyOpenDlg(), restoreContext(), saveContext(), and setDefaultComboItems().
|
protected |
Standard comboboxes elements.
Definition at line 81 of file PlyOpenDlg.h.
Referenced by addAllStdPropsAsSF(), addSFComboBox(), isValid(), restoreContext(), and setDefaultComboItems().