UT_Rect< T > Class Template Reference

#include <UT_Rect.h>

List of all members.

Public Member Functions

 UT_Rect ()
 UT_Rect (int v1, int v2, int v3, int v4)
 UT_Rect (const UT_DimRect &r)
 UT_Rect (const UT_InclusiveRect &r)
 UT_Rect (const UT_ExclusiveRect &r)
UT_Rectoperator= (const UT_DimRect &r)
UT_Rectoperator= (const UT_InclusiveRect &r)
UT_Rectoperator= (const UT_ExclusiveRect &r)
void clear ()
void set (int v1, int v2, int v3, int v4)
bool isEmpty () const
bool isValid () const
bool isInsideX (int px) const
bool isInsideY (int py) const
bool isInside (int px, int py) const
bool contains (const T &r) const
void getRelative (int &px, int &py) const
void getAbsolute (int &px, int &py) const
void flipX (int awidth)
void flipY (int aheight)
bool intersect (const T &r)
bool overlapX (const T &r) const
bool overlapY (const T &r) const
void enlarge (const T &r)
void enlarge (int x, int y)
void enlarge (float x, float y)
void translate (int x, int y)
void inset (int dx, int dy)
void inset (int dx1, int dy1, int dx2, int dy2)
void scale (fpreal factor)
void clamp (int &px, int &py) const
int x () const
int y () const
int w () const
int h () const
int width () const
int height () const
int x1 () const
int y1 () const
int x2 () const
int y2 () const
int x2e () const
int y2e () const
void setWidth (int awidth)
void setHeight (int aheight)
void setX (int x_)
void setY (int y_)
void setX1 (int x_)
void setY1 (int y_)
void setX2 (int x_)
void setY2 (int y_)
void setX2e (int x_)
void setY2e (int y_)
void getDim (int &x_, int &y_, int &w_, int &h_) const
void getIncl (int &x1_, int &y1_, int &x2_, int &y2_) const
void getExcl (int &x1_, int &y1_, int &x2_, int &y2_) const
void setDim (int x_, int y_, int w_, int h_)
void setIncl (int x1_, int y1_, int x2_, int y2_)
void setExcl (int x1_, int y1_, int x2_, int y2_)
int & operator() (int i)
int operator() (int i) const
const int * data () const
int * data ()


Detailed Description

template<typename T>
class UT_Rect< T >

Definition at line 58 of file UT_Rect.h.


Constructor & Destructor Documentation

template<typename T>
UT_Rect< T >::UT_Rect (  )  [inline]

Definition at line 61 of file UT_Rect.h.

template<typename T>
UT_Rect< T >::UT_Rect ( int  v1,
int  v2,
int  v3,
int  v4 
) [inline]

Definition at line 62 of file UT_Rect.h.

template<typename T>
UT_Rect< T >::UT_Rect ( const UT_DimRect r  )  [inline]

Definition at line 64 of file UT_Rect.h.

template<typename T>
UT_Rect< T >::UT_Rect ( const UT_InclusiveRect r  )  [inline]

Definition at line 65 of file UT_Rect.h.

template<typename T>
UT_Rect< T >::UT_Rect ( const UT_ExclusiveRect r  )  [inline]

Definition at line 66 of file UT_Rect.h.


Member Function Documentation

template<typename T>
void UT_Rect< T >::clamp ( int &  px,
int &  py 
) const [inline]

Definition at line 133 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::clear ( void   )  [inline]

Definition at line 73 of file UT_Rect.h.

template<class T>
bool UT_Rect< T >::contains ( const T &  r  )  const [inline]

Definition at line 153 of file UT_Rect.C.

template<typename T>
int* UT_Rect< T >::data ( void   )  [inline]

Definition at line 204 of file UT_Rect.h.

template<typename T>
const int* UT_Rect< T >::data ( void   )  const [inline]

Definition at line 203 of file UT_Rect.h.

template<class T>
void UT_Rect< T >::enlarge ( float  x,
float  y 
) [inline]

Definition at line 102 of file UT_Rect.C.

template<class T>
void UT_Rect< T >::enlarge ( int  x,
int  y 
) [inline]

Definition at line 86 of file UT_Rect.C.

template<class T>
void UT_Rect< T >::enlarge ( const T &  r  )  [inline]

Definition at line 67 of file UT_Rect.C.

template<typename T>
void UT_Rect< T >::flipX ( int  awidth  )  [inline]

Definition at line 102 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::flipY ( int  aheight  )  [inline]

Definition at line 103 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::getAbsolute ( int &  px,
int &  py 
) const [inline]

Definition at line 99 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::getDim ( int &  x_,
int &  y_,
int &  w_,
int &  h_ 
) const [inline]

Definition at line 183 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::getExcl ( int &  x1_,
int &  y1_,
int &  x2_,
int &  y2_ 
) const [inline]

