|
ReadFramework
|
#include <Shapes.h>

Public Member Functions | |
| Rect () | |
| Rect (const QRect &rect) | |
| Rect (const QRectF &rect) | |
| Rect (const cv::Rect &rect) | |
| Rect (const Vector2D &topLeft, const Vector2D &size) | |
| Rect (double x, double y, double width, double height) | |
| Rect (const cv::Mat &img) | |
| bool | isNull () const |
| double | width () const |
| double | height () const |
| Vector2D | size () const |
| Vector2D | diagonal () const |
| double | top () const |
| double | bottom () const |
| double | left () const |
| double | right () const |
| Vector2D | topLeft () const |
| Vector2D | topRight () const |
| Vector2D | bottomLeft () const |
| Vector2D | bottomRight () const |
| Vector2D | center () const |
| void | move (const Vector2D &vec) |
| void | expand (double v) |
| void | setTopLeft (const Vector2D &topLeft) |
| void | setSize (const Vector2D &newSize) |
| QRect | toQRect () const |
| QRectF | toQRectF () const |
| cv::Rect | toCvRect () const |
| bool | contains (const Rect &o) const |
| bool | contains (const Vector2D &pt) const |
| bool | isProximate (const Rect &o, double eps=10.0) const |
| Returns true if the centers are closer than eps. NOTE: the city block metric is used to compare the centers. More... | |
| double | area () const |
| Rect | clipped (const Vector2D &size) const |
| void | draw (QPainter &p) const |
Static Public Member Functions | |
| static Rect | fromPoints (const QVector< Vector2D > &pts) |
| Returns a bounding rectangle that encloses all points. More... | |
Protected Attributes | |
| bool | mIsNull = true |
| Vector2D | mTopLeft |
| Vector2D | mSize |
Friends | |
| DllCoreExport friend bool | operator== (const Rect &l, const Rect &r) |
| DllCoreExport friend bool | operator!= (const Rect &l, const Rect &r) |
| rdf::Rect::Rect | ( | ) |
| rdf::Rect::Rect | ( | const QRect & | rect | ) |
| rdf::Rect::Rect | ( | const QRectF & | rect | ) |
| rdf::Rect::Rect | ( | const cv::Rect & | rect | ) |
| rdf::Rect::Rect | ( | double | x, |
| double | y, | ||
| double | width, | ||
| double | height | ||
| ) |
| rdf::Rect::Rect | ( | const cv::Mat & | img | ) |
| double rdf::Rect::area | ( | ) | const |
| double rdf::Rect::bottom | ( | ) | const |
| Vector2D rdf::Rect::bottomLeft | ( | ) | const |
| Vector2D rdf::Rect::bottomRight | ( | ) | const |
| Vector2D rdf::Rect::center | ( | ) | const |
| bool rdf::Rect::contains | ( | const Rect & | o | ) | const |
| bool rdf::Rect::contains | ( | const Vector2D & | pt | ) | const |
| Vector2D rdf::Rect::diagonal | ( | ) | const |
| void rdf::Rect::draw | ( | QPainter & | p | ) | const |
| void rdf::Rect::expand | ( | double | v | ) |
Returns a bounding rectangle that encloses all points.
| pts | The point set. |
| double rdf::Rect::height | ( | ) | const |
| bool rdf::Rect::isNull | ( | ) | const |
| bool rdf::Rect::isProximate | ( | const Rect & | o, |
| double | eps = 10.0 |
||
| ) | const |
Returns true if the centers are closer than eps. NOTE: the city block metric is used to compare the centers.
| o | The other rect. |
| eps | The epsilon region. |
true if the specified o is close; otherwise, false. | double rdf::Rect::left | ( | ) | const |
| void rdf::Rect::move | ( | const Vector2D & | vec | ) |
| double rdf::Rect::right | ( | ) | const |
| void rdf::Rect::setSize | ( | const Vector2D & | newSize | ) |
| void rdf::Rect::setTopLeft | ( | const Vector2D & | topLeft | ) |
| Vector2D rdf::Rect::size | ( | ) | const |
| cv::Rect rdf::Rect::toCvRect | ( | ) | const |
| double rdf::Rect::top | ( | ) | const |
| Vector2D rdf::Rect::topLeft | ( | ) | const |
| Vector2D rdf::Rect::topRight | ( | ) | const |
| QRect rdf::Rect::toQRect | ( | ) | const |
| QRectF rdf::Rect::toQRectF | ( | ) | const |
| double rdf::Rect::width | ( | ) | const |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |