50 static QString
X() {
return "X"; }
51 static QString
Y() {
return "Y"; }
52 static QString
Z() {
return "Z"; }
53 static QString
Nx() {
return "Nx"; }
54 static QString
Ny() {
return "Ny"; }
55 static QString
Nz() {
return "Nz"; }
56 static QString
R() {
return "R"; }
57 static QString
G() {
return "G"; }
58 static QString
B() {
return "B"; }
59 static QString
A() {
return "A"; }
60 static QString
Rf() {
return "Rf"; }
61 static QString
Gf() {
return "Gf"; }
62 static QString
Bf() {
return "Bf"; }
63 static QString
Af() {
return "Af"; }
65 static QString
Grey() {
return "Intensity"; }
66 static QString
Scalar() {
return "SF"; }
67 static QString
RGB32i() {
return "RGB32i"; }
68 static QString
RGB32f() {
return "RGB32f"; }
69 static QString
Label() {
return "Label"; }
97 class Ui_AsciiOpenDialog;
133 :
type(_type), header(_header) {}
173 QString& errorMessage);
212 enum ColumnType { TEXT = 0, UNKNOWN = 1, IGNORED = 2, VALID = 3 };
const unsigned ASCII_OPEN_DLG_TYPES_COUNT
const char ASCII_OPEN_DLG_TYPES_NAMES[ASCII_OPEN_DLG_TYPES_COUNT][20]
Default ASCII header columns.
Dialog for configuration of ASCII files opening sequence.
Ui_AsciiOpenDialog * m_ui
bool useCommaAsDecimal() const
Returns whether comma should be used as decimal point.
void checkSelectedColumnsValidity()
void setSkippedLines(int linesCount)
Sets the number of lines to skip.
unsigned char getSeparator() const
Returns user selected separator.
void columnsTypeHasChanged(int index)
static bool CheckOpenSequence(const Sequence &sequence, QString &errorMessage)
Checks the "opening" sequence as set by the user.
void commaDecimalCheckBoxToggled(bool)
Slot called when the 'comma as decimal' checkbox is toggled.
void setInput(const QString &filename, QTextStream *stream=nullptr)
Sets the input filename or text stream.
unsigned getSkippedLinesCount() const
Returns number of lines to skip.
bool showLabelsIn2D() const
Whether labels should be visible in 2D.
std::vector< ColumnType > m_columnType
Identifies columns with numbers only [mandatory].
double getAverageLineSize() const
Returns roughly estimated average line size (in bytes)
unsigned getColumnsCount() const
Returns columns count per line.
static void ResetApplyAll()
Resets the "apply all" flag (if set)
std::vector< SequenceItem > Sequence
ASCII open sequence.
bool restorePreviousContext()
Restores the previous context ('Apply all' button)
void shortcutButtonPressed()
bool safeSequence() const
Returns whether the current sequence is 'safe'.
AsciiOpenDlg(QWidget *parent=nullptr)
Default constructor.
void autoFindBestSeparator()
Tries to guess the best separator automagically.
void setSeparator(QChar)
Sets the current separator.
Sequence getOpenSequence() const
Returns the whole "opening" sequence as set by the user.
~AsciiOpenDlg() override
Default destructor.
void onSeparatorChange(const QString &separator)
Slot called when separator changes.
void updateTable()
Forces the table to update itself.
unsigned getMaxCloudSize() const
Returns the max number of points per cloud.
ASCII open sequence item.
SequenceItem()
Default constructor.
CC_ASCII_OPEN_DLG_TYPES type
SequenceItem(CC_ASCII_OPEN_DLG_TYPES _type, const QString &_header)
Constructor from parameters.