Definition at line 187 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::getIncl ( int &  x1_,
int &  y1_,
int &  x2_,
int &  y2_ 
) const [inline]

Definition at line 185 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::getRelative ( int &  px,
int &  py 
) const [inline]

Definition at line 96 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::h (  )  const [inline]

Definition at line 150 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::height ( void   )  const [inline]

Definition at line 152 of file UT_Rect.h.

template<class T >
void UT_Rect< T >::inset ( int  dx1,
int  dy1,
int  dx2,
int  dy2 
) [inline]

Definition at line 138 of file UT_Rect.C.

template<class T >
void UT_Rect< T >::inset ( int  dx,
int  dy 
) [inline]

Definition at line 131 of file UT_Rect.C.

template<class T>
bool UT_Rect< T >::intersect ( const T &  r  )  [inline]

Definition at line 30 of file UT_Rect.C.

template<typename T>
bool UT_Rect< T >::isEmpty ( void   )  const [inline]

Definition at line 79 of file UT_Rect.h.

template<typename T>
bool UT_Rect< T >::isInside ( int  px,
int  py 
) const [inline]

Definition at line 89 of file UT_Rect.h.

template<typename T>
bool UT_Rect< T >::isInsideX ( int  px  )  const [inline]

Definition at line 85 of file UT_Rect.h.

template<typename T>
bool UT_Rect< T >::isInsideY ( int  py  )  const [inline]

Definition at line 86 of file UT_Rect.h.

template<typename T>
bool UT_Rect< T >::isValid ( void   )  const [inline]

Definition at line 82 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::operator() ( int  i  )  const [inline]

Definition at line 201 of file UT_Rect.h.

template<typename T>
int& UT_Rect< T >::operator() ( int  i  )  [inline]

Definition at line 200 of file UT_Rect.h.

template<typename T>
UT_Rect& UT_Rect< T >::operator= ( const UT_ExclusiveRect r  )  [inline]

Definition at line 70 of file UT_Rect.h.

template<typename T>
UT_Rect& UT_Rect< T >::operator= ( const UT_InclusiveRect r  )  [inline]

Definition at line 69 of file UT_Rect.h.

template<typename T>
UT_Rect& UT_Rect< T >::operator= ( const UT_DimRect r  )  [inline]

Definition at line 68 of file UT_Rect.h.

template<class T>
bool UT_Rect< T >::overlapX ( const T &  r  )  const [inline]

Definition at line 49 of file UT_Rect.C.

template<class T>
bool UT_Rect< T >::overlapY ( const T &  r  )  const [inline]

Definition at line 58 of file UT_Rect.C.

template<class T >
void UT_Rect< T >::scale ( fpreal  factor  )  [inline]

Definition at line 144 of file UT_Rect.C.

template<typename T>
void UT_Rect< T >::set ( int  v1,
int  v2,
int  v3,
int  v4 
) [inline]

Definition at line 76 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setDim ( int  x_,
int  y_,
int  w_,
int  h_ 
) [inline]

Definition at line 192 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setExcl ( int  x1_,
int  y1_,
int  x2_,
int  y2_ 
) [inline]

Definition at line 196 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setHeight ( int  aheight  )  [inline]

Definition at line 163 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setIncl ( int  x1_,
int  y1_,
int  x2_,
int  y2_ 
) [inline]

Definition at line 194 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setWidth ( int  awidth  )  [inline]

Definition at line 162 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setX ( int  x_  )  [inline]

Definition at line 166 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setX1 ( int  x_  )  [inline]

Definition at line 170 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setX2 ( int  x_  )  [inline]

Definition at line 172 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setX2e ( int  x_  )  [inline]

Definition at line 174 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setY ( int  y_  )  [inline]

Definition at line 167 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setY1 ( int  y_  )  [inline]

Definition at line 171 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setY2 ( int  y_  )  [inline]

Definition at line 173 of file UT_Rect.h.

template<typename T>
void UT_Rect< T >::setY2e ( int  y_  )  [inline]

Definition at line 175 of file UT_Rect.h.

template<class T >
void UT_Rect< T >::translate ( int  x,
int  y 
) [inline]

Definition at line 125 of file UT_Rect.C.

template<typename T>
int UT_Rect< T >::w (  )  const [inline]

Definition at line 149 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::width (  )  const [inline]

Definition at line 151 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::x (  )  const [inline]

Definition at line 147 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::x1 (  )  const [inline]

Definition at line 154 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::x2 (  )  const [inline]

Definition at line 156 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::x2e (  )  const [inline]

Definition at line 158 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::y (  )  const [inline]

Definition at line 148 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::y1 (  )  const [inline]

Definition at line 155 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::y2 (  )  const [inline]

Definition at line 157 of file UT_Rect.h.

template<typename T>
int UT_Rect< T >::y2e (  )  const [inline]

Definition at line 159 of file UT_Rect.h.


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

Generated on Mon Jan 28 00:49:12 2013 for HDK by  doxygen 1.5.9