A dynamic bounding box class.  
 More...
#include <BoundingBox.hpp>
|  | 
|  | BoundingBox () | 
|  | Default constructor.  More... 
 | 
|  | 
|  | BoundingBox (std::string plyPath) | 
|  | Constructs a bounding box for a given point cloud.  More... 
 | 
|  | 
| template<typename T > | 
|  | BoundingBox (T v1, T v2) | 
|  | Constructs a bounding box with from the given vertices.  More... 
 | 
|  | 
| void | expand (const BoundingBox< BaseVecT > &bb) | 
|  | Calculates the surrounding bounding box of the current volume and the other given bounding box.  More... 
 | 
|  | 
| template<typename T > | 
| void | expand (T v) | 
|  | Expands the bounding box if the given Vector v} is outside the current volume.  More... 
 | 
|  | 
| BaseVecT | getCentroid () const | 
|  | Returns the center Vector of the bounding box.  More... 
 | 
|  | 
| BaseVecT::CoordType | getLongestSide () const | 
|  | Returns the longest side of the bounding box.  More... 
 | 
|  | 
| BaseVecT | getMax () const | 
|  | Returns the upper right coordinates.  More... 
 | 
|  | 
| BaseVecT | getMin () const | 
|  | Returns the lower left coordinates.  More... 
 | 
|  | 
| BaseVecT::CoordType | getRadius () const | 
|  | Returns the radius of the current volume, i.e. the distance between the centroid and the most distant corner from this Vector.  More... 
 | 
|  | 
| BaseVecT::CoordType | getVolume () const | 
|  | Returns the volume of the bounding box.  More... 
 | 
|  | 
| BaseVecT::CoordType | getXSize () const | 
|  | Returns the x-size of the bounding box.  More... 
 | 
|  | 
| BaseVecT::CoordType | getYSize () const | 
|  | Returns the y-size of the bounding box.  More... 
 | 
|  | 
| BaseVecT::CoordType | getZSize () const | 
|  | Returns the z-size of the bounding box.  More... 
 | 
|  | 
| bool | isValid () const | 
|  | Returns true if the bounding box has been expanded before or was initialized with a preset size.  More... 
 | 
|  | 
| bool | overlap (const BoundingBox< BaseVecT > &bb) | 
|  | check if current volume overlap with a given bounding box  More... 
 | 
|  | 
template<typename BaseVecT>
class lvr2::BoundingBox< BaseVecT >
A dynamic bounding box class. 
Definition at line 49 of file BoundingBox.hpp.
◆ VectorType
template<typename BaseVecT > 
      
 
 
◆ BoundingBox() [1/3]
template<typename BaseVecT > 
      
 
 
◆ BoundingBox() [2/3]
template<typename BaseVecT > 
template<typename T > 
      
 
Constructs a bounding box with from the given vertices. 
- Parameters
- 
  
  
- Returns
 
 
◆ BoundingBox() [3/3]
template<typename BaseVecT > 
      
 
Constructs a bounding box for a given point cloud. 
- Parameters
- 
  
    | plyPath | path of the point cloud |  
 
 
 
◆ expand() [1/2]
template<typename BaseVecT > 
 
Calculates the surrounding bounding box of the current volume and the other given bounding box. 
- Parameters
- 
  
  
 
 
◆ expand() [2/2]
template<typename BaseVecT > 
template<typename T > 
 
Expands the bounding box if the given Vector v} is outside the current volume. 
- Parameters
- 
  
  
 
 
◆ getCentroid()
template<typename BaseVecT > 
      
 
Returns the center Vector of the bounding box. 
 
 
◆ getLongestSide()
template<typename BaseVecT > 
      
 
Returns the longest side of the bounding box. 
 
 
◆ getMax()
template<typename BaseVecT > 
      
 
Returns the upper right coordinates. 
 
 
◆ getMin()
template<typename BaseVecT > 
      
 
Returns the lower left coordinates. 
 
 
◆ getRadius()
template<typename BaseVecT > 
      
 
Returns the radius of the current volume, i.e. the distance between the centroid and the most distant corner from this Vector. 
 
 
◆ getVolume()
template<typename BaseVecT > 
      
 
Returns the volume of the bounding box. 
- Returns
 
 
◆ getXSize()
template<typename BaseVecT > 
      
 
Returns the x-size of the bounding box. 
 
 
◆ getYSize()
template<typename BaseVecT > 
      
 
Returns the y-size of the bounding box. 
 
 
◆ getZSize()
template<typename BaseVecT > 
      
 
Returns the z-size of the bounding box. 
 
 
◆ isValid()
template<typename BaseVecT > 
      
 
Returns true if the bounding box has been expanded before or was initialized with a preset size. 
 
 
◆ overlap()
template<typename BaseVecT > 
      
 
check if current volume overlap with a given bounding box 
- Parameters
- 
  
  
- Returns
- true if both boxes overlap 
 
 
◆ m_centroid
template<typename BaseVecT > 
 
 
◆ m_max
template<typename BaseVecT > 
 
The upper right Vector of the bounding box. 
Definition at line 162 of file BoundingBox.hpp.
 
 
◆ m_min
template<typename BaseVecT > 
 
The lower left Vector of the bounding box. 
Definition at line 159 of file BoundingBox.hpp.
 
 
The documentation for this class was generated from the following file: