ArcGIS Procedural Runtime  3.2.10650
List of all members | Public Member Functions | Protected Attributes
prtx::BoundingBox Class Reference

#include <BoundingBox.h>

Public Member Functions

void add (const BoundingBox &bbox)
 
void add (const double &x, const double &y, const double &z)
 
 BoundingBox ()
 
 BoundingBox (const DoubleVector &extMin, const DoubleVector &extMax)
 
 BoundingBox (const double *extMin, const double *extMax)
 
DoubleVector getCenter () const
 
DoubleVector getCenterBottom () const
 
double getDiameter () const
 
const DoubleVectorgetMax () const
 
const DoubleVectorgetMin () const
 
DoubleVector getMinMax () const
 
void getSize (prtx::DoubleVector &s) const
 
bool isModified () const
 
void reset ()
 
void translate (const DoubleVector &t)
 

Protected Attributes

DoubleVector mExtMax
 
DoubleVector mExtMin
 

Detailed Description

Simple AABB.

Constructor & Destructor Documentation

◆ BoundingBox() [1/3]

prtx::BoundingBox::BoundingBox ( )

Constructs an "empty" bounding box with infinite bounds.

◆ BoundingBox() [2/3]

prtx::BoundingBox::BoundingBox ( const DoubleVector extMin,
const DoubleVector extMax 
)

Constructs bounding box with preset bounds.

◆ BoundingBox() [3/3]

prtx::BoundingBox::BoundingBox ( const double *  extMin,
const double *  extMax 
)

Constructs bounding box with preset bounds.

Member Function Documentation

◆ add() [1/2]

void prtx::BoundingBox::add ( const BoundingBox bbox)

Extend with another bounding box.

◆ add() [2/2]

void prtx::BoundingBox::add ( const double &  x,
const double &  y,
const double &  z 
)

Extend bounding box to point (x,y,z).

◆ getCenter()

DoubleVector prtx::BoundingBox::getCenter ( ) const
Returns
The center point (3 elements).

◆ getCenterBottom()

DoubleVector prtx::BoundingBox::getCenterBottom ( ) const
Returns
The "bottom" center point. Bottom is relative to y-direction.

◆ getDiameter()

double prtx::BoundingBox::getDiameter ( ) const

Bounding box diameter.

◆ getMax()

const DoubleVector& prtx::BoundingBox::getMax ( ) const
Returns
A reference to the max point.

◆ getMin()

const DoubleVector& prtx::BoundingBox::getMin ( ) const
Returns
A reference to the min point.

◆ getMinMax()

DoubleVector prtx::BoundingBox::getMinMax ( ) const
Returns
A concatenated copy of both getMin() and getMax().

◆ getSize()

void prtx::BoundingBox::getSize ( prtx::DoubleVector s) const

Resizes s to 3 elements and returns the size of the box.

◆ isModified()

bool prtx::BoundingBox::isModified ( ) const
Returns
True, if anything as been added to the bounding box. False, if bounding box is "empty", i.e. has infinite bounds.

◆ reset()

void prtx::BoundingBox::reset ( )

Reset to infinite bounds.

◆ translate()

void prtx::BoundingBox::translate ( const DoubleVector t)

Translates bounding box by vector t, t must have 3 elements.


The documentation for this class was generated from the following file: