qCC_io version 2.13.alpha (Qt) - 31 May 2022
CloudCompare standard I/O filters (file readers & writers)
Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
PlyOpenDlg Class Reference

Dialog for configuration of PLY files opening sequence. More...

#include <PlyOpenDlg.h>

Inheritance diagram for PlyOpenDlg:
Inheritance graph
[legend]
Collaboration diagram for PlyOpenDlg:
Collaboration graph
[legend]

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.
 
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)
 

Public Attributes

std::vector< QComboBox * > m_standardCombos
 Standard comboboxes.
 
std::vector< QComboBox * > m_listCombos
 List-related comboboxes (faces, etc.)
 
std::vector< QComboBox * > m_singleCombos
 Single-related comboboxes (texture index, etc.)
 
std::vector< QComboBox * > m_sfCombos
 SF comboboxes.
 

Protected Member Functions

void apply ()
 
void applyAll ()
 
void saveContext (PlyLoadingContext *context)
 Saves current configuration (for internal use)
 
bool restoreContext (PlyLoadingContext *context, int &unassignedProps, int &mismatchProps)
 Restore a previously saved configuration (for internal use)
 

Protected Attributes

QStringList m_stdPropsText
 Standard comboboxes elements.
 
QStringList m_listPropsText
 List-related comboboxes elements.
 
QStringList m_singlePropsText
 Single-related comboboxes elements.
 

Detailed Description

Dialog for configuration of PLY files opening sequence.

Member Function Documentation

◆ canBeSkipped()

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.

◆ restorePreviousContext()

bool PlyOpenDlg::restorePreviousContext ( bool &  hasAPreviousContext)

Restores the previously saved configuration (if any)

Parameters
hasAPreviousContextreturns whether a previous context is stored
Returns
whether the previous context can be restored or not

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