libLAS API Reference (svn-trunk)
liblas::Dimension Class Reference

Dimension definition. More...

#include <dimension.hpp>

Collaboration diagram for liblas::Dimension:
Collaboration graph

Public Member Functions

 Dimension (std::string const &name, std::size_t size_in_bits)
Dimension & operator= (Dimension const &rhs)
 Dimension (Dimension const &other)
bool operator== (const Dimension &other) const
bool operator!= (const Dimension &other) const
virtual ~Dimension ()
std::string const & GetName () const
std::size_t GetBitSize () const
 bits, total logical size of point record, including any custom dimensions
std::size_t GetByteSize () const
 bytes, physical/serialisation size of record
std::size_t GetByteOffset () const
 The byte location to start reading/writing point data from in a composited schema.
void SetByteOffset (std::size_t v)
std::size_t GetBitOffset () const
 The bit location within the byte to start reading data.
void SetBitOffset (std::size_t v)
bool IsRequired () const
 Is this dimension required by PointFormatName.
void IsRequired (bool v)
bool IsActive () const
 Is this dimension being used.
void IsActive (bool v)
std::string GetDescription () const
void SetDescription (std::string const &v)
bool IsNumeric () const
 Is this dimension a numeric dimension.
void IsNumeric (bool v)
bool IsSigned () const
 Does this dimension have a sign?
void IsSigned (bool v)
bool IsInteger () const
 Does this dimension interpret to an integer?
void IsInteger (bool v)
double GetMinimum () const
 The minimum value of this dimension as a double.
void SetMinimum (double min)
double GetMaximum () const
 The maximum value of this dimension as a double.
void SetMaximum (double max)
uint32_t GetPosition () const
 The index position of the index.
void SetPosition (uint32_t v)
double GetScale () const
 The scaling value for this dimension as a double.
void SetScale (double v)
double GetOffset () const
 The offset value for this dimension.
void SetOffset (double v)
bool IsFinitePrecision () const
 If true, this dimension uses scale/offset values.
void IsFinitePrecision (bool v)
bool operator< (Dimension const &dim) const
bool operator> (Dimension const &dim) const
liblas::property_tree::ptree GetPTree () const

Detailed Description

Dimension definition.

Constructor & Destructor Documentation

◆ Dimension() [1/2]

liblas::Dimension::Dimension ( std::string const & name,
std::size_t size_in_bits )

Referenced by Dimension(), operator!=(), operator<(), operator=(), operator==(), and operator>().

Here is the caller graph for this function:

◆ Dimension() [2/2]

liblas::Dimension::Dimension ( Dimension const & other)

References Dimension().

Here is the call graph for this function:

◆ ~Dimension()

virtual liblas::Dimension::~Dimension ( )
inlinevirtual

Member Function Documentation

◆ GetBitOffset()

std::size_t liblas::Dimension::GetBitOffset ( ) const
inline

The bit location within the byte to start reading data.

liblas::Schema will set these values for you when liblas::Dimension are added to the liblas::Schema. This value will be 0 for dimensions that are composed of entire bytes.

◆ GetBitSize()

std::size_t liblas::Dimension::GetBitSize ( ) const
inline

bits, total logical size of point record, including any custom dimensions

◆ GetByteOffset()

std::size_t liblas::Dimension::GetByteOffset ( ) const
inline

The byte location to start reading/writing point data from in a composited schema.

liblas::Schema will set these values for you when liblas::Dimension are added to the liblas::Schema.

◆ GetByteSize()

std::size_t liblas::Dimension::GetByteSize ( ) const

bytes, physical/serialisation size of record

◆ GetDescription()

std::string liblas::Dimension::GetDescription ( ) const
inline

◆ GetMaximum()

double liblas::Dimension::GetMaximum ( ) const
inline

The maximum value of this dimension as a double.

◆ GetMinimum()

double liblas::Dimension::GetMinimum ( ) const
inline

The minimum value of this dimension as a double.

◆ GetName()

std::string const & liblas::Dimension::GetName ( ) const
inline

◆ GetOffset()

