#include <UT_BoundingRect.h>
Public Member Functions | |
| UT_BoundingRect () | |
| UT_BoundingRect (fpreal xmin, fpreal ymin, fpreal xmax, fpreal ymax) | |
| UT_BoundingRect (const UT_Vector2 &lowerbound, const UT_Vector2 &upperbound) | |
| float | operator() (unsigned m, unsigned n) const |
| float & | operator() (unsigned m, unsigned n) |
| int | operator== (const UT_BoundingRect &brect) const |
| int | contains (const UT_Vector2 &pt) const |
| int | contains (const UT_Vector2 &pt, fpreal tol) const |
| int | contains (fpreal x, fpreal y) const |
| int | isInside (const UT_BoundingRect &brect) const |
| int | intersects (const UT_Vector2 &v0, const UT_Vector2 &v1) const |
| int | intersects (const UT_BoundingRect &rect) const |
| int | intersects (const UT_BoundingRect &rect, fpreal tol) const |
| void | initBounds (const UT_Vector2 &pt) |
| void | initBounds (fpreal x, fpreal y) |
| void | initBounds (fpreal xmin, fpreal xmax, fpreal ymin, fpreal ymax) |
| void | initBounds (const UT_BoundingRect &rect) |
| void | enlargeBounds (const UT_Vector2 &pt) |
| void | enlargeBounds (fpreal x, fpreal y) |
| void | enlargeBounds (fpreal xmin, fpreal xmax, fpreal ymin, fpreal ymax) |
| void | enlargeBounds (const UT_BoundingRect &rect) |
| void | stretch (fpreal percent=0.001F, fpreal min=0.001F) |
| void | translate (fpreal x, fpreal y) |
| fpreal | sizeX () const |
| fpreal | sizeY () const |
| fpreal | centerX () const |
| fpreal | centerY () const |
| void | project (float &x, float &y, int *touchx=0, int *touchy=0) const |
| fpreal | LX () const |
| fpreal | LY () const |
| fpreal | UX () const |
| fpreal | UY () const |
| float & | LX () |
| float & | LY () |
| float & | UX () |
| float & | UY () |
| int | intersectRay (const UT_Vector2 &orig, const UT_Vector2 &dir, fpreal tmax=1E17F, float *distance=0, UT_Vector2 *xsect=0) const |
| void | save (ostream &os, int binary=0) const |
Public Attributes | |
| float | vals [2][2] |
Friends | |
| ostream & | operator<< (ostream &os, const UT_BoundingRect &brect) |
Definition at line 32 of file UT_BoundingRect.h.
| UT_BoundingRect::UT_BoundingRect | ( | ) | [inline] |
Definition at line 34 of file UT_BoundingRect.h.
Definition at line 35 of file UT_BoundingRect.h.
| UT_BoundingRect::UT_BoundingRect | ( | const UT_Vector2 & | lowerbound, | |
| const UT_Vector2 & | upperbound | |||
| ) |
| fpreal UT_BoundingRect::centerX | ( | ) | const [inline] |
Definition at line 145 of file UT_BoundingRect.h.
| fpreal UT_BoundingRect::centerY | ( | ) | const [inline] |
Definition at line 146 of file UT_BoundingRect.h.
Definition at line 65 of file UT_BoundingRect.h.
| int UT_BoundingRect::contains | ( | const UT_Vector2 & | pt, | |
| fpreal | tol | |||
| ) | const |
| int UT_BoundingRect::contains | ( | const UT_Vector2 & | pt | ) | const |
| void UT_BoundingRect::enlargeBounds | ( | const UT_BoundingRect & | rect | ) | [inline] |
Definition at line 119 of file UT_BoundingRect.h.
Definition at line 112 of file UT_BoundingRect.h.
Definition at line 105 of file UT_BoundingRect.h.
| void UT_BoundingRect::enlargeBounds | ( | const UT_Vector2 & | pt | ) |
| void UT_BoundingRect::initBounds | ( | const UT_BoundingRect & | rect | ) | [inline] |
Definition at line 96 of file UT_BoundingRect.h.
Definition at line 91 of file UT_BoundingRect.h.
Definition at line 86 of file UT_BoundingRect.h.
| void UT_BoundingRect::initBounds | ( | const UT_Vector2 & | pt | ) |
| int UT_BoundingRect::intersectRay | ( | const UT_Vector2 & | orig, | |
| const UT_Vector2 & | dir, | |||
| fpreal | tmax = 1E17F, |
|||
| float * | distance = 0, |
|||
| UT_Vector2 * | xsect = 0 | |||
| ) | const |
| int UT_BoundingRect::intersects | ( | const UT_BoundingRect & | rect, | |
| fpreal | tol | |||
| ) | const |
| int UT_BoundingRect::intersects | ( | const UT_BoundingRect & | rect | ) | const |
| int UT_BoundingRect::intersects | ( | const UT_Vector2 & | v0, | |
| const UT_Vector2 & | v1 | |||
| ) | const |
| int UT_BoundingRect::isInside | ( | const UT_BoundingRect & | brect | ) | const [inline] |
Definition at line 71 of file UT_BoundingRect.h.
| float& UT_BoundingRect::LX | ( | ) | [inline] |
Definition at line 159 of file UT_BoundingRect.h.
| fpreal UT_BoundingRect::LX | ( | ) | const [inline] |
Definition at line 154 of file UT_BoundingRect.h.
| float& UT_BoundingRect::LY | ( | ) | [inline] |
Definition at line 160 of file UT_BoundingRect.h.
| fpreal UT_BoundingRect::LY | ( | ) | const [inline] |
Definition at line 155 of file UT_BoundingRect.h.
| float& UT_BoundingRect::operator() | ( | unsigned | m, | |
| unsigned | n | |||
| ) | [inline] |
Definition at line 49 of file UT_BoundingRect.h.
| float UT_BoundingRect::operator() | ( | unsigned | m, | |
| unsigned | n | |||
| ) | const [inline] |
Definition at line 44 of file UT_BoundingRect.h.
| int UT_BoundingRect::operator== | ( | const UT_BoundingRect & | brect | ) | const [inline] |
Definition at line 55 of file UT_BoundingRect.h.
| void UT_BoundingRect::project | ( | float & | x, | |
| float & | y, | |||
| int * | touchx = 0, |
|||
| int * | touchy = 0 | |||
| ) | const |
| void UT_BoundingRect::save | ( | ostream & | os, | |
| int | binary = 0 | |||
| ) | const |
| fpreal UT_BoundingRect::sizeX | ( | ) | const [inline] |
Definition at line 142 of file UT_BoundingRect.h.
| fpreal UT_BoundingRect::sizeY | ( | ) | const [inline] |
Definition at line 143 of file UT_BoundingRect.h.
Definition at line 126 of file UT_BoundingRect.h.
Definition at line 134 of file UT_BoundingRect.h.
| float& UT_BoundingRect::UX | ( | ) | [inline] |
Definition at line 161 of file UT_BoundingRect.h.
| fpreal UT_BoundingRect::UX | ( | ) | const [inline] |
Definition at line 156 of file UT_BoundingRect.h.
| float& UT_BoundingRect::UY | ( | ) | [inline] |
Definition at line 162 of file UT_BoundingRect.h.
| fpreal UT_BoundingRect::UY | ( | ) | const [inline] |
Definition at line 157 of file UT_BoundingRect.h.
| ostream& operator<< | ( | ostream & | os, | |
| const UT_BoundingRect & | brect | |||
| ) | [friend] |
Definition at line 177 of file UT_BoundingRect.h.
| float UT_BoundingRect::vals[2][2] |
Definition at line 182 of file UT_BoundingRect.h.
1.5.9