ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
LASFWFFilter.h
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 #pragma once
9 
10 // qCC_io
11 #include <FileIOFilter.h>
12 
14 class LASFWFFilter : public FileIOFilter {
15 public:
16  LASFWFFilter();
17 
18  // static accessors
19  static inline QString GetFileFilter() {
20  return "LAS 1.3 or 1.4 (*.las *.laz)";
21  }
22 
23  // inherited from FileIOFilter
24  virtual CC_FILE_ERROR loadFile(const QString& filename,
25  ccHObject& container,
26  LoadParameters& parameters) override;
27 
28  virtual bool canSave(CV_CLASS_ENUM type,
29  bool& multiple,
30  bool& exclusive) const override;
31  virtual CC_FILE_ERROR saveToFile(ccHObject* entity,
32  const QString& filename,
33  const SaveParameters& parameters) override;
34 };
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
std::string filename
char type
CC_FILE_ERROR
Typical I/O filter errors.
Definition: FileIOFilter.h:20
Generic file I/O filter.
Definition: FileIOFilter.h:46
LAS with Full WaveForm support (version >= 1.3) filter.
Definition: LASFWFFilter.h:14
virtual CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
virtual CC_FILE_ERROR loadFile(const QString &filename, ccHObject &container, LoadParameters &parameters) override
Loads one or more entities from a file.
static QString GetFileFilter()
Definition: LASFWFFilter.h:19
virtual 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.
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25