#include <Box.hpp>
Public Member Functions | |
Box () | |
~Box () | |
template<class B > | |
Box (const Box< B > &box) | |
template<class B > | |
Box (B x1, B y1, B z1, B x2, B y2, B z2) | |
template<class B > | |
Box (B cx, B cy, B cz, B r) | |
template<class B > | |
Box (const Vector3< B > &min, const Vector3< B > &max) | |
void | set (T x1, T y1, T z1, T x2, T y2, T z2) |
void | set (T cx, T cy, T cz, T r) |
void | set (const Vector3< T > &min, const Vector3< T > &max) |
void | set (const std::vector< T > &xyz) |
void | set (const Box< T > &box) |
void | setPercent (const Box< T > &box, const Box< T > &a, const Box< T > &b) |
void | translate (const Vector3< T > &v) |
void | extend (const Box< T > &box) |
void | extend (T x, T y, T z) |
void | clear () |
bool | empty () const |
const T & | min (size_t idx) const |
const T & | max (size_t idx) const |
T | length (size_t idx) const |
T | maximumLength () const |
void | getCenter (T &x, T &y, T &z) const |
Vector3< T > | getCenter () const |
T | distance (T x, T y, T z) const |
T | radius () const |
bool | intersects (const Box< T > &box) const |
bool | isInside (const Box< T > &box) const |
bool | isInside (T x, T y, T z) const |
void | read (const Json &in) |
Json & | write (Json &out) const |
Private Member Functions | |
void | validate () |
Private Attributes | |
T | min_ [3] |
T | max_ [3] |
bool | empty_ |
|
inline |
|
inline |
|
inline |
Referenced by Query::applyCamera().
|
inline |
Referenced by Box< T >::extend(), and Page::queryWhereBox().
Referenced by Datasets::boundary(), IndexFileBuilder::stateCopyPoints(), and Datasets::updateBoundary().
|
inline |
|
inline |
Referenced by Query::applyCamera(), IndexFile::selectLeaves(), and IndexFile::selectNodes().
|
inline |
|
inline |
|
inline |
Referenced by HeightMapModifier::applyModifier(), Box< T >::Box(), IndexFile::divide(), IndexFile::insert(), Query::nextGrid(), Query::nextVoxel(), ViewerAabb::set(), LasFile::Header::set(), ExplorerClippingBoxWidget::setRegion(), ExplorerClippingCylinderWidget::setRegion(), SegmentationAction::start(), IndexFileBuilder::stateMainBegin(), and IndexFile::write().
|
inline |
Referenced by DescriptorPca::computeDescriptor().
|
inline |
Referenced by HeightMapModifier::applyModifier(), Box< T >::Box(), IndexFile::divide(), IndexFile::insert(), Query::nextGrid(), Query::nextVoxel(), Dataset::read(), ViewerAabb::set(), LasFile::Header::set(), ExplorerClippingBoxWidget::setRegion(), ExplorerClippingCylinderWidget::setRegion(), SegmentationAction::start(), IndexFileBuilder::stateMainBegin(), and IndexFile::write().
|
inline |
Referenced by Query::applyCamera(), and ClassificationAction::stepClassifyGround().
Referenced by Region::read().
|
inline |
|
inline |
|
inline |
Referenced by LasFile::create(), IndexFile::divide(), IndexFile::insert(), Query::nextGrid(), Query::nextVoxel(), IndexFile::readPayload(), Query::setGrid(), IndexFileBuilder::stateCopyPoints(), IndexFileBuilder::stateMainBegin(), IndexFileBuilder::stateNodeInsert(), PageData::transform(), and ExplorerClippingBoxWidget::updateRegion().
|
inline |
Referenced by IndexFile::translate(), and Dataset::updateBoundary().
|
inlineprivate |
Referenced by Region::write().
|
private |
Referenced by Box< T >::empty().
|
private |
|
private |