18 #include <QTextStream>
27 return "ASCII cloud (*.txt *.asc *.neu *.xyz *.xyzrgb *.xyzn *.pts "
37 bool& exclusive)
const override;
76 QString filenameOrTitle,
84 QString filenameOrTitle,
89 unsigned approximateNumberOfLines,
91 unsigned maxCloudSize,
94 bool showLabelsIn2D =
false);
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
CC_FILE_ERROR
Typical I/O filter errors.
ASCII point cloud I/O filter.
CC_FILE_ERROR loadAsciiData(const QByteArray &data, QString sourceName, ccHObject &container, LoadParameters ¶meters)
Loads a cloud from a QByteArray.
CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters ¶meters) override
Loads one or more entities from a file.
CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters ¶meters) override
Saves an entity (or a group of) to a file.
static void SaveColumnsNamesHeader(bool state)
CC_FILE_ERROR loadStream(QTextStream &stream, QString filenameOrTitle, qint64 dataSize, ccHObject &container, LoadParameters ¶meters)
Loads an ASCII stream.
CC_FILE_ERROR loadCloudFromFormatedAsciiStream(QTextStream &stream, QString filenameOrTitle, ccHObject &container, const AsciiOpenDlg::Sequence &openSequence, char separator, bool commaAsDecimal, unsigned approximateNumberOfLines, qint64 fileSize, unsigned maxCloudSize, unsigned skipLines, LoadParameters ¶meters, bool showLabelsIn2D=false)
Loads an ASCII stream with a predefined format.
static void SavePointCountHeader(bool state)
static void SaveSFBeforeColor(bool state)
Sets whether color and SF should be swapped (default is color then SF)
bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
static void SetOutputSFPrecision(int prec)
Sets the default output scalar values precision (as saving time)
static QString GetFileFilter()
static void SetOutputSeparatorIndex(int separatorIndex)
Sets the default output separator (as saving time)
static void SetOutputCoordsPrecision(int prec)
Sets the default output coords precision (as saving time)
static void SetDefaultSkippedLineCount(int count)
Sets the default number of skipped lines (at loading time)
std::vector< SequenceItem > Sequence
ASCII open sequence.
Hierarchical CLOUDVIEWER Object.
Generic loading parameters.
Generic saving parameters.