
Definition in file Rectangle.H.
#include "Image/Dims.H"
#include "Image/Point2D.H"
#include "Util/Assert.H"
#include <algorithm>
#include <string>
Include dependency graph for Rectangle.H:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | Rectangle |
| A basic rectangle class. More... | |
Functions | |
| std::string | convertToString (const Rectangle &val) |
| Rectangle overload: format is "<int>,<int>,<int>,<int>". | |
| void | convertFromString (const std::string &str, Rectangle &val) |
| Rectangle overload: format is "<int>,<int>,<int>,<int>". | |
| Rectangle | constrainRect (const Rectangle &in, const Rectangle &bounds, int minw, int maxw, int minh, int maxh) |
| Return a new rectangle that is a constrained version of the input. | |
| Rectangle | constrainRect (const Rectangle &in, const Rectangle &bounds, int minsz, int maxsz) |
| Like the main constrainRect(), but use the same limits for width as for height. | |
| bool | operator== (const Rectangle &r1, const Rectangle &r2) |
| Rectangle | operator * (const Rectangle &r, const double s) |
| Rectangle | operator * (const Rectangle &r, const int s) |
| Rectangle | operator/ (const Rectangle &r, const int div) |
| Rectangle | operator+ (const Rectangle &r, const Point2D< int > &p) |
| Rectangle & | operator+= (Rectangle &r, const Point2D< int > &p) |
| Rectangle | operator- (const Rectangle &r, const Point2D< int > &p) |
| Rectangle & | operator-= (Rectangle &r, const Point2D< int > &p) |
|
||||||||||||||||||||
|
Like the main constrainRect(), but use the same limits for width as for height.
Definition at line 284 of file Rectangle.H. References constrainRect(). |
|
||||||||||||||||||||||||||||
|
Return a new rectangle that is a constrained version of the input.
Definition at line 75 of file Rectangle.C. References ASSERT, Rectangle::bottomO(), Rectangle::contains(), diff(), Rectangle::getOverlap(), Rectangle::height(), Rectangle::left(), rutz::min(), Rectangle::rightO(), Rectangle::tlbrO(), Rectangle::top(), and Rectangle::width(). |
|
||||||||||||
|
Rectangle overload: format is "<int>,<int>,<int>,<int>".
Definition at line 64 of file Rectangle.C. References c, l, s, t, and Rectangle::tlbrO(). |
|
|
Rectangle overload: format is "<int>,<int>,<int>,<int>". Format corresponds to "xtopleft,ytopleft,xbottomright,ybottomright" Definition at line 51 of file Rectangle.C. References Rectangle::bottomO(), Rectangle::isValid(), Rectangle::left(), Rectangle::rightO(), s, and Rectangle::top(). |
1.4.4