ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
LasField Struct Reference

LAS field descriptor. More...

#include <LASFields.h>

Inheritance diagram for LasField:
[legend]
Collaboration diagram for LasField:
[legend]

Public Types

typedef QSharedPointer< LasField > Shared
 Shared type. More...
 

Public Member Functions

 LasField (LAS_FIELDS fieldType=LAS_INVALID, double defaultVal=0, double min=0.0, double max=-1.0, uint8_t _minPointFormat=0)
 Default constructor. More...
 
virtual QString getName () const
 Returns official field name. More...
 
double getSafeValue (unsigned index) const
 

Static Public Member Functions

static bool GetLASFields (ccPointCloud *cloud, std::vector< LasField > &fieldsToSave, uint8_t &minPointFormat)
 Returns the (compliant) LAS fields in a point cloud. More...
 
static unsigned GetFormatRecordLength (uint8_t pointFormat)
 
static uint8_t VersionMinorForPointFormat (uint8_t pointFormat)
 
static uint8_t UpdateMinPointFormat (uint8_t minPointFormat, bool withRGB, bool withFWF, bool allowLegacyFormats=true)
 
static QString SanitizeString (const QString &str)
 
static QString DesanitizeString (const QString &str)
 

Public Attributes

LAS_FIELDS type
 
ccScalarField * sf
 
double firstValue
 
double minValue
 
double maxValue
 
double defaultValue
 
uint8_t minPointFormat
 

Detailed Description

LAS field descriptor.

Member Typedef Documentation

◆ Shared

typedef QSharedPointer<LasField> LasField::Shared

Shared type.

Constructor & Destructor Documentation

◆ LasField()

LasField::LasField ( LAS_FIELDS  fieldType = LAS_INVALID,
double  defaultVal = 0,
double  min = 0.0,
double  max = -1.0,
uint8_t  _minPointFormat = 0 
)
inline

Default constructor.

Member Function Documentation

◆ DesanitizeString()

static QString LasField::DesanitizeString ( const QString &  str)
inlinestatic

Referenced by LASFilter::loadFile().

◆ GetFormatRecordLength()

static unsigned LasField::GetFormatRecordLength ( uint8_t  pointFormat)
inlinestatic

◆ GetLASFields()

◆ getName()

virtual QString LasField::getName ( ) const
inlinevirtual

Returns official field name.

Reimplemented in ExtraLasField, and ExtraLasField.

References LAS_FIELD_NAMES, LAS_INVALID, and type.

Referenced by GetLASFields().

◆ getSafeValue()

double LasField::getSafeValue ( unsigned  index) const
inline

◆ SanitizeString()

static QString LasField::SanitizeString ( const QString &  str)
inlinestatic

◆ UpdateMinPointFormat()

static uint8_t LasField::UpdateMinPointFormat ( uint8_t  minPointFormat,
bool  withRGB,
bool  withFWF,
bool  allowLegacyFormats = true 
)
inlinestatic

◆ VersionMinorForPointFormat()

static uint8_t LasField::VersionMinorForPointFormat ( uint8_t  pointFormat)
inlinestatic

Member Data Documentation

◆ defaultValue

double LasField::defaultValue

Referenced by getSafeValue().

◆ firstValue

double LasField::firstValue

◆ maxValue

double LasField::maxValue

Referenced by GetLASFields().

◆ minPointFormat

uint8_t LasField::minPointFormat

◆ minValue

double LasField::minValue

Referenced by GetLASFields().

◆ sf

◆ type

LAS_FIELDS LasField::type

Referenced by getName(), and PrepareLASField().


The documentation for this struct was generated from the following file: