HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_BoundingRect Class Reference

#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_BoundingRectoperator= (const HOM_BoundingRect &rect)
 
void_asVoidPointer ()
 

Public Attributes

UT_BoundingRectD myBoundingRect
 

Detailed Description

Definition at line 25 of file HOM_BoundingRect.h.

Constructor & Destructor Documentation

HOM_BoundingRect::HOM_BoundingRect ( )
inline

Definition at line 28 of file HOM_BoundingRect.h.

HOM_BoundingRect::HOM_BoundingRect ( double  x1,
double  y1,
double  x2,
double  y2 
)
inline

Definition at line 31 of file HOM_BoundingRect.h.

HOM_BoundingRect::HOM_BoundingRect ( const HOM_Vector2 pos1,
const HOM_Vector2 pos2 
)
inline

Definition at line 38 of file HOM_BoundingRect.h.

HOM_BoundingRect::HOM_BoundingRect ( const HOM_BoundingRect src)
inline

Definition at line 45 of file HOM_BoundingRect.h.

HOM_BoundingRect::HOM_BoundingRect ( const UT_BoundingRectD rect)
inline

Definition at line 50 of file HOM_BoundingRect.h.

HOM_BoundingRect::HOM_BoundingRect ( const UT_BoundingRectF rect)
inline

Definition at line 55 of file HOM_BoundingRect.h.

HOM_BoundingRect::~HOM_BoundingRect ( )
inline

Definition at line 59 of file HOM_BoundingRect.h.

Member Function Documentation

int HOM_BoundingRect::__hash__ ( )
std::string HOM_BoundingRect::__repr__ ( )
std::string HOM_BoundingRect::__str__ ( )
void* HOM_BoundingRect::_asVoidPointer ( )
inline

Definition at line 121 of file HOM_BoundingRect.h.

HOM_Vector2 HOM_BoundingRect::center ( )
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)
bool HOM_BoundingRect::contains ( const HOM_BoundingRect rect)
inline

Definition at line 110 of file HOM_BoundingRect.h.

void HOM_BoundingRect::enlargeToContain ( const std::vector< double > &  point)
void HOM_BoundingRect::enlargeToContain ( const HOM_BoundingRect rect)
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 
)
void HOM_BoundingRect::intersect ( const HOM_BoundingRect rect)
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 
)
bool HOM_BoundingRect::intersects ( const HOM_BoundingRect rect)
inline

Definition at line 106 of file HOM_BoundingRect.h.

bool HOM_BoundingRect::isAlmostEqual ( HOM_BoundingRect rect,
double  tolerance = 0.00001 
)
bool HOM_BoundingRect::isValid ( )
inline

Definition at line 74 of file HOM_BoundingRect.h.

HOM_Vector2 HOM_BoundingRect::max ( )
inline

Definition at line 86 of file HOM_BoundingRect.h.

HOM_Vector2 HOM_BoundingRect::min ( )
inline

Definition at line 83 of file HOM_BoundingRect.h.

Definition at line 65 of file HOM_BoundingRect.h.

HOM_BoundingRect& HOM_BoundingRect::operator= ( const HOM_BoundingRect rect)
inline

Definition at line 115 of file HOM_BoundingRect.h.

bool HOM_BoundingRect::operator== ( HOM_PtrOrNull< HOM_BoundingRect rect)
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)
HOM_Vector2 HOM_BoundingRect::size ( void  )
inline

Definition at line 88 of file HOM_BoundingRect.h.

void HOM_BoundingRect::translate ( const std::vector< double > &  tuple)

Member Data Documentation

UT_BoundingRectD HOM_BoundingRect::myBoundingRect

Definition at line 125 of file HOM_BoundingRect.h.


The documentation for this class was generated from the following file: