ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
larcfm::BoundingBox Class Reference

#include <BoundingBox.h>

Public Member Functions

 BoundingBox ()
 
 BoundingBox (double zMin, double zMax)
 
 BoundingBox (const BoundingBox &bb)
 
 BoundingBox (const BoundingRectangle &br)
 
 BoundingBox (const BoundingRectangle &br, double zMin, double zMax)
 
void clear ()
 
void add (double x, double y, double z)
 
void add (const Vect3 &v)
 
void add (const Position &p)
 
double getMinX () const
 
double getMaxX () const
 
double getMinY () const
 
double getMaxY () const
 
double getMinZ () const
 
double getMaxZ () const
 
double getMinLon () const
 
double getMaxLon () const
 
double getMinLat () const
 
double getMaxLat () const
 
Position upperRightTop ()
 
Position lowerLeftBottom ()
 
double getMinAlt ()
 
double getMaxAlt ()
 
BoundingRectangle getBoundRect () const
 
bool intersects (const BoundingBox &bb)
 
BoundingBox linear (const Velocity &v, double dt)
 
std::string toString ()
 

Private Attributes

BoundingRectangle br
 
double zMin
 
double zMax
 

Detailed Description

A BoundingRetangle that has been extended to 3 dimensions, so it includes height information.

Constructor & Destructor Documentation

◆ BoundingBox() [1/4]

larcfm::BoundingBox::BoundingBox ( )

Create a bounding rectangle with invalid values. When the first point is added, valid values are obtained.

◆ BoundingBox() [2/4]

larcfm::BoundingBox::BoundingBox ( const BoundingBox bb)

Copy a bounding rectangle from an existing bounding box

Parameters
bbbox to copy

◆ BoundingBox() [3/4]

larcfm::BoundingBox::BoundingBox ( const BoundingRectangle br)

Extend an existing BoundingRectangle with invalid height information. Height information will be assigned as additional points are added.

Parameters
brrectangle to copy

◆ BoundingBox() [4/4]

larcfm::BoundingBox::BoundingBox ( const BoundingRectangle br,
double  zMin,
double  zMax 
)

Extend an existing BoundingRectangle to include explicit height information.

Parameters
brrectangle to copy
zMinminimal height
zMaxmaximal height

Member Function Documentation

◆ add() [1/3]

void larcfm::BoundingBox::add ( const Position p)

Add a point to this bounding rectangle. Note that when adding LatLonAlt points, great circle paths may fall outside the defined bounding rectangle!

Parameters
ppoint

◆ add() [2/3]

void larcfm::BoundingBox::add ( const Vect3 v)

Add a point to this bounding rectangle.

Parameters
vvector

◆ add() [3/3]

void larcfm::BoundingBox::add ( double  x,
double  y,
double  z 
)

Add a point to this bounding rectangle.

Parameters
xx coordinate
yy coordinate
zz coordinate

◆ clear()

void larcfm::BoundingBox::clear ( )

Reset this bounding rectangle to a structure with invalid values. When the first point is added, valid values are obtained.

◆ getMaxX()

double larcfm::BoundingBox::getMaxX ( ) const
Returns
right bound

◆ getMaxY()

double larcfm::BoundingBox::getMaxY ( ) const
Returns
top bound

◆ getMaxZ()

double larcfm::BoundingBox::getMaxZ ( ) const
Returns
max Z bound

◆ getMinX()

double larcfm::BoundingBox::getMinX ( ) const
Returns
left bound

◆ getMinY()

double larcfm::BoundingBox::getMinY ( ) const
Returns
bottom bound

◆ getMinZ()

double larcfm::BoundingBox::getMinZ ( ) const
Returns
min Z bound

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