ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
LASFWFFilter.cpp File Reference
#include "LASFWFFilter.h"
#include <CVLog.h>
#include <CVTools.h>
#include <ecvColorScalesManager.h>
#include <ecvHObjectCaster.h>
#include <ecvPointCloud.h>
#include <ecvProgressDialog.h>
#include <ecvScalarField.h>
#include <ecvWaveform.h>
#include <LASFields.h>
#include <QCoreApplication>
#include <QFile>
#include <QFileInfo>
#include <QString>
#include <laspoint.hpp>
#include <lasreader_las.hpp>
#include <laswriter_las.hpp>
#include <ui_saveLASFileDlg.h>
#include <assert.h>
#include <string.h>
Include dependency graph for LASFWFFilter.cpp:

Go to the source code of this file.

Classes

struct  ExtraLasField
 Custom ("Extra bytes") field (EVLR) More...
 
class  LASSaveDlg
 LAS Save dialog. More...
 

Functions

static QByteArray ToQByteArray (const LASvlr &vlr)
 
static bool FromQByteArray (const QByteArray &buffer, LASvlr &vlr)
 
bool PrepareLASField (ccScalarField *&sf, LasField *lasField, unsigned totalCount, unsigned currentCount, ScalarType defaultValue=0)
 

Variables

static const char ProjectionVLR [] = "LASF_Projection"
 Projection VLR. More...
 
static const uint16_t VLR_HEADER_SIZE
 VLR buffer header size (in bytes) More...
 

Function Documentation

◆ FromQByteArray()

static bool FromQByteArray ( const QByteArray &  buffer,
LASvlr &  vlr 
)
static

Definition at line 110 of file LASFWFFilter.cpp.

References VLR_HEADER_SIZE, and CVLog::Warning().

Referenced by LASFWFFilter::saveToFile().

◆ PrepareLASField()

bool PrepareLASField ( ccScalarField *&  sf,
LasField lasField,
unsigned  totalCount,
unsigned  currentCount,
ScalarType  defaultValue = 0 
)

◆ ToQByteArray()

static QByteArray ToQByteArray ( const LASvlr &  vlr)
static

Definition at line 80 of file LASFWFFilter.cpp.

References VLR_HEADER_SIZE.

Referenced by LASFWFFilter::loadFile().

Variable Documentation

◆ ProjectionVLR

const char ProjectionVLR[] = "LASF_Projection"
static

Projection VLR.

Definition at line 74 of file LASFWFFilter.cpp.

Referenced by LASFWFFilter::loadFile(), and LASFWFFilter::saveToFile().

◆ VLR_HEADER_SIZE

const uint16_t VLR_HEADER_SIZE
static
Initial value:
=
static_cast<uint16_t>(2 + 16 + 2 + 2 + 32)

VLR buffer header size (in bytes)

Definition at line 77 of file LASFWFFilter.cpp.

Referenced by FromQByteArray(), and ToQByteArray().