HDK
|
#include <HOM_BoundingRect.h>
Public Member Functions | |
HOM_BoundingRect () | |
HOM_BoundingRect (double x1, double y1, double x2, double y2) | |
HOM_BoundingRect (const HOM_Vector2 &pos1, const HOM_Vector2 &pos2) | |
HOM_BoundingRect (const HOM_BoundingRect &src) | |
HOM_BoundingRect (const UT_BoundingRectD &rect) | |
HOM_BoundingRect (const UT_BoundingRectF &rect) | |
~HOM_BoundingRect () | |
bool | operator== (HOM_PtrOrNull< HOM_BoundingRect > rect) |
bool | operator!= (HOM_PtrOrNull< HOM_BoundingRect > rect) |
bool | isAlmostEqual (HOM_BoundingRect &rect, double tolerance=0.00001) |
int | __hash__ () |
std::string | __str__ () |
std::string | __repr__ () |
bool | isValid () |
void | setTo (const std::vector< double > &tuple) |
void | translate (const std::vector< double > &tuple) |
void | scale (const std::vector< double > &tuple) |
void | expand (const std::vector< double > &tuple) |
HOM_Vector2 | min () |
HOM_Vector2 | max () |
HOM_Vector2 | size () |
HOM_Vector2 | center () |
HOM_Vector2 | getOffsetToAvoid (HOM_BoundingRect &bounds, HOM_Vector2 *direction=NULL) |
void | enlargeToContain (const std::vector< double > &point) |
void | enlargeToContain (const HOM_BoundingRect &rect) |
void | intersect (const HOM_BoundingRect &rect) |
bool | intersects (const std::vector< double > &point0, const std::vector< double > &point1, const std::vector< double > &point2) |
bool | intersects (const std::vector< double > &point0, const std::vector< double > &point1) |
bool | intersects (const HOM_BoundingRect &rect) |
bool | contains (const std::vector< double > &point) |
bool | contains (const HOM_BoundingRect &rect) |
HOM_Vector2 | closestPoint (const std::vector< double > &point) |
HOM_BoundingRect & | operator= (const HOM_BoundingRect &rect) |
void * | _asVoidPointer () |
Public Attributes | |
UT_BoundingRectD | myBoundingRect |
Definition at line 25 of file HOM_BoundingRect.h.
|
inline |
Definition at line 28 of file HOM_BoundingRect.h.
|
inline |
Definition at line 31 of file HOM_BoundingRect.h.
|
inline |
Definition at line 38 of file HOM_BoundingRect.h.
|
inline |
Definition at line 45 of file HOM_BoundingRect.h.
|
inline |
Definition at line 50 of file HOM_BoundingRect.h.
|
inline |
Definition at line 55 of file HOM_BoundingRect.h.
|
inline |
Definition at line 59 of file HOM_BoundingRect.h.
int HOM_BoundingRect::__hash__ | ( | ) |
std::string HOM_BoundingRect::__repr__ | ( | ) |
std::string HOM_BoundingRect::__str__ | ( | ) |
|
inline |
Definition at line 121 of file HOM_BoundingRect.h.
|
inline |
Definition at line 90 of file HOM_BoundingRect.h.
HOM_Vector2 HOM_BoundingRect::closestPoint | ( | const std::vector< double > & | point | ) |
bool HOM_BoundingRect::contains | ( | const std::vector< double > & | point | ) |
|
inline |
Definition at line 110 of file HOM_BoundingRect.h.
void HOM_BoundingRect::enlargeToContain | ( | const std::vector< double > & | point | ) |
|
inline |
Definition at line 96 of file HOM_BoundingRect.h.
void HOM_BoundingRect::expand | ( | const std::vector< double > & | tuple | ) |
HOM_Vector2 HOM_BoundingRect::getOffsetToAvoid | ( | HOM_BoundingRect & | bounds, |
HOM_Vector2 * | direction = NULL |
||
) |
|
inline |
Definition at line 98 of file HOM_BoundingRect.h.
bool HOM_BoundingRect::intersects | ( | const std::vector< double > & | point0, |
const std::vector< double > & | point1, | ||
const std::vector< double > & | point2 | ||
) |
bool HOM_BoundingRect::intersects | ( | const std::vector< double > & | point0, |
const std::vector< double > & | point1 | ||
) |
|
inline |
Definition at line 106 of file HOM_BoundingRect.h.
bool HOM_BoundingRect::isAlmostEqual | ( | HOM_BoundingRect & | rect, |
double | tolerance = 0.00001 |
||
) |
|
inline |
Definition at line 74 of file HOM_BoundingRect.h.
|
inline |
Definition at line 86 of file HOM_BoundingRect.h.
|
inline |
Definition at line 83 of file HOM_BoundingRect.h.
|
inline |
Definition at line 65 of file HOM_BoundingRect.h.
|
inline |
Definition at line 115 of file HOM_BoundingRect.h.
|
inline |
Definition at line 62 of file HOM_BoundingRect.h.
void HOM_BoundingRect::scale | ( | const std::vector< double > & | tuple | ) |
void HOM_BoundingRect::setTo | ( | const std::vector< double > & | tuple | ) |
|
inline |
Definition at line 88 of file HOM_BoundingRect.h.
void HOM_BoundingRect::translate | ( | const std::vector< double > & | tuple | ) |
UT_BoundingRectD HOM_BoundingRect::myBoundingRect |
Definition at line 125 of file HOM_BoundingRect.h.