ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
LasScalarField::Range Struct Reference

#include <LasScalarField.h>

Public Member Functions

template<class T >
constexpr Range (T minValue, T maxValue)
 

Static Public Member Functions

template<class T >
static constexpr Range ForType ()
 Shortcut to create a Range from a native type like uint16_t. More...
 
static Range ForBitCount (uint8_t numBits)
 

Public Attributes

ScalarType min = 0
 
ScalarType max = 0
 

Detailed Description

Represents an inclusive range of value from a minimum to a maximum.

This is used to be able to detect and inform users from possible data loss.

Definition at line 70 of file LasScalarField.h.

Constructor & Destructor Documentation

◆ Range()

template<class T >
constexpr LasScalarField::Range::Range ( minValue,
maxValue 
)
inlineconstexpr

Creates a new Range given the min and max value.

These values are converted to ScalarType

Definition at line 76 of file LasScalarField.h.

Referenced by ForBitCount(), and ForType().

Member Function Documentation

◆ ForBitCount()

static Range LasScalarField::Range::ForBitCount ( uint8_t  numBits)
inlinestatic

Definition at line 89 of file LasScalarField.h.

References Range().

Referenced by LasScalarField::ValueRange().

◆ ForType()

template<class T >
static constexpr Range LasScalarField::Range::ForType ( )
inlinestaticconstexpr

Shortcut to create a Range from a native type like uint16_t.

Definition at line 84 of file LasScalarField.h.

References max(), min(), and Range().

Member Data Documentation

◆ max

ScalarType LasScalarField::Range::max = 0

◆ min

ScalarType LasScalarField::Range::min = 0

Definition at line 94 of file LasScalarField.h.

Referenced by LasSaveDialog::handleComboBoxChange().


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