 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
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 };
std::string filename
Definition: PointCloudIO.cpp:47
static QString A()
Definition: AsciiOpenDlg.h:59
Dialog for configuration of ASCII files opening sequence.
Definition: AsciiOpenDlg.h:100
static QString Gf()
Definition: AsciiOpenDlg.h:61
static QString Bf()
Definition: AsciiOpenDlg.h:62
static QString X()
Definition: AsciiOpenDlg.h:50
@ ASCII_OPEN_DLG_Y
Definition: AsciiOpenDlg.h:25
const unsigned ASCII_OPEN_DLG_TYPES_COUNT
Definition: AsciiOpenDlg.h:20
@ ASCII_OPEN_DLG_None
Definition: AsciiOpenDlg.h:23
@ ASCII_OPEN_DLG_Af
Definition: AsciiOpenDlg.h:37
static QString Y()
Definition: AsciiOpenDlg.h:51
SequenceItem(CC_ASCII_OPEN_DLG_TYPES _type, const QString &_header)
Constructor from parameters.
Definition: AsciiOpenDlg.h:132
static QString Nz()
Definition: AsciiOpenDlg.h:55
@ ASCII_OPEN_DLG_Scalar
Definition: AsciiOpenDlg.h:42
std::vector< ColumnType > m_columnType
Identifies columns with numbers only [mandatory].
Definition: AsciiOpenDlg.h:215
unsigned m_skippedLines
Definition: AsciiOpenDlg.h:205
@ ASCII_OPEN_DLG_B
Definition: AsciiOpenDlg.h:32
QString m_headerLine
Definition: AsciiOpenDlg.h:210
@ ASCII_OPEN_DLG_R
Definition: AsciiOpenDlg.h:30
static QString R()
Definition: AsciiOpenDlg.h:56
@ ASCII_OPEN_DLG_G
Definition: AsciiOpenDlg.h:31
@ ASCII_OPEN_DLG_Gf
Definition: AsciiOpenDlg.h:35
static QString RGB32f()
Definition: AsciiOpenDlg.h:68
@ ASCII_OPEN_DLG_Rf
Definition: AsciiOpenDlg.h:34
const char ASCII_OPEN_DLG_TYPES_NAMES[ASCII_OPEN_DLG_TYPES_COUNT][20]
Definition: AsciiOpenDlg.h:72
static QString Z()
Definition: AsciiOpenDlg.h:52
@ ASCII_OPEN_DLG_NY
Definition: AsciiOpenDlg.h:28
QString m_filename
Definition: AsciiOpenDlg.h:208
double getAverageLineSize() const
Returns roughly estimated average line size (in bytes)
Definition: AsciiOpenDlg.h:152
QTextStream * m_stream
Definition: AsciiOpenDlg.h:209
static QString Scalar()
Definition: AsciiOpenDlg.h:66
@ ASCII_OPEN_DLG_Bf
Definition: AsciiOpenDlg.h:36
static QString Ny()
Definition: AsciiOpenDlg.h:54
SequenceItem()
Default constructor.
Definition: AsciiOpenDlg.h:129
@ ASCII_OPEN_DLG_Z
Definition: AsciiOpenDlg.h:26
static QString B()
Definition: AsciiOpenDlg.h:58
unsigned getColumnsCount() const
Returns columns count per line.
Definition: AsciiOpenDlg.h:155
@ ASCII_OPEN_DLG_X
Definition: AsciiOpenDlg.h:24
#define CV_IO_LIB_API
Definition: CV_io.h:15
unsigned getSkippedLinesCount() const
Returns number of lines to skip.
Definition: AsciiOpenDlg.h:143
@ ASCII_OPEN_DLG_NX
Definition: AsciiOpenDlg.h:27
QString header
Definition: AsciiOpenDlg.h:126
@ ASCII_OPEN_DLG_NZ
Definition: AsciiOpenDlg.h:29
std::vector< SequenceItem > Sequence
ASCII open sequence.
Definition: AsciiOpenDlg.h:137
static QString RGB32i()
Definition: AsciiOpenDlg.h:67
static QString Label()
Definition: AsciiOpenDlg.h:69
@ ASCII_OPEN_DLG_A
Definition: AsciiOpenDlg.h:33
unsigned m_columnsCount
Definition: AsciiOpenDlg.h:217
@ ASCII_OPEN_DLG_RGB32f
Definition: AsciiOpenDlg.h:40
static QString Nx()
Definition: AsciiOpenDlg.h:53
Ui_AsciiOpenDialog * m_ui
Definition: AsciiOpenDlg.h:203
ColumnType
Definition: AsciiOpenDlg.h:212
static QString Af()
Definition: AsciiOpenDlg.h:63
ASCII open sequence item.
Definition: AsciiOpenDlg.h:124
unsigned char getSeparator() const
Returns user selected separator.
Definition: AsciiOpenDlg.h:146
static QString Grey()
Definition: AsciiOpenDlg.h:65
static QString G()
Definition: AsciiOpenDlg.h:57
@ ASCII_OPEN_DLG_Grey
Definition: AsciiOpenDlg.h:38
CC_ASCII_OPEN_DLG_TYPES
Definition: AsciiOpenDlg.h:22
Default ASCII header columns.
Definition: AsciiOpenDlg.h:48
char type
Definition: FileIOFactory.cpp:131
static QString Rf()
Definition: AsciiOpenDlg.h:60
double m_averageLineSize
Definition: AsciiOpenDlg.h:207
@ ASCII_OPEN_DLG_Label
Definition: AsciiOpenDlg.h:41
QChar m_separator
Definition: AsciiOpenDlg.h:206
CC_ASCII_OPEN_DLG_TYPES type
Definition: AsciiOpenDlg.h:125
@ ASCII_OPEN_DLG_RGB32i
Definition: AsciiOpenDlg.h:39