25 cmd.
print(
"[LOADING LAS]");
28 QString(
"Missing parameter: filename after \"-%1\"")
52 "Internal error: failed to load the LAS FWF I/O filter");
69 bool allAtOnce =
false;
74 QString argument = cmd.
arguments().front();
97 bool success = cmd.
saveClouds(QString(), allAtOnce);
101 previousCloudExportExt);
CC_FILE_ERROR
Typical I/O filter errors.
static Shared GetFilter(const QString &fileFilter, bool onImport)
Returns the filter corresponding to the given 'file filter'.
QSharedPointer< FileIOFilter > Shared
Shared type.
static QString GetFileFilter()
virtual QString cloudExportExt() const =0
Returns the current cloud(s) export extension (warning: can be anything)
virtual QStringList & arguments()=0
Returns the list of arguments.
virtual bool saveClouds(QString suffix=QString(), bool allAtOnce=false, const QString *allAtOnceFileName=nullptr)=0
Saves all clouds.
bool nextCommandIsGlobalShift() const
Returns whether the nex command is the '-GLOBAL_SHIFT' option.
bool processGlobalShiftCommand(GlobalShiftOptions &options)
virtual void print(const QString &message) const =0
virtual bool error(const QString &message) const =0
virtual QString cloudExportFormat() const =0
Returns the current cloud(s) export format.
virtual bool importFile(QString filename, const GlobalShiftOptions &globalShiftOptions, FileIOFilter::Shared filter=FileIOFilter::Shared(nullptr))=0
Loads a file with a specific filter.
virtual void setCloudExportFormat(QString format, QString ext)=0
Sets the current cloud(s) export format and extension.
static const char COMMAND_LOAD_FWF[]
static const char OPTION_COMPRESSED[]
static const char OPTION_ALL_AT_ONCE[]
static const char COMMAND_SAVE_CLOUDS_FWF[]
virtual bool process(ccCommandLineInterface &cmd) override
Main process.
virtual bool process(ccCommandLineInterface &cmd) override
Main process.
Generic command interface.
Command(const QString &name, const QString &keyword)
Default constructor.