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


Public Member Functions | |
| AsciiSaveDlg (QWidget *parent=nullptr) | |
| Default constructor. More... | |
| virtual | ~AsciiSaveDlg () |
| Destructor. More... | |
| bool | saveColumnsNamesHeader () const |
| Returns whether columns names should be be saved in header. More... | |
| void | enableSaveColumnsNamesHeader (bool state) |
| Sets whether columns names should be be saved in header. More... | |
| bool | savePointCountHeader () const |
| Returns whether the number of points should be saved in header. More... | |
| void | enableSavePointCountHeader (bool state) |
| Sets whether the number of points should be saved in header. More... | |
| unsigned char | getSeparator () const |
| Returns separator. More... | |
| void | setSeparatorIndex (int index) |
| Set separator (index) More... | |
| int | getSeparatorIndex () const |
| Returns separator index. More... | |
| int | coordsPrecision () const |
| Returns coordinates precision. More... | |
| void | setCoordsPrecision (int prec) |
| Sets coordinates precision. More... | |
| int | sfPrecision () const |
| Returns SF precision. More... | |
| void | setSfPrecision (int prec) |
| Sets SF precision. More... | |
| bool | swapColorAndSF () const |
| Returns whether SF(s) and color should be swapped. More... | |
| void | enableSwapColorAndSF (bool state) |
| Sets whether SF(s) and color should be swapped. More... | |
| void | setAutoShow (bool state) |
| Sets whether this dialog should appear or not by default. More... | |
| bool | autoShown () const |
| Returns whether this dialog automatically appears or not. More... | |
| void | setSaveFloatColors (bool state) |
| Sets whether to save colors as float values (instead of unsigned bytes) More... | |
| bool | saveFloatColors () const |
| void | setSaveAlphaChannel (bool state) |
| Sets whether to save the alpha (transparency) channel. More... | |
| bool | saveAlphaChannel () const |
| Returns whether to save the alpha (transparency) channel. More... | |
Protected Slots | |
| void | acceptAndSaveSettings () |
| Saves dialog state to persistent settings. More... | |
Protected Member Functions | |
| void | initFromPersistentSettings () |
| Inits dialog state from persistent settings. More... | |
Protected Attributes | |
| Ui_AsciiSaveDialog * | m_ui |
| Associated UI. More... | |
| bool | m_autoShow |
| Whether this dialog should be automatically shown or not. More... | |
Dialog for configuration of ASCII files saving sequence.
Definition at line 19 of file AsciiSaveDlg.h.
|
explicit |
Default constructor.
Definition at line 21 of file AsciiSaveDlg.cpp.
References acceptAndSaveSettings(), initFromPersistentSettings(), and m_ui.
|
virtual |
|
protectedslot |
Saves dialog state to persistent settings.
Definition at line 163 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiSaveDlg().
|
inline |
Returns whether this dialog automatically appears or not.
Definition at line 70 of file AsciiSaveDlg.h.
| int AsciiSaveDlg::coordsPrecision | ( | ) | const |
Returns coordinates precision.
Definition at line 92 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by initFromPersistentSettings(), and AsciiFilter::saveToFile().
| void AsciiSaveDlg::enableSaveColumnsNamesHeader | ( | bool | state | ) |
Sets whether columns names should be be saved in header.
Definition at line 39 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiFilter::saveToFile().
| void AsciiSaveDlg::enableSavePointCountHeader | ( | bool | state | ) |
Sets whether the number of points should be saved in header.
Definition at line 47 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiFilter::saveToFile().
| void AsciiSaveDlg::enableSwapColorAndSF | ( | bool | state | ) |
Sets whether SF(s) and color should be swapped.
Definition at line 112 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiFilter::saveToFile().
| unsigned char AsciiSaveDlg::getSeparator | ( | ) | const |
Returns separator.
Definition at line 67 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiFilter::saveToFile().
| int AsciiSaveDlg::getSeparatorIndex | ( | ) | const |
Returns separator index.
Definition at line 88 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiFilter::saveToFile().
|
protected |
Inits dialog state from persistent settings.
Definition at line 116 of file AsciiSaveDlg.cpp.
References coordsPrecision(), m_ui, saveAlphaChannel(), saveFloatColors(), and sfPrecision().
Referenced by AsciiSaveDlg().
| bool AsciiSaveDlg::saveAlphaChannel | ( | ) | const |
Returns whether to save the alpha (transparency) channel.
Definition at line 63 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by initFromPersistentSettings(), and AsciiFilter::saveToFile().
| bool AsciiSaveDlg::saveColumnsNamesHeader | ( | ) | const |
Returns whether columns names should be be saved in header.
Definition at line 35 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiFilter::saveToFile().
| bool AsciiSaveDlg::saveFloatColors | ( | ) | const |
Returns whether to save colors as float values (instead of unsigned bytes)
Definition at line 55 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by initFromPersistentSettings(), and AsciiFilter::saveToFile().
| bool AsciiSaveDlg::savePointCountHeader | ( | ) | const |
Returns whether the number of points should be saved in header.
Definition at line 43 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiFilter::saveToFile().
|
inline |
Sets whether this dialog should appear or not by default.
Definition at line 68 of file AsciiSaveDlg.h.
| void AsciiSaveDlg::setCoordsPrecision | ( | int | prec | ) |
Sets coordinates precision.
Definition at line 96 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiFilter::saveToFile().
| void AsciiSaveDlg::setSaveAlphaChannel | ( | bool | state | ) |
Sets whether to save the alpha (transparency) channel.
Definition at line 59 of file AsciiSaveDlg.cpp.
References m_ui.
| void AsciiSaveDlg::setSaveFloatColors | ( | bool | state | ) |
Sets whether to save colors as float values (instead of unsigned bytes)
Definition at line 51 of file AsciiSaveDlg.cpp.
References m_ui.
| void AsciiSaveDlg::setSeparatorIndex | ( | int | index | ) |
Set separator (index)
0 = space 1 = semicolon 2 = comma 3 = tab
Definition at line 84 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiFilter::saveToFile().
| void AsciiSaveDlg::setSfPrecision | ( | int | prec | ) |
Sets SF precision.
Definition at line 104 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiFilter::saveToFile().
| int AsciiSaveDlg::sfPrecision | ( | ) | const |
Returns SF precision.
Definition at line 100 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by initFromPersistentSettings(), and AsciiFilter::saveToFile().
| bool AsciiSaveDlg::swapColorAndSF | ( | ) | const |
Returns whether SF(s) and color should be swapped.
Definition at line 108 of file AsciiSaveDlg.cpp.
References m_ui.
Referenced by AsciiFilter::saveToFile().
|
protected |
Whether this dialog should be automatically shown or not.
Definition at line 96 of file AsciiSaveDlg.h.
|
protected |
Associated UI.
Definition at line 90 of file AsciiSaveDlg.h.
Referenced by acceptAndSaveSettings(), AsciiSaveDlg(), coordsPrecision(), enableSaveColumnsNamesHeader(), enableSavePointCountHeader(), enableSwapColorAndSF(), getSeparator(), getSeparatorIndex(), initFromPersistentSettings(), saveAlphaChannel(), saveColumnsNamesHeader(), saveFloatColors(), savePointCountHeader(), setCoordsPrecision(), setSaveAlphaChannel(), setSaveFloatColors(), setSeparatorIndex(), setSfPrecision(), sfPrecision(), swapColorAndSF(), and ~AsciiSaveDlg().