double liblas::Dimension::GetOffset ( ) const
inline

The offset value for this dimension.

Usually zero, but it can be set to any value in combination with the scale to allow for more expressive ranges.

◆ GetPosition()

uint32_t liblas::Dimension::GetPosition ( ) const
inline

The index position of the index.

In a standard ePointFormat0 data record, the X dimension would have a position of 0, while the Y dimension would have a position of 1, for example.

◆ GetPTree()

liblas::property_tree::ptree liblas::Dimension::GetPTree ( ) const

◆ GetScale()

double liblas::Dimension::GetScale ( ) const
inline

The scaling value for this dimension as a double.

This should be positive or negative powers of ten.

◆ IsActive() [1/2]

bool liblas::Dimension::IsActive ( ) const
inline

Is this dimension being used.

A dimension with IsActive false may exist as a placeholder in PointFormatName-specified dimensions, but have their IsActive flag set to false. In this case, those values may be disregarded.

Referenced by liblas::SetActive::operator()().

Here is the caller graph for this function:

◆ IsActive() [2/2]

void liblas::Dimension::IsActive ( bool v)
inline

◆ IsFinitePrecision() [1/2]

bool liblas::Dimension::IsFinitePrecision ( ) const
inline

If true, this dimension uses scale/offset values.

◆ IsFinitePrecision() [2/2]

void liblas::Dimension::IsFinitePrecision ( bool v)
inline

◆ IsInteger() [1/2]

bool liblas::Dimension::IsInteger ( ) const
inline

Does this dimension interpret to an integer?

Only applicable to dimensions with IsNumeric == true.

◆ IsInteger() [2/2]

void liblas::Dimension::IsInteger ( bool v)
inline

◆ IsNumeric() [1/2]

bool liblas::Dimension::IsNumeric ( ) const
inline

Is this dimension a numeric dimension.

Dimensions with IsNumeric == false are considered generic bit/byte fields/

◆ IsNumeric() [2/2]

void liblas::Dimension::IsNumeric ( bool v)
inline

◆ IsRequired() [1/2]

bool liblas::Dimension::IsRequired ( ) const
inline

Is this dimension required by PointFormatName.

Referenced by liblas::SetRequired::operator()().

Here is the caller graph for this function:

◆ IsRequired() [2/2]

void liblas::Dimension::IsRequired ( bool v)
inline

◆ IsSigned() [1/2]

bool liblas::Dimension::IsSigned ( ) const
inline

Does this dimension have a sign?

Only applicable to dimensions with IsNumeric == true.

◆ IsSigned() [2/2]

void liblas::Dimension::IsSigned ( bool v)
inline

◆ operator!=()

bool liblas::Dimension::operator!= ( const Dimension & other) const
inline

References Dimension().

Here is the call graph for this function:

◆ operator<()

bool liblas::Dimension::operator< ( Dimension const & dim) const
inline

References Dimension().

Here is the call graph for this function:

◆ operator=()

Dimension & liblas::Dimension::operator= ( Dimension const & rhs)

References Dimension().

Here is the call graph for this function:

◆ operator==()

bool liblas::Dimension::operator== ( const Dimension & other) const

References Dimension().

Here is the call graph for this function:

◆ operator>()

bool liblas::Dimension::operator> ( Dimension const & dim) const
inline

References Dimension().

Here is the call graph for this function:

◆ SetBitOffset()

void liblas::Dimension::SetBitOffset ( std::size_t v)
inline

◆ SetByteOffset()

void liblas::Dimension::SetByteOffset ( std::size_t v)
inline

◆ SetDescription()

void liblas::Dimension::SetDescription ( std::string const & v)
inline

◆ SetMaximum()

void liblas::Dimension::SetMaximum ( double max)
inline

◆ SetMinimum()

void liblas::Dimension::SetMinimum ( double min)
inline

◆ SetOffset()

void liblas::Dimension::SetOffset ( double v)
inline

◆ SetPosition()

void liblas::Dimension::SetPosition ( uint32_t v)
inline

◆ SetScale()

void liblas::Dimension::SetScale ( double v)
inline

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