30 QString extension = QString(),
31 QString suffix = QString(),
32 QString* baseOutputFilename =
nullptr,
33 bool forceNoTimestamp =
false)
const override;
35 const QString& suffix = QString(),
36 QString* baseOutputFilename =
nullptr,
37 ccCommandLineInterface::ExportOptions options =
41 QStringList&
arguments()
override {
return m_arguments; }
42 const QStringList&
arguments()
const override {
return m_arguments; }
45 void print(
const QString& message)
const override;
46 void warning(
const QString& message)
const override;
47 bool error(
const QString& message)
50 bool allAtOnce =
false,
51 const QString* allAtOnceFileName =
nullptr)
override;
53 bool allAtOnce =
false,
54 const QString* allAtOnceFileName =
nullptr)
override;
56 const GlobalShiftOptions& globalShiftOptions,
64 return m_hierarchyExportFormat;
68 m_cloudExportFormat =
format;
69 m_cloudExportExt = ext;
72 m_meshExportFormat =
format;
73 m_meshExportExt = ext;
76 m_hierarchyExportFormat =
format;
77 m_hierarchyExportExt = ext;
91 int start(QDialog* parent = 0);
96 QString m_cloudExportFormat;
98 QString m_cloudExportExt;
101 QString m_meshExportFormat;
103 QString m_meshExportExt;
106 QString m_hierarchyExportFormat;
108 QString m_hierarchyExportExt;
111 QString m_meshFilename;
114 QStringList m_arguments;
117 QMap<QString, Command::Shared> m_commands;
126 QDialog* m_parentWidget;
filament::Texture::InternalFormat format
QSharedPointer< FileIOFilter > Shared
Shared type.
int start(QDialog *parent=0)
Parses the command line.
bool error(const QString &message) const override
void print(const QString &message) const override
QString hierarchyExportFormat() const override
Returns the current hierarchy(ies) export format.
QString meshExportExt() const override
Returns the current mesh(es) export extension (warning: can be anything)
QString cloudExportFormat() const override
Returns the current cloud(s) export format.
bool saveClouds(QString suffix=QString(), bool allAtOnce=false, const QString *allAtOnceFileName=nullptr) override
Saves all clouds.
void setHierarchyExportFormat(QString format, QString ext) override
Sets the current hierarchy(ies) export format and extension.
bool saveMeshes(QString suffix=QString(), bool allAtOnce=false, const QString *allAtOnceFileName=nullptr) override
Saves all meshes.
QStringList & arguments() override
Returns the list of arguments.
bool importFile(QString filename, const GlobalShiftOptions &globalShiftOptions, FileIOFilter::Shared filter=FileIOFilter::Shared(nullptr)) override
Loads a file with a specific filter.
bool registerCommand(Command::Shared command) override
QString getExportFilename(const CLEntityDesc &entityDesc, QString extension=QString(), QString suffix=QString(), QString *baseOutputFilename=nullptr, bool forceNoTimestamp=false) const override
Returns the name of a to-be-exported entity.
~ccCommandLineParser() override
Destructor.
ccCommandLineParser()
Default constructor.
QString cloudExportExt() const override
Returns the current cloud(s) export extension (warning: can be anything)
QDialog * widgetParent() override
Returns a (widget) parent (if any is available)
const QStringList & arguments() const override
Returns the list of arguments (const version)
void setCloudExportFormat(QString format, QString ext) override
Sets the current cloud(s) export format and extension.
void setMeshExportFormat(QString format, QString ext) override
Sets the current mesh(es) export format and extension.
void registerBuiltInCommands()
void removeClouds(bool onlyLast=false) override
Removes all clouds (or only the last one ;)
QString exportEntity(CLEntityDesc &entityDesc, const QString &suffix=QString(), QString *baseOutputFilename=nullptr, ccCommandLineInterface::ExportOptions options=ExportOption::NoOptions) override
Exports a cloud or a mesh.
void removeMeshes(bool onlyLast=false) override
Removes all meshes (or only the last one ;)
QString hierarchyExportExt() const override
static int Parse(int nargs, char **args, ccPluginInterfaceList &plugins)
Parses the input command.
void warning(const QString &message) const override
QString meshExportFormat() const override
Returns the current mesh(es) export format.
Hierarchical CLOUDVIEWER Object.
Graphical progress indicator (thread-safe)
QVector< ccPluginInterface * > ccPluginInterfaceList
Simply a list of.
Loaded entity description.
QSharedPointer< Command > Shared
Shared type.