ArcGIS Procedural Runtime  3.1.9666
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
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

prtx::BoundingBox::BoundingBox ( )

Constructs an "empty" bounding box with infinite bounds.

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

Constructs bounding box with preset bounds.

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

Constructs bounding box with preset bounds.

Member Function Documentation

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

Extend with another bounding box.

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

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

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

Bounding box diameter.

const DoubleVector& prtx::BoundingBox::getMax ( ) const
Returns
A reference to the max point.
const DoubleVector& prtx::BoundingBox::getMin ( ) const
Returns
A reference to the min point.
DoubleVector prtx::BoundingBox::getMinMax ( ) const
Returns
A concatenated copy of both getMin() and getMax().
void prtx::BoundingBox::getSize ( prtx::DoubleVector s) const

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

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.
void prtx::BoundingBox::reset ( )

Reset to infinite bounds.

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: