#include <Query.hpp>
Classes | |
struct | Key |
Public Member Functions | |
Query (Editor *editor) | |
~Query () | |
void | setWhere (const QueryWhere &queryWhere) |
const QueryWhere & | where () const |
QueryWhere & | where () |
void | applyCamera (const Camera &camera) |
void | setMaximumResults (size_t nPoints) |
size_t | maximumResults () const |
void | exec () |
void | exec (const std::vector< IndexFile::Selection > &selectedPages) |
void | reset () |
void | clear () |
const std::vector< IndexFile::Selection > & | selectedPages () const |
bool | next () |
bool | nextPage () |
Page * | page () |
size_t | pageSizeEstimate () const |
void | setGrid (size_t pointsPerCell=100000, double cellLengthMinPct=1.0) |
bool | nextGrid () |
const Box< double > & | gridCell () const |
size_t | gridSize () const |
void | setVoxels (double voxelSize, const Box< double > ®ion) |
bool | nextVoxel () |
const Box< double > & | voxelBox () const |
uint64_t | numberOfVoxels () const |
uint64_t | numberOfVisitedVoxels () const |
void | setState (Page::State state) |
bool | nextState () |
void | setModified () |
void | flush () |
size_t | resultSize () const |
void | addResults (size_t n) |
size_t | cacheSize () const |
Page & | cache (size_t index) |
bool | mean (double &meanX, double &meanY, double &meanZ) |
Point data available after next() | |
double & | x () |
double & | y () |
double & | z () |
double & | intensity () |
uint8_t & | returnNumber () |
uint8_t & | numberOfReturns () |
uint8_t & | classification () |
uint8_t & | userData () |
double & | gpsTime () |
double & | red () |
double & | green () |
double & | blue () |
size_t & | segment () |
double & | elevation () |
double & | descriptor () |
size_t & | voxel () |
Protected Member Functions | |
bool | nextVoxel (Query *query) |
void | pushVoxel (size_t x1, size_t y1, size_t z1, size_t x2, size_t y2, size_t z2) |
std::shared_ptr< Page > | read (size_t dataset, size_t index) |
Protected Attributes | |
Editor * | editor_ |
QueryWhere | where_ |
size_t | maximumResults_ |
size_t | nResults_ |
Box< double > | gridCell_ |
Box< double > | gridCellBase_ |
Box< double > | gridBoundary_ |
size_t | gridXSize_ |
size_t | gridYSize_ |
size_t | gridIndex_ |
std::vector< uint64_t > | grid_ |
Box< double > | voxelRegion_ |
Vector3< double > | voxelSize_ |
uint64_t | voxelTotalCount_ |
std::vector< Box< size_t > > | voxelStack_ |
Box< double > | voxelBox_ |
Vector3< size_t > | voxelIndex_ |
uint64_t | voxelVisitedCount_ |
std::shared_ptr< Page > | page_ |
double * | position_ |
double * | intensity_ |
uint8_t * | returnNumber_ |
uint8_t * | numberOfReturns_ |
uint8_t * | classification_ |
uint8_t * | userData_ |
double * | gpsTime_ |
double * | color_ |
size_t * | segment_ |
double * | elevation_ |
double * | descriptor_ |
size_t * | voxel_ |
uint32_t * | selection_ |
size_t | pageIndex_ |
size_t | pagePointIndex_ |
size_t | pagePointIndexMax_ |
std::vector< IndexFile::Selection > | selectedPages_ |
size_t | cacheSizeMax_ |
std::map< Key, std::shared_ptr< Page > > | cache_ |
std::vector< std::shared_ptr< Page > > | lru_ |
A editor query is a request for a editor’s data so we can retrieve or manipulate it.
A query may be used to access up to quintillions of point records that meet certain criteria.
Query::Query | ( | Editor * | editor | ) |
Query::~Query | ( | ) |
void Query::addResults | ( | size_t | n | ) |
Referenced by Page::queryWhereBox(), Page::queryWhereCone(), Page::queryWhereCylinder(), and Page::queryWhereSphere().
void Query::applyCamera | ( | const Camera & | camera | ) |
|
inline |
Referenced by ExportFileFormatCsv::write(), and ExportFileFormatLas::write().
|
inline |
|
inline |
|
inline |
Referenced by ComputeElevationAction::createGroundPoint(), ComputeSegmentationNNAction::createVoxel(), ComputeElevationAction::stepComputeElevation(), ComputeElevationAction::stepCountPoints(), ComputeElevationAction::stepCreateGround(), ComputeSegmentationNNAction::stepPointsToVoxels(), ComputeClassificationAction::stepResetPoints(), ComputeDescriptorAction::stepResetPoints(), ComputeClassificationAction::stepVoxelsToPoints(), ExportFileFormatCsv::write(), and ExportFileFormatLas::write().
void Query::clear | ( | ) |
|
inline |
|
inline |
Referenced by ComputeSegmentationNNAction::createVoxel(), EditPlugin::slotResetElevation(), ComputeElevationAction::stepComputeElevation(), ComputeTreeAttributesAction::stepPointsToTrees(), ComputeSegmentationNNAction::stepPointsToVoxels(), ComputeClassificationAction::stepResetPoints(), ComputeElevationAction::stepResetPoints(), and ExportFileFormatLas::write().
void Query::exec | ( | ) |
Referenced by ComputeHeightMapModifier::apply(), ComputeDescriptorPca::computeDescriptor(), ComputeDescriptorPca::computeDistribution(), ComputeDescriptorAction::computePoint(), ComputeElevationAction::createGroundPoint(), ComputeClassificationAction::createVoxel(), ComputeSegmentationNNAction::createVoxel(), ExportFileAction::initialize(), nextVoxel(), EditPlugin::slotResetElevation(), ComputeClassificationAction::stepCountPoints(), ComputeDescriptorAction::stepCountPoints(), ComputeElevationAction::stepCountPoints(), ComputeSegmentationNNAction::stepCountPoints(), ComputeTreeAttributesAction::stepPointsToTrees(), ComputeClassificationAction::stepResetPoints(), ComputeDescriptorAction::stepResetPoints(), ComputeElevationAction::stepResetPoints(), and ComputeSegmentationNNAction::stepResetPoints().
void Query::exec | ( | const std::vector< IndexFile::Selection > & | selectedPages | ) |
void Query::flush | ( | ) |
|
inline |
Referenced by ExportFileFormatLas::write().
|
inline |
Referenced by ExportFileFormatCsv::write(), and ExportFileFormatLas::write().
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by Page::queryWhereBox(), Page::queryWhereCone(), Page::queryWhereCylinder(), and Page::queryWhereSphere().
bool Query::mean | ( | double & | meanX, |
double & | meanY, | ||
double & | meanZ ) |
|
inline |
Referenced by ComputeDescriptorPca::computeDescriptor(), ComputeDescriptorPca::computeDistribution(), ComputeDescriptorAction::computePoint(), ComputeElevationAction::createGroundPoint(), ComputeClassificationAction::createVoxel(), ComputeSegmentationNNAction::createVoxel(), ExportFileAction::determineMaximum(), ExportFileAction::initialize(), mean(), ExportFileAction::next(), nextVoxel(), EditPlugin::slotResetElevation(), ComputeDescriptorAction::stepCompute(), ComputeElevationAction::stepComputeElevation(), ComputeClassificationAction::stepCountPoints(), ComputeDescriptorAction::stepCountPoints(), ComputeElevationAction::stepCountPoints(), ComputeSegmentationNNAction::stepCountPoints(), ComputeElevationAction::stepCreateGround(), ComputeDescriptorAction::stepNormalize(), ComputeTreeAttributesAction::stepPointsToTrees(), ComputeClassificationAction::stepPointsToVoxels(), ComputeSegmentationNNAction::stepPointsToVoxels(), ComputeClassificationAction::stepResetPoints(), ComputeDescriptorAction::stepResetPoints(), ComputeElevationAction::stepResetPoints(), ComputeSegmentationNNAction::stepResetPoints(), ComputeClassificationAction::stepVoxelsToPoints(), and ComputeSegmentationNNAction::stepVoxelsToPoints().
bool Query::nextGrid | ( | ) |
bool Query::nextPage | ( | ) |
Referenced by ComputeHeightMapModifier::apply().
bool Query::nextState | ( | ) |
bool Query::nextVoxel | ( | ) |
Referenced by nextVoxel().
|
protected |
|
inline |
Referenced by ExportFileFormatLas::write().
|
inline |
|
inline |
|
inline |
Referenced by applyCamera().
size_t Query::pageSizeEstimate | ( | ) | const |
Referenced by ComputeHeightMapModifier::apply().
|
protected |
Referenced by nextVoxel(), and setVoxels().
|
protected |
Referenced by nextPage().
|
inline |
Referenced by ExportFileFormatCsv::write(), and ExportFileFormatLas::write().
void Query::reset | ( | ) |
Referenced by clear(), ComputeDescriptorPca::computeDescriptor(), ExportFileAction::determineMaximum(), exec(), exec(), mean(), ComputeDescriptorAction::stepCompute(), ComputeClassificationAction::stepCountPoints(), ComputeDescriptorAction::stepCountPoints(), ComputeElevationAction::stepCountPoints(), ComputeSegmentationNNAction::stepCountPoints(), ComputeElevationAction::stepCreateIndex(), ComputeClassificationAction::stepPointsToVoxels(), and ComputeSegmentationNNAction::stepPointsToVoxels().
|
inline |
Referenced by Page::queryWhereBox(), Page::queryWhereCone(), Page::queryWhereCylinder(), and Page::queryWhereSphere().
|
inline |
Referenced by ExportFileFormatLas::write().
|
inline |
|
inline |
Referenced by exec().
void Query::setGrid | ( | size_t | pointsPerCell = 100000, |
double | cellLengthMinPct = 1.0 ) |
void Query::setMaximumResults | ( | size_t | nPoints | ) |
Referenced by nextVoxel().
void Query::setModified | ( | ) |
Referenced by ComputeDescriptorAction::computePoint(), ComputeElevationAction::createGroundPoint(), ComputeClassificationAction::createVoxel(), ComputeSegmentationNNAction::createVoxel(), EditPlugin::slotResetElevation(), ComputeElevationAction::stepComputeElevation(), ComputeDescriptorAction::stepNormalize(), ComputeClassificationAction::stepResetPoints(), ComputeDescriptorAction::stepResetPoints(), ComputeElevationAction::stepResetPoints(), ComputeSegmentationNNAction::stepResetPoints(), ComputeClassificationAction::stepVoxelsToPoints(), and ComputeSegmentationNNAction::stepVoxelsToPoints().
void Query::setState | ( | Page::State | state | ) |
Referenced by applyCamera(), exec(), and exec().
void Query::setVoxels | ( | double | voxelSize, |
const Box< double > & | region ) |
|
inline |
Referenced by ExportFileAction::initialize(), EditPlugin::slotResetElevation(), ComputeClassificationAction::stepCountPoints(), ComputeDescriptorAction::stepCountPoints(), ComputeElevationAction::stepCountPoints(), ComputeSegmentationNNAction::stepCountPoints(), ComputeTreeAttributesAction::stepPointsToTrees(), ComputeClassificationAction::stepResetPoints(), ComputeDescriptorAction::stepResetPoints(), ComputeElevationAction::stepResetPoints(), and ComputeSegmentationNNAction::stepResetPoints().
|
inline |
Referenced by ExportFileFormatLas::write().
|
inline |
Referenced by ComputeDescriptorPca::computeDescriptor(), ComputeDescriptorPca::computeDistribution(), ComputeDescriptorAction::computePoint(), ComputeElevationAction::createGroundPoint(), ComputeClassificationAction::createVoxel(), ComputeSegmentationNNAction::createVoxel(), ComputeDescriptorAction::stepNormalize(), ComputeClassificationAction::stepPointsToVoxels(), ComputeSegmentationNNAction::stepPointsToVoxels(), ComputeClassificationAction::stepResetPoints(), ComputeDescriptorAction::stepResetPoints(), ComputeElevationAction::stepResetPoints(), ComputeSegmentationNNAction::stepResetPoints(), ComputeClassificationAction::stepVoxelsToPoints(), and ComputeSegmentationNNAction::stepVoxelsToPoints().
|
inline |
|
inline |
|
inline |
Referenced by ComputeHeightMapModifier::apply(), applyCamera(), ComputeDescriptorPca::computeDescriptor(), ComputeDescriptorPca::computeDistribution(), ComputeDescriptorAction::computePoint(), ComputeElevationAction::createGroundPoint(), ComputeClassificationAction::createVoxel(), ComputeSegmentationNNAction::createVoxel(), exec(), nextVoxel(), Page::queryWhere(), Page::queryWhereBox(), Page::queryWhereClassification(), Page::queryWhereCone(), Page::queryWhereCylinder(), Page::queryWhereDescriptor(), Page::queryWhereElevation(), Page::queryWhereIntensity(), Page::queryWhereSegment(), Page::queryWhereSphere(), and setGrid().
|
inline |
Referenced by ComputeDescriptorPca::computeDescriptor(), ComputeDescriptorPca::computeDistribution(), ComputeDescriptorAction::computePoint(), ComputeElevationAction::createGroundPoint(), ComputeClassificationAction::createVoxel(), ComputeSegmentationNNAction::createVoxel(), ExportFileAction::determineMaximum(), ExportFileAction::initialize(), mean(), nextGrid(), ComputeElevationAction::stepComputeElevation(), ComputeTreeAttributesAction::stepPointsToTrees(), ComputeSegmentationNNAction::stepVoxelsToPoints(), ExportFileFormatCsv::write(), and ExportFileFormatLas::write().
|
inline |
Referenced by ComputeDescriptorPca::computeDescriptor(), ComputeDescriptorPca::computeDistribution(), ComputeDescriptorAction::computePoint(), ComputeElevationAction::createGroundPoint(), ComputeClassificationAction::createVoxel(), ComputeSegmentationNNAction::createVoxel(), ExportFileAction::determineMaximum(), ExportFileAction::initialize(), mean(), nextGrid(), ComputeElevationAction::stepComputeElevation(), ComputeTreeAttributesAction::stepPointsToTrees(), ComputeSegmentationNNAction::stepVoxelsToPoints(), ExportFileFormatCsv::write(), and ExportFileFormatLas::write().
|
inline |
Referenced by ComputeDescriptorPca::computeDescriptor(), ComputeDescriptorPca::computeDistribution(), ComputeDescriptorAction::computePoint(), ComputeElevationAction::createGroundPoint(), ComputeClassificationAction::createVoxel(), ComputeSegmentationNNAction::createVoxel(), ExportFileAction::determineMaximum(), ExportFileAction::initialize(), mean(), ComputeElevationAction::stepComputeElevation(), ComputeTreeAttributesAction::stepPointsToTrees(), ComputeSegmentationNNAction::stepVoxelsToPoints(), ExportFileFormatCsv::write(), and ExportFileFormatLas::write().
Referenced by applyCamera(), clear(), read(), and setState().
|
protected |
Referenced by applyCamera(), Query(), and read().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by applyCamera(), exec(), read(), and setGrid().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by clear(), nextGrid(), and setGrid().
|
protected |
Referenced by clear(), nextGrid(), and setGrid().
|
protected |
Referenced by clear(), nextGrid(), and setGrid().
|
protected |
Referenced by clear(), nextGrid(), and setGrid().
|
protected |
Referenced by clear(), nextGrid(), and setGrid().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by applyCamera(), clear(), flush(), nextState(), and read().
|
protected |
Referenced by addResults(), clear(), nextPage(), Query(), and setMaximumResults().
|
protected |
Referenced by addResults(), clear(), exec(), exec(), and nextPage().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by clear(), nextPage(), and setModified().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by clear(), exec(), exec(), nextPage(), and pageSizeEstimate().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by nextPage(), and reset().
|
protected |
Referenced by clear(), and nextVoxel().
|
protected |
Referenced by clear(), and nextVoxel().
|
protected |
Referenced by clear(), nextVoxel(), and setVoxels().
|
protected |
Referenced by clear(), nextVoxel(), and setVoxels().
|
protected |
Referenced by clear(), nextVoxel(), and pushVoxel().
|
protected |
Referenced by clear(), and setVoxels().
|
protected |
Referenced by clear(), nextVoxel(), and setVoxels().
|
protected |