#include <PageData.hpp>
Public Member Functions | |
PageData (uint32_t datasetId, uint32_t pageId) | |
~PageData () | |
uint32_t | datasetId () const |
uint32_t | pageId () const |
void | readPage (Editor *editor) |
void | writePage (Editor *editor) |
void | transform (Editor *editor) |
size_t | size () const |
void | setModified () |
bool | modified () const |
Public Attributes | |
Box< double > | box |
IndexFile | octree |
Point Data | |
std::vector< double > | position |
std::vector< double > | intensity |
std::vector< uint8_t > | returnNumber |
std::vector< uint8_t > | numberOfReturns |
std::vector< uint8_t > | classification |
std::vector< uint8_t > | userData |
std::vector< double > | gpsTime |
std::vector< double > | color |
Point Data Extra Bytes | |
std::vector< size_t > | segment |
std::vector< double > | elevation |
std::vector< double > | descriptor |
std::vector< size_t > | voxel |
Rendering | |
std::vector< float > | renderPosition |
Private Member Functions | |
void | resize (size_t n) |
void | updatePoint (uint8_t *ptr, size_t i, uint8_t fmt) |
Private Attributes | |
uint32_t | datasetId_ |
uint32_t | pageId_ |
bool | modified_ |
std::vector< uint8_t > | pointDataBuffer_ |
std::vector< double > | positionBase_ |
PageData::PageData | ( | uint32_t | datasetId, |
uint32_t | pageId ) |
PageData::~PageData | ( | ) |
|
inline |
|
inline |
|
inline |
void PageData::readPage | ( | Editor * | editor | ) |
|
private |
Referenced by readPage().
|
inline |
|
inline |
void PageData::transform | ( | Editor * | editor | ) |
Referenced by readPage().
|
private |
Referenced by writePage().
void PageData::writePage | ( | Editor * | editor | ) |
Box<double> PageData::box |
Bounding box.
Referenced by transform().
std::vector<uint8_t> PageData::classification |
Referenced by readPage(), resize(), and updatePoint().
std::vector<double> PageData::color |
Red, Green, and Blue image channels.
The data are stored as [r0, g0, b0, r1, g1, ...]. Color values are in range from 0 (zero intensity) to 1 (full intensity). When the input data set has no colors, then the colors in this vector are set to full intensity.
Referenced by readPage(), and resize().
|
private |
Dataset identifier.
Referenced by PageData(), readPage(), transform(), writePage(), and ~PageData().
std::vector<double> PageData::descriptor |
Descriptor values.
The data are stored as [d0, d1, ...]. The values are in range from 0 (zero) to 1 (full). This value is stored in Point Data Record extra bytes.
Referenced by readPage(), resize(), and writePage().
std::vector<double> PageData::elevation |
Point elevation above ground.
The data are stored as [e0, e1, ...]. This value is stored in Point Data Record extra bytes.
Referenced by readPage(), resize(), and writePage().
std::vector<double> PageData::gpsTime |
GPS time.
Referenced by readPage(), and resize().
std::vector<double> PageData::intensity |
Pulse return magnitude.
The data are stored as [i0, i1, ...]. The values are in range from 0 (zero intensity) to 1 (full intensity).
Referenced by readPage(), resize(), and updatePoint().
|
private |
When true, this page should be written back to hard drive.
Referenced by readPage(), and writePage().
std::vector<uint8_t> PageData::numberOfReturns |
IndexFile PageData::octree |
Octree.
Referenced by readPage().
|
private |
Page identifier in a dataset.
Referenced by PageData(), readPage(), writePage(), and ~PageData().
|
private |
File buffer to preserve untouched LAS data for updates.
Referenced by readPage(), and writePage().
std::vector<double> PageData::position |
Point coordinates.
The data are stored as [x0, y0, z0, x1, y1, ...]. These are actual X, Y, or Z coordinates after scaling and offset.
Referenced by readPage(), resize(), and transform().
|
private |
Original xyz position of each point for translations.
Referenced by readPage(), resize(), and transform().
std::vector<float> PageData::renderPosition |
Rendering Point Coordinates.
The data are stored as [x0, y0, z0, x1, y1, ...].
Referenced by resize(), and transform().
std::vector<uint8_t> PageData::returnNumber |
std::vector<size_t> PageData::segment |
Segment identification numbers.
This value is stored in Point Data Record extra bytes.
Referenced by readPage(), resize(), and writePage().
std::vector<uint8_t> PageData::userData |
User data.
Referenced by readPage(), and resize().
std::vector<size_t> PageData::voxel |
Voxel values.
This value is stored in Point Data Record extra bytes.
Referenced by readPage(), resize(), and writePage().