42 #ifndef LIBLAS_DIMENSION_HPP_INCLUDED 43 #define LIBLAS_DIMENSION_HPP_INCLUDED 46 #include <liblas/external/property_tree/ptree.hpp> 51 #include <boost/any.hpp> 52 #include <boost/shared_ptr.hpp> 53 #include <boost/foreach.hpp> 54 #include <boost/array.hpp> 56 #include <boost/multi_index_container.hpp> 57 #include <boost/multi_index/member.hpp> 58 #include <boost/multi_index/ordered_index.hpp> 59 #include <boost/multi_index/hashed_index.hpp> 60 #include <boost/multi_index/sequenced_index.hpp> 68 #include <boost/unordered_map.hpp> 85 inline std::string
const&
GetName()
const {
return m_name; }
95 std::size_t GetByteSize()
const;
103 return m_byte_offset;
185 return m_position < dim.m_position;
189 return m_position > dim.m_position;
192 liblas::property_tree::ptree GetPTree()
const;
196 std::size_t m_bit_size;
199 std::string m_description;
209 std::size_t m_byte_offset;
210 std::size_t m_bit_offset;
245 #endif // LIBLAS_DIMENSION_HPP_INCLUDED bool IsInteger() const
Does this dimension interpret to an integer? Only applicable to dimensions with IsNumeric == true...
Definition: dimension.hpp:151
std::string const & GetName() const
Definition: dimension.hpp:85
uint32_t GetPosition() const
The index position of the index.
Definition: dimension.hpp:165
SetActive(bool req)
Definition: dimension.hpp:230
bool operator!=(const Dimension &other) const
Definition: dimension.hpp:81
void IsFinitePrecision(bool v)
Definition: dimension.hpp:181
#define LAS_DLL
Definition: export.hpp:58
std::ostream & operator<<(std::ostream &os, Classification const &cls)
The output stream operator is based on std::bitset<N>::operator<<.
Definition: classification.hpp:247
void operator()(Dimension &e)
Definition: dimension.hpp:219
double GetMaximum() const
The maximum value of this dimension as a double.
Definition: dimension.hpp:159
bool IsSigned() const
Does this dimension have a sign? Only applicable to dimensions with IsNumeric == true.
Definition: dimension.hpp:146
SetRequired(bool req)
Definition: dimension.hpp:217
void IsRequired(bool v)
Definition: dimension.hpp:127
void SetBitOffset(std::size_t v)
Definition: dimension.hpp:120
void SetPosition(uint32_t v)
Definition: dimension.hpp:166
std::size_t GetByteOffset() const
The byte location to start reading/writing point data from in a composited schema.
Definition: dimension.hpp:101
bool IsNumeric() const
Is this dimension a numeric dimension.
Definition: dimension.hpp:141
void SetMaximum(double max)
Definition: dimension.hpp:160
double GetScale() const
The scaling value for this dimension as a double.
Definition: dimension.hpp:170
std::size_t GetBitSize() const
bits, total logical size of point record, including any custom dimensions
Definition: dimension.hpp:89
virtual ~Dimension()
Definition: dimension.hpp:83
double GetMinimum() const
The minimum value of this dimension as a double.
Definition: dimension.hpp:155
void IsActive(bool v)
Definition: dimension.hpp:134
bool IsFinitePrecision() const
If true, this dimension uses scale/offset values.
Definition: dimension.hpp:180
void IsNumeric(bool v)
Definition: dimension.hpp:142
Definition: dimension.hpp:215
void SetByteOffset(std::size_t v)
Definition: dimension.hpp:106
void SetMinimum(double min)
Definition: dimension.hpp:156
void IsInteger(bool v)
Definition: dimension.hpp:152
bool operator==(Classification const &lhs, Classification const &rhs)
Equal-to operator implemented in terms of Classification::equal.
Definition: classification.hpp:226
void IsSigned(bool v)
Definition: dimension.hpp:147
Namespace grouping all elements of libLAS public interface.
Definition: bounds.hpp:60
bool IsRequired() const
Is this dimension required by PointFormatName.
Definition: dimension.hpp:126
void SetOffset(double v)
Definition: dimension.hpp:177
void SetScale(double v)
Definition: dimension.hpp:171
void operator()(Dimension &e)
Definition: dimension.hpp:232
Definition: dimension.hpp:228
bool IsActive() const
Is this dimension being used.
Definition: dimension.hpp:133
std::string GetDescription() const
Definition: dimension.hpp:136
Definition: schema.hpp:78
double GetOffset() const
The offset value for this dimension.
Definition: dimension.hpp:176
std::size_t GetBitOffset() const
The bit location within the byte to start reading data.
Definition: dimension.hpp:115
void SetDescription(std::string const &v)
Definition: dimension.hpp:137
Dimension definition.
Definition: dimension.hpp:73