ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qLASFWFIO.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include "qLASFWFIO.h"
9 
10 // local
11 #include "LASFWFFilter.h"
12 #include "qLASFWFIOCommands.h"
13 
14 // Qt
15 #include <QtPlugin>
16 
17 qLASFWFIO::qLASFWFIO(QObject* parent)
18  : QObject(parent), ccIOPluginInterface(":/CC/plugin/qLASFWFIO/info.json") {}
19 
20 ccIOPluginInterface::FilterList qLASFWFIO::getFilters() {
21  return {FileIOFilter::Shared(new LASFWFFilter)};
22 }
23 
25  if (!cmd) {
26  assert(false);
27  return;
28  }
29 
30  cmd->registerCommand(
32  cmd->registerCommand(
34 }
QSharedPointer< FileIOFilter > Shared
Shared type.
Definition: FileIOFilter.h:97
LAS with Full WaveForm support (version >= 1.3) filter.
Definition: LASFWFFilter.h:14
Command line interface.
virtual bool registerCommand(Command::Shared command)=0
Registers a new command.
I/O filter plugin interface.
QVector< FileIOFilter::Shared > FilterList
virtual void registerCommands(ccCommandLineInterface *cmd)
Optional: registers commands (for the command line mode)
QSharedPointer< Command > Shared
Shared type.