|
cisst-saw
|
#include <vctBoundingBox3.h>
Public Types | |
| typedef _elementType | value_type |
| typedef vctBoundingBox3Base< value_type > | ThisType |
| typedef vctFixedSizeVector< value_type, 3 > | PointType |
Public Member Functions | |
| vctBoundingBox3Base (void) | |
| vctBoundingBox3Base (const PointType &pointA, const PointType &pointB) | |
| vctBoundingBox3Base (const ThisType &other) | |
| ThisType & | operator= (const ThisType &other) |
| ThisType & | operator= (const PointType &point) |
| void | Reset (void) |
| void | Reset (const PointType &point) |
| void | Reset (const PointType &pointA, const PointType &pointB) |
| const PointType & | MinCorner (void) const |
| const PointType & | MaxCorner (void) const |
| size_t | Counter (void) const |
| PointType | Diagonal (void) const |
| double | DiagonalLength (void) const |
| PointType | MidPoint (void) const |
| ThisType & | Include (const PointType &point) |
| ThisType & | Include (const ThisType &other) |
| bool | Expand (const value_type x, const value_type y, const value_type z) |
| bool | Expand (const PointType &point) |
| bool | Intersect (const ThisType &other) const |
| void | EnlargeBy (const double dist) |
| int | Includes (const PointType &point, const double dist=0.0) const |
| int | Includes (const ThisType &other, const double dist=0.0) const |
Protected Attributes | |
| PointType | mMinCorner |
| PointType | mMaxCorner |
| size_t | mCounter |
| typedef vctFixedSizeVector<value_type, 3> vctBoundingBox3Base< _elementType >::PointType |
| typedef vctBoundingBox3Base<value_type> vctBoundingBox3Base< _elementType >::ThisType |
| typedef _elementType vctBoundingBox3Base< _elementType >::value_type |
|
inline |
Default constructor. Initializes the corners to infinite values and set the counter to 0.
|
inline |
Creates a bounding box from two points. These points can be the min and max corner.
|
inline |
Copy constructor
|
inline |
Get the counter value, i.e. number of points used to define the bounding box. The counter is set to zero when the bounding box is undefined (i.e. empty). If the counter is set to 1, the min and max corners are equal. If the counter is greater than one, min and max corners are defined and potentially equal.
|
inline |
Get the vector max - min, elements of the diagonal are always positive
|
inline |
|
inline |
Enlarge the bounding box by a constant value in all directions.
|
inline |
|
inline |
Expand the bounding box using a single point. Return true iff the bounding box corners have been updated.
|
inline |
Deprecated, use Expand instead
|
inline |
|
inline |
Check if a point is included in this bounding box, +/- a certain distance.
|
inline |
Check if a bounding box is fully included in this bounding box, +/- a certain distance.
|
inline |
Check if a bounding box intersects (overlaps) with this bounding box.
|
inline |
Get the maximum corner. This accessor is "const", one can not change the max corner values directly.
|
inline |
Get the center (aka mid-point) of the bounding box.
|
inline |
Get the minimum corner. This accessor is "const", one can not change the min corner values directly.
|
inline |
Resets the bounding box with a single point. Use the method Include or Expand to expand. See also Reset(const PointType &).
|
inline |
|
inline |
Reset with a starting point. This allows to skip a Reset() call without parameters which would lead to an extra assign HUGE_VAL to the min and max corners.
|
inline |
Reset a bounding box using two points.
|
inline |
Reset the bounding box. See default constructor.
|
protected |
|
protected |
|
protected |