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;
116 void setInput(
const QString&
filename, QTextStream* stream =
nullptr);
121 bool restorePreviousContext();
133 :
type(_type), header(_header) {}
149 bool useCommaAsDecimal()
const;
158 unsigned getMaxCloudSize()
const;
161 bool showLabelsIn2D()
const;
167 bool safeSequence()
const;
172 static bool CheckOpenSequence(
const Sequence& sequence,
173 QString& errorMessage);
176 static void ResetApplyAll();
180 void onSeparatorChange(
const QString& separator);
184 void setSkippedLines(
int linesCount);
186 void commaDecimalCheckBoxToggled(
bool);
191 void columnsTypeHasChanged(
int index);
192 void shortcutButtonPressed();
193 void checkSelectedColumnsValidity();
197 void autoFindBestSeparator();
200 void setSeparator(QChar);
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
unsigned char getSeparator() const
Returns user selected separator.
unsigned getSkippedLinesCount() const
Returns number of lines to skip.
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.
std::vector< SequenceItem > Sequence
ASCII open sequence.
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.