| 
    HDK
    
   | 
 
#include <UT_BoundingRect.h>
Public Types | |
| typedef UT_BoundingRectT< T > | this_type | 
Public Member Functions | |
| UT_BoundingRectT () | |
| UT_BoundingRectT (T xmin, T ymin, T xmax, T ymax) | |
| UT_BoundingRectT (const UT_Vector2T< T > &lowerbound, const UT_Vector2T< T > &upperbound) | |
| template<typename U > | |
| UT_BoundingRectT (const UT_BoundingRectT< U > &src) | |
| T | operator() (unsigned m, unsigned n) const | 
| T & | operator() (unsigned m, unsigned n) | 
| int | operator== (const UT_BoundingRectT< T > &brect) const | 
| bool | operator!= (const UT_BoundingRectT< T > &brect) const | 
| int | contains (const UT_Vector2T< T > &pt) const | 
| int | contains (const UT_Vector2T< T > &pt, T tol) const | 
| int | contains (T x, T y) const | 
| UT_Vector2T< T > | closestPoint (const UT_Vector2T< T > &pt) const | 
| int | isInside (const UT_BoundingRectT< T > &brect) const | 
| int | intersects (const UT_Vector2T< T > &v0, const UT_Vector2T< T > &v1, const UT_Vector2T< T > &v2) const | 
| int | intersects (const UT_Vector2T< T > &v0, const UT_Vector2T< T > &v1) const | 
| int | intersects (const UT_BoundingRectT< T > &rect) const | 
| int | intersects (const UT_BoundingRectT< T > &rect, T tol) const | 
| bool | intersectIfOverlapping (const UT_BoundingRectT< T > &src) | 
| void | intersectBounds (const UT_BoundingRectT< T > &src) | 
| void | clampX (T min, T max) | 
| void | clampY (T min, T max) | 
| bool | isValid () const | 
| Check whether the bounding box contains at least one point.  More... | |
| void | makeInvalid () | 
| void | initBounds () | 
| void | initBounds (const UT_Vector2T< T > &pt) | 
| void | initBounds (T x, T y) | 
| void | initBounds (T xmin, T xmax, T ymin, T ymax) | 
| void | initBounds (const fpreal32 *v) | 
| void | initBounds (const fpreal64 *v) | 
| void | initBounds (const UT_BoundingRectT< T > &rect) | 
| void | initMaxBounds () | 
| Initialize the box to the largest size.  More... | |
| void | enlargeBounds (const UT_Vector2T< T > &pt) | 
| void | enlargeBounds (T x, T y) | 
| void | enlargeBounds (const fpreal32 *v) | 
| void | enlargeBounds (const fpreal64 *v) | 
| void | enlargeBounds (T xmin, T xmax, T ymin, T ymax) | 
| void | enlargeBounds (const UT_BoundingRectT< T > &rect) | 
| void | expandBounds (T dx, T dy) | 
| void | stretch (T percent=0.001, T min=0.001) | 
| void | translate (T x, T y) | 
| void | scale (T xscale, T yscale) | 
| uint8 | cohenSutherland (const UT_BoundingRectT< T > &box) const | 
| T | sizeX () const | 
| T | sizeY () const | 
| T | centerX () const | 
| T | centerY () const | 
| void | project (T &x, T &y, int *touchx=0, int *touchy=0) const | 
| T | LX () const | 
| T | LY () const | 
| T | UX () const | 
| T | UY () const | 
| T & | LX () | 
| T & | LY () | 
| T & | UX () | 
| T & | UY () | 
| void | setX0 (T v) | 
| void | setX1 (T v) | 
| void | setY0 (T v) | 
| void | setY1 (T v) | 
| T | getX0 () const | 
| T | getX1 () const | 
| T | getY0 () const | 
| T | getY1 () const | 
| T & | getX0 () | 
| T & | getX1 () | 
| T & | getY0 () | 
| T & | getY1 () | 
| T | xmin () const | 
| T | xmax () const | 
| T | ymin () const | 
| T | ymax () const | 
| T | xsize () const | 
| T | ysize () const | 
| int | intersectRay (const UT_Vector2T< T > &orig, const UT_Vector2T< T > &dir, T tmax=1E17, T *distance=0, UT_Vector2T< T > *xsect=0) const | 
| UT_API void | dump (const char *msg="") const | 
| UT_API void | dump (std::ostream &os) const | 
| UT_API bool | save (UT_JSONWriter &w) const | 
| UT_API bool | save (UT_JSONValue &v) const | 
| UT_API bool | load (UT_JSONParser &p) | 
| const T * | getSerialized () const | 
| const T * | data () const | 
| T * | data () | 
| const T * | begin () const | 
| const T * | end () const | 
| T * | begin () | 
| T * | end () | 
Public Attributes | |
| union { | |
| T vals [2][2] | |
| T myFloats [4] | |
| }; | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const UT_BoundingRectT< T > &brect) | 
| uint64 | hash () const | 
| Compute UT_BoundingRect hash.  More... | |
| std::size_t | hash_value (const this_type &t) | 
| Compute UT_BoundingRect hash.  More... | |
Definition at line 28 of file UT_BoundingRect.h.
| typedef UT_BoundingRectT<T> UT_BoundingRectT< T >::this_type | 
Definition at line 31 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 33 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 34 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 42 of file UT_BoundingRect.h.
      
  | 
  inlineexplicit | 
