Public Member Functions | List of all members
nav_core2::UIntBounds Class Reference

#include <bounds.h>

Inheritance diagram for nav_core2::UIntBounds:
Inheritance graph
[legend]

Public Member Functions

unsigned int getHeight () const
 
unsigned int getWidth () const
 
- Public Member Functions inherited from nav_core2::GenericBounds< unsigned int >
bool contains (unsigned intx, unsigned inty) const
 Returns true if the point is inside this range. More...
 
 GenericBounds ()
 Constructor for an empty bounds. More...
 
 GenericBounds (unsigned intx0, unsigned inty0, unsigned intx1, unsigned inty1)
 Constructor for a non-empty initial bounds. More...
 
unsigned int getMaxX () const
 
unsigned int getMaxY () const
 
unsigned int getMinX () const
 
unsigned int getMinY () const
 
bool isEmpty () const
 Returns true if the range is empty. More...
 
void merge (const GenericBounds< unsigned int > &other)
 Update the bounds to include the entirety of another bounds object. More...
 
bool operator!= (const GenericBounds< unsigned int > &other) const
 
bool operator== (const GenericBounds< unsigned int > &other) const
 comparison operator that requires all fields are equal More...
 
bool overlaps (const GenericBounds< unsigned int > &other) const
 returns true if the two bounds overlap each other More...
 
void reset ()
 Reset the bounds to be empty. More...
 
std::string toString () const
 Returns a string representation of the bounds. More...
 
void touch (unsigned intx, unsigned inty)
 Update the bounds to include the point (x, y) More...
 
void update (unsigned intx0, unsigned inty0, unsigned intx1, unsigned inty1)
 Update the bounds to include points (x0, y0) and (x1, y1) More...
 

Additional Inherited Members

- Protected Attributes inherited from nav_core2::GenericBounds< unsigned int >
unsigned int max_x_
 
unsigned int max_y_
 
unsigned int min_x_
 
unsigned int min_y_
 

Detailed Description

Definition at line 199 of file bounds.h.

Member Function Documentation

unsigned int nav_core2::UIntBounds::getHeight ( ) const
inline

Definition at line 204 of file bounds.h.

unsigned int nav_core2::UIntBounds::getWidth ( ) const
inline

Definition at line 203 of file bounds.h.


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


nav_core2
Author(s):
autogenerated on Sun Jan 10 2021 04:08:27