#include <Page.hpp>
Public Types | |
enum | State { STATE_READ , STATE_TRANSFORM , STATE_SELECT , STATE_RUN_MODIFIERS , STATE_RENDER , STATE_RENDERED } |
Public Member Functions | |
Page (Editor *editor, Query *query, uint32_t datasetId, uint32_t pageId) | |
~Page () | |
uint32_t | datasetId () const |
uint32_t | pageId () const |
void | readPage () |
void | writePage () |
size_t | size () const |
void | setModified () |
bool | modified () const |
Page::State | state () const |
void | setState (Page::State state) |
bool | nextState () |
Static Public Member Functions | |
static std::string | stateToString (Page::State state) |
Public Attributes | |
std::vector< uint32_t > | selection |
size_t | selectionSize |
LAS Point Data. | |
double * | position |
double * | intensity |
uint8_t * | returnNumber |
uint8_t * | numberOfReturns |
uint8_t * | classification |
uint8_t * | userData |
double * | gpsTime |
double * | color |
3D Forest Attributes. | |
size_t * | segment |
double * | elevation |
double * | descriptor |
size_t * | voxel |
Rendering Data. | |
float * | renderPosition |
std::vector< float > | renderColor |
Private Member Functions | |
void | resize (size_t n) |
void | transform () |
void | queryWhere () |
void | queryWhereBox () |
void | queryWhereCone () |
void | queryWhereCylinder () |
void | queryWhereSphere () |
void | queryWhereElevation () |
void | queryWhereDescriptor () |
void | queryWhereIntensity () |
void | queryWhereClassification () |
void | queryWhereSegment () |
void | runModifiers () |
void | runColorModifier () |
void | setColor (size_t idx, size_t colorValue, size_t colorMax, const std::vector< Vector3< double > > &pal) |
Private Attributes | |
Editor * | editor_ |
Query * | query_ |
uint32_t | datasetId_ |
uint32_t | pageId_ |
Page::State | state_ |
std::shared_ptr< PageData > | pageData_ |
std::vector< IndexFile::Selection > | selectedNodes_ |
enum Page::State |
Page State.
Enumerator | |
---|---|
STATE_READ | |
STATE_TRANSFORM | |
STATE_SELECT | |
STATE_RUN_MODIFIERS | |
STATE_RENDER | |
STATE_RENDERED |
Page::~Page | ( | ) |
|
inline |
Referenced by Query::applyCamera().
bool Page::modified | ( | ) | const |
bool Page::nextState | ( | ) |
|
inline |
Referenced by Query::applyCamera(), and ViewerOpenGLViewport::renderScene().
|
private |
Referenced by nextState(), and readPage().
|
private |
Referenced by queryWhere().
|
private |
Referenced by queryWhere().
|
private |
Referenced by queryWhere().
|
private |
Referenced by queryWhere().
|
private |
Referenced by queryWhere().
|
private |
Referenced by queryWhere().
|
private |
Referenced by queryWhere().
|
private |
Referenced by queryWhere().
|
private |
Referenced by queryWhere().
void Page::readPage | ( | ) |
Referenced by nextState().
|
private |
Referenced by readPage().
|
private |
Referenced by runModifiers().
|
private |
Referenced by nextState(), and readPage().
|
private |
Referenced by runColorModifier().
void Page::setModified | ( | ) |
void Page::setState | ( | Page::State | state | ) |
Referenced by ViewerOpenGLViewport::renderScene().
size_t Page::size | ( | ) | const |
Referenced by queryWhere(), ViewerOpenGLViewport::renderScene(), and runColorModifier().
|
inline |
Referenced by ViewerOpenGLViewport::renderScene(), setState(), and stateToString().
|
static |
Referenced by nextState().
|
private |
Referenced by nextState(), and readPage().
void Page::writePage | ( | ) |
uint8_t* Page::classification |
Referenced by queryWhereClassification(), resize(), and runColorModifier().
double* Page::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 resize(), and runColorModifier().
|
private |
Referenced by queryWhereBox(), queryWhereCone(), queryWhereCylinder(), queryWhereSphere(), readPage(), runColorModifier(), and ~Page().
double* Page::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 queryWhereDescriptor(), resize(), and runColorModifier().
|
private |
Referenced by queryWhereSegment(), readPage(), runColorModifier(), runModifiers(), writePage(), and ~Page().
double* Page::elevation |
Point elevation above ground.
The data are stored as [e0, e1, ...]. This value is stored in Point Data Record extra bytes.
Referenced by ComputeHeightMapModifier::applyModifier(), queryWhereElevation(), resize(), and runColorModifier().
double* Page::gpsTime |
GPS time.
Referenced by resize().
double* Page::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 queryWhereIntensity(), resize(), and runColorModifier().
uint8_t* Page::numberOfReturns |
|
private |
Referenced by modified(), nextState(), queryWhereBox(), queryWhereCone(), queryWhereCylinder(), queryWhereSphere(), readPage(), resize(), setModified(), size(), writePage(), and ~Page().
|
private |
double* Page::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 ComputeHeightMapModifier::applyModifier(), queryWhereBox(), queryWhereCone(), queryWhereCylinder(), queryWhereSphere(), and resize().
|
private |
std::vector<float> Page::renderColor |
Rendering Point Colors.
The data are stored as [r0, g0, b0, r1, g1, ...].
Referenced by ComputeHeightMapModifier::applyModifier(), ViewerOpenGLViewport::renderScene(), resize(), runColorModifier(), and setColor().
float* Page::renderPosition |
Rendering Point Coordinates.
The data are stored as [x0, y0, z0, x1, y1, ...].
Referenced by ViewerOpenGLViewport::renderScene(), and resize().
uint8_t* Page::returnNumber |
size_t* Page::segment |
Segment identification numbers.
This value is stored in Point Data Record extra bytes.
Referenced by queryWhereSegment(), resize(), and runColorModifier().
|
private |
Referenced by queryWhereBox(), queryWhereCone(), queryWhereCylinder(), queryWhereSphere(), and resize().
std::vector<uint32_t> Page::selection |
Index array contains indices to selected points.
Referenced by ComputeHeightMapModifier::applyModifier(), queryWhere(), queryWhereBox(), queryWhereClassification(), queryWhereCone(), queryWhereCylinder(), queryWhereDescriptor(), queryWhereElevation(), queryWhereIntensity(), queryWhereSegment(), queryWhereSphere(), ViewerOpenGLViewport::renderScene(), and resize().
size_t Page::selectionSize |
Referenced by ComputeHeightMapModifier::applyModifier(), queryWhere(), queryWhereBox(), queryWhereClassification(), queryWhereCone(), queryWhereCylinder(), queryWhereDescriptor(), queryWhereElevation(), queryWhereIntensity(), queryWhereSegment(), queryWhereSphere(), ViewerOpenGLViewport::renderScene(), and resize().
|
private |
Referenced by nextState(), queryWhere(), readPage(), runModifiers(), setState(), and transform().
uint8_t* Page::userData |
User data.
Referenced by resize().
size_t* Page::voxel |