|
ReUseX
0.0.1
3D Point Cloud Processing for Building Reuse
|
Axis-aligned 2-D bounding box used internally by the label layout solver. More...
#include <labelLayoutSolver.hpp>
Public Member Functions | |
| float | width () const |
| Returns the width of the box. | |
| float | height () const |
| Returns the height of the box. | |
| float | area () const |
| Returns the area of the box (clamped to 0 for inverted boxes). | |
Static Public Member Functions | |
| static float | intersectArea (const LayoutBox &box1, const LayoutBox &box2) |
| Computes the intersection area of two LayoutBoxes. | |
| static bool | intersects (const LayoutBox &box1, const LayoutBox &box2) |
| Returns true when two LayoutBoxes overlap. | |
Public Attributes | |
| float | left |
| Left edge x-coordinate. | |
| float | top |
| Top edge y-coordinate. | |
| float | right |
| Right edge x-coordinate. | |
| float | bottom |
| Bottom edge y-coordinate. | |
Axis-aligned 2-D bounding box used internally by the label layout solver.
Definition at line 15 of file labelLayoutSolver.hpp.
|
inline |
|
inline |
Returns the height of the box.
Definition at line 25 of file labelLayoutSolver.hpp.
|
inlinestatic |
Computes the intersection area of two LayoutBoxes.
Definition at line 33 of file labelLayoutSolver.hpp.
References bottom, left, right, and top.
Referenced by ReUseX::vision::osd::LabelLayoutSolver::solve().
|
inlinestatic |
Returns true when two LayoutBoxes overlap.
Definition at line 45 of file labelLayoutSolver.hpp.
References bottom, left, right, and top.
Referenced by ReUseX::vision::osd::LabelLayoutSolver::solve().
|
inline |
Returns the width of the box.
Definition at line 22 of file labelLayoutSolver.hpp.
| float ReUseX::vision::osd::LayoutBox::bottom |
Bottom edge y-coordinate.
Definition at line 19 of file labelLayoutSolver.hpp.
Referenced by area(), height(), ReUseX::vision::osd::FlatUniformGrid::insert(), intersectArea(), intersects(), and ReUseX::vision::osd::FlatUniformGrid::query().
| float ReUseX::vision::osd::LayoutBox::left |
Left edge x-coordinate.
Definition at line 16 of file labelLayoutSolver.hpp.
Referenced by area(), ReUseX::vision::osd::FlatUniformGrid::insert(), intersectArea(), intersects(), ReUseX::vision::osd::FlatUniformGrid::query(), and width().
| float ReUseX::vision::osd::LayoutBox::right |
Right edge x-coordinate.
Definition at line 18 of file labelLayoutSolver.hpp.
Referenced by area(), ReUseX::vision::osd::FlatUniformGrid::insert(), intersectArea(), intersects(), ReUseX::vision::osd::FlatUniformGrid::query(), and width().
| float ReUseX::vision::osd::LayoutBox::top |
Top edge y-coordinate.
Definition at line 17 of file labelLayoutSolver.hpp.
Referenced by area(), height(), ReUseX::vision::osd::FlatUniformGrid::insert(), intersectArea(), intersects(), and ReUseX::vision::osd::FlatUniformGrid::query().