ReUseX  0.0.1
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
ReUseX::vision::osd::LayoutBox Struct Reference

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.

Detailed Description

Axis-aligned 2-D bounding box used internally by the label layout solver.

Definition at line 15 of file labelLayoutSolver.hpp.

Member Function Documentation

◆ area()

float ReUseX::vision::osd::LayoutBox::area ( ) const
inline

Returns the area of the box (clamped to 0 for inverted boxes).

Definition at line 28 of file labelLayoutSolver.hpp.

References bottom, left, right, and top.

◆ height()

float ReUseX::vision::osd::LayoutBox::height ( ) const
inline

Returns the height of the box.

Definition at line 25 of file labelLayoutSolver.hpp.

References bottom, and top.

◆ intersectArea()

float ReUseX::vision::osd::LayoutBox::intersectArea ( const LayoutBox & box1,
const LayoutBox & box2 )
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().

◆ intersects()

bool ReUseX::vision::osd::LayoutBox::intersects ( const LayoutBox & box1,
const LayoutBox & box2 )
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().

◆ width()

float ReUseX::vision::osd::LayoutBox::width ( ) const
inline

Returns the width of the box.

Definition at line 22 of file labelLayoutSolver.hpp.

References left, and right.

Member Data Documentation

◆ bottom

float ReUseX::vision::osd::LayoutBox::bottom

◆ left

float ReUseX::vision::osd::LayoutBox::left

◆ right

float ReUseX::vision::osd::LayoutBox::right

◆ top

float ReUseX::vision::osd::LayoutBox::top

The documentation for this struct was generated from the following file: