ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
LasWaveformLoader.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 // ##########################################################################
11 // # #
12 // # CloudViewer PLUGIN: LAS-IO Plugin #
13 // # #
14 // # This program is free software; you can redistribute it and/or modify #
15 // # it under the terms of the GNU General Public License as published by #
16 // # the Free Software Foundation; version 2 of the License. #
17 // # #
18 // # This program is distributed in the hope that it will be useful, #
19 // # but WITHOUT ANY WARRANTY; without even the implied warranty of #
20 // # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
21 // # GNU General Public License for more details. #
22 // # #
23 // # COPYRIGHT: Thomas Montaigu #
24 // # #
25 // ##########################################################################
26 
27 // Qt
28 #include <QFileInfo>
29 #include <QString>
30 // DB
31 #include <ecvPointCloud.h>
32 // LASzip
33 #include <laszip/laszip_api.h>
34 
36 {
37  LasWaveformLoader(const laszip_header_struct& laszipHeader,
38  const QString& lasFilename,
39  ccPointCloud& pointCloud);
40 
41  void loadWaveform(ccPointCloud& pointCloud, const laszip_point& currentPoint) const;
42 
43  unsigned fwfDataCount{0};
44  unsigned fwfDataOffset{0};
45  bool isPointFormatExtended{false};
47 };
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
QMap< uint8_t, WaveformDescriptor > FWFDescriptorSet
Waveform descriptors set.
LasWaveformLoader(const laszip_header_struct &laszipHeader, const QString &lasFilename, ccPointCloud &pointCloud)
ccPointCloud::FWFDescriptorSet descriptors
void loadWaveform(ccPointCloud &pointCloud, const laszip_point &currentPoint) const