Volume Cartographer 2.27.0
|
Generic axis-aligned bounding box class for operations in N-dimensions. More...
#include <vc/core/types/BoundingBox.hpp>
Public Types | |
using | Point = cv::Vec< T, Dim > |
Public Member Functions | |
BoundingBox ()=default | |
Default constructor. | |
BoundingBox (Point lower, Point upper) | |
Constructor with lower and upper bounds initialization. More... | |
Point | getLowerBound () const |
Get the lower boundary for each axis. More... | |
Point | getUpperBound () const |
Get the upper boundary for each axis. More... | |
T | getLowerBoundByIndex (int i) |
Get the lower boundary for a specific axis by axis index. More... | |
T | getUpperBoundByIndex (int i) |
Get the upper boundary for a specific axis by axis index. More... | |
void | setLowerBound (Point p) |
Set the lower boundary for each axis. More... | |
void | setUpperBound (Point p) |
Set the upper boundary for each axis. More... | |
void | setLowerBoundByIndex (int i, T val) |
Set the lower boundary for a specific axis by axis index. More... | |
void | setUpperBoundByIndex (int i, T val) |
Set the upper boundary for a specific axis by axis index. More... | |
bool | isInBounds (const Point &p) const |
Check if a Point is within the bounds of the box. More... | |
Private Attributes | |
Point | p0_ {0, 0, 0} |
Point | p1_ {0, 0, 0} |
Generic axis-aligned bounding box class for operations in N-dimensions.
Provides functions for inside/outside box checks. Lower boundary is inclusive and upper boundary is exclusive: [lower, upper)
T | Fundamental type of coordinate system |
Dim | Number of dimensions |
Definition at line 27 of file BoundingBox.hpp.
using volcart::BoundingBox< T, Dim, typename >::Point = cv::Vec<T, Dim> |
Bounding box position type
Definition at line 31 of file BoundingBox.hpp.
|
inline |
Constructor with lower and upper bounds initialization.
Definition at line 37 of file BoundingBox.hpp.
|
inline |
Get the lower boundary for each axis.
Definition at line 40 of file BoundingBox.hpp.
|
inline |
Get the lower boundary for a specific axis by axis index.
Definition at line 46 of file BoundingBox.hpp.
|
inline |
Get the upper boundary for each axis.
Definition at line 43 of file BoundingBox.hpp.
|
inline |
Get the upper boundary for a specific axis by axis index.
Definition at line 55 of file BoundingBox.hpp.
|
inline |
Check if a Point is within the bounds of the box.
Definition at line 88 of file BoundingBox.hpp.
|
inline |
Set the lower boundary for each axis.
Definition at line 64 of file BoundingBox.hpp.
|
inline |
Set the lower boundary for a specific axis by axis index.
Definition at line 70 of file BoundingBox.hpp.
|
inline |
Set the upper boundary for each axis.
Definition at line 67 of file BoundingBox.hpp.
|
inline |
Set the upper boundary for a specific axis by axis index.
Definition at line 79 of file BoundingBox.hpp.
|
private |
Lower bound
Definition at line 100 of file BoundingBox.hpp.
|
private |
Upper bound
Definition at line 102 of file BoundingBox.hpp.