76 constexpr
Range(T minValue, T maxValue)
77 :
min(static_cast<ScalarType>(minValue))
78 ,
max(static_cast<ScalarType>(maxValue))
91 return Range(0, ((1 <<
static_cast<uint32_t
>(numBits)) - 1));
103 const char*
name()
const;
119 static std::vector<LasScalarField>
ForPointFormat(
unsigned pointFormatId);
A scalar field associated to display-related parameters.
constexpr Range(T minValue, T maxValue)
static Range ForBitCount(uint8_t numBits)
static constexpr Range ForType()
Shortcut to create a Range from a native type like uint16_t.
static std::vector< LasScalarField > ForPointFormat(unsigned pointFormatId)
const char * name() const
static LasScalarField::Range ValueRange(LasScalarField::Id id)
Returns the range of value the given field (ID) supports.
@ ExtendedNumberOfReturns
static constexpr const char * NameFromId(LasScalarField::Id id)
Returns the name that correspond to the given LasScalarField::Id variant.
Id id
The Id of the LAS field this relates to.
static LasScalarField::Id IdFromName(const char *name, unsigned targetPointFormat)