#include <CBoundingBox3D.h>
Inheritance diagram for CBoundingBox3D:
Public Member Functions | |
CBoundingBox3D (void) | |
CBoundingBox3D (double, double, double, double, double, double) | |
CBoundingBox3D (const CP3D &minVec, const CP3D &maxVec) | |
CBoundingBox3D (const CP4D &minVec, const CP4D &maxVec) | |
CBoundingBox3D (const CBoundingBox3D &bbox) | |
void | CommonConstructor (CP3D, CP3D) |
~CBoundingBox3D () | |
void | setBBox (CBoundingBox3D &bbox) |
const CBoundingBox3D & | operator= (const CBoundingBox3D &bbox) |
CBoundingBox3D | operator+ (const CBoundingBox3D &bbox) const |
CBoundingBox3D & | operator+= (const CBoundingBox3D &bbox) |
void | addPoint (const CP3D &) |
void | addPoint (const CP4D &) |
void | move (const CV3D &) |
void | scale (const CV3D &) |
CP3D | getLowerLeft () const |
CP3D | getUpperRight () const |
CP3D | getCornerVertex (int) const |
double | getSize (int) const |
double | getMinSize (void) const |
double | getMaxSize (void) const |
const CP3D | getCenter (void) const |
double | getCenter (int nDimension) |
double | getOuterRadius (void) const |
double | getInnerRadius (void) const |
double | getDiagonal (void) const |
double | getVolume (void) const |
bool | isInside (const CP3D &) const |
bool | isInside (const CP4D &) const |
bool | operator== (const CBoundingBox3D &cSource) const |
void | print (void) const |
Static Public Attributes | |
double | epsilon = 1e-6 |
Protected Attributes | |
CP3D | m_LowerLeft |
CP3D | m_UpperRight |
Friends | |
ostream & | operator<< (ostream &, const CBoundingBox3D &) |
istream & | operator>> (istream &, CBoundingBox3D &) |
|
default constructor (Bounding box will be set to 0,0,0 to 0,0,0. |
|
Constructor using the two given points. The minimum and the maximum of all components of these points will be used to set the bounding box. |
|
Constructor using the two given points. The minimum and the maximum of all components of these points will be used to set the bounding box. |
|
Constructor using the two given points. The minimum and the maximum of all components of these points will be used to set the bounding box. |
|
copy constructor. |
|
default destructor. |
|
Adds the specified point to the bounding box, extending it, to include the point. |
|
Adds the specified point to the bounding box, extending it, to include the point. |
|
Initializes common stuff, called by all constructors. |
|
Returns the center of the bounding box in the specified dimension. |
|
Returns the center of the bounding box. |
|
Returns the corner vertex. 0=000 (xyz), 1=100, 2=010, 3=110, 4=001, 5=101, 6=011, 7=111. |
|
Returns the radius of the maximum sphere being enclosing in the bounding box. |
|
Returns the radius of the maximum sphere being enclosing in the bounding box. |
|
Returns the lower left corner point of the bounding box. |
|
Returns the maximum of the range in all dimensions. |
|
Returns the minimum of the range in all dimensions. |
|
Returns the radius of the minimal sphere enclosing the bounding box. |
|
Returns the range in the given dimension. |
|
Returns the upper right corner point of the bounding box. |
|
Returns the radius of the maximum sphere being enclosing in the bounding box. |
|
Returns whether a point/vector is within the bounding box. |
|
Returns whether a point/vector is within the bounding box. |
|
Move the bounding box by the specified vector. |
|
operator+ returns sum of both bounding boxes. |
|
operator+= adds specified bounding box to this. |
|
operator= assigns specified bounding box to this. |
|
Compares two bounding boxes. |
|
Prints the parameters of CBoundingBox3D to standard out. |
|
Scale the bounding box by the specified vector. CV3D(1.0, 1.0, 1.0) would let the bounding box unmodified, negative components of the vector are illegal but are not checked against. |
|
Set the bounding box to the specified bounding box. |
|
Same as above. But more useful for streams. |
|
Reads a vector from the given stream. |
|
documentation stuff
|
|
|
|
|