Definition at line 52 of file UT_BoundingRect.h.
      
  | 
  inline | 
Iterate over the data serially
Definition at line 389 of file UT_BoundingRect.h.
      
  | 
  inline | 
Iterate over the data serially
Definition at line 391 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 312 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 313 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 172 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 177 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 104 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 292 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 83 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 89 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 99 of file UT_BoundingRect.h.
      
  | 
  inline | 
Access to the serialized data
Definition at line 383 of file UT_BoundingRect.h.
      
  | 
  inline | 
Access to the serialized data
Definition at line 384 of file UT_BoundingRect.h.
| UT_API void UT_BoundingRectT< T >::dump | ( | const char * | msg = "" | ) | const | 
| UT_API void UT_BoundingRectT< T >::dump | ( | std::ostream & | os | ) | const | 
      
  | 
  inline | 
Iterate over the data serially
Definition at line 390 of file UT_BoundingRect.h.
      
  | 
  inline | 
Iterate over the data serially
Definition at line 392 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 237 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 241 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 248 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 249 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 250 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 257 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 264 of file UT_BoundingRect.h.
      
  | 
  inline | 
Access to the serialized data
Definition at line 382 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 336 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 341 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 337 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 342 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 338 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 343 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 339 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 344 of file UT_BoundingRect.h.
      
  | 
  inline | 
      
  | 
  inline | 
Initialize the box such that
Definition at line 194 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 203 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 208 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 213 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 218 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 219 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 220 of file UT_BoundingRect.h.
      
  | 
  inline | 
Initialize the box to the largest size.
Definition at line 229 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 165 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 158 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 177 of file UT_BoundingRectImpl.h.
      
  | 
  inline | 
Definition at line 48 of file UT_BoundingRectImpl.h.
      
  | 
  inline | 
Definition at line 26 of file UT_BoundingRectImpl.h.
      
  | 
  inline | 
Definition at line 137 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 147 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 121 of file UT_BoundingRect.h.
      
  | 
  inline | 
Check whether the bounding box contains at least one point.
Definition at line 184 of file UT_BoundingRect.h.
| UT_API bool UT_BoundingRectT< T >::load | ( | UT_JSONParser & | p | ) | 
Methods to serialize to a JSON stream. The vector is stored as an array of 4 reals (xmin, xmax, ymin, ymax)
      
  | 
  inline | 
Definition at line 321 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 326 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 322 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 327 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 189 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 78 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 60 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 65 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 71 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 99 of file UT_BoundingRectImpl.h.
| UT_API bool UT_BoundingRectT< T >::save | ( | UT_JSONWriter & | w | ) | const | 
Methods to serialize to a JSON stream. The vector is stored as an array of 4 reals (xmin, xmax, ymin, ymax)
| UT_API bool UT_BoundingRectT< T >::save | ( | UT_JSONValue & | v | ) | const | 
Methods to serialize to a JSON stream. The vector is stored as an array of 4 reals (xmin, xmax, ymin, ymax)
      
  | 
  inline | 
Definition at line 286 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 331 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 332 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 333 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 334 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 309 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 310 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 271 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 279 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 323 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 328 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 324 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 329 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 347 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 346 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 351 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 349 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 348 of file UT_BoundingRect.h.
      
  | 
  inline | 
Definition at line 352 of file UT_BoundingRect.h.
      
  | 
  friend | 
      
  | 
  friend | 
Definition at line 363 of file UT_BoundingRect.h.
| union { ... } | 
| T UT_BoundingRectT< T >::myFloats[4] | 
Definition at line 403 of file UT_BoundingRect.h.
| T UT_BoundingRectT< T >::vals[2][2] | 
Definition at line 402 of file UT_BoundingRect.h.