UT/UT_Rect.h File Reference

#include <math.h>
#include <SYS/SYS_Types.h>
#include <iostream.h>
#include "UT_Algorithm.h"

Go to the source code of this file.

Classes

class  UT_Rect< T >
class  UT_BaseRectImpl
class  UT_DimRectImpl
class  UT_InclusiveRectImpl
class  UT_ExclusiveRectImpl

Defines

#define UT_RECT_OP_EQUALS(T1, T2)
#define UT_RECT_OP_NOT_EQUALS(T1, T2)
#define UT_RECT_COPY_TO_DIM(T1, T2)
#define UT_RECT_COPY_TO_INCLUSIVE(T1, T2)
#define UT_RECT_COPY_TO_EXCLUSIVE(T1, T2)

Typedefs

typedef UT_Rect< UT_DimRectImplUT_DimRect
typedef UT_Rect
< UT_InclusiveRectImpl
UT_InclusiveRect
typedef UT_Rect
< UT_ExclusiveRectImpl
UT_ExclusiveRect

Functions

int UTinclusiveFlip (int v, int d)
ostream & operator<< (ostream &os, const UT_DimRect &r)


Define Documentation

#define UT_RECT_COPY_TO_DIM ( T1,
T2   ) 

Value:

inline T1::T1( const T2 &r ) \
        : UT_BaseRectImpl( r.x(), r.y(), r.width(), r.height() ) { } \
    inline T1 & T1::operator=(const T2 &r) \
                { set( r.x(), r.y(), r.width(), r.height() ); return *this; }

Definition at line 476 of file UT_Rect.h.

#define UT_RECT_COPY_TO_EXCLUSIVE ( T1,
T2   ) 

Value:

inline T1::T1( const T2 &r ) \
        : UT_BaseRectImpl( r.x1(), r.y1(), r.x2e(), r.y2e() ) { } \
    inline T1 & T1::operator=(const T2 &r) \
                { set( r.x1(), r.y1(), r.x2e(), r.y2e() ); return *this; }

Definition at line 486 of file UT_Rect.h.

#define UT_RECT_COPY_TO_INCLUSIVE ( T1,
T2   ) 

Value:

inline T1::T1( const T2 &r ) \
        : UT_BaseRectImpl( r.x1(), r.y1(), r.x2(), r.y2() ) { } \
    inline T1 & T1::operator=(const T2 &r) \
                { set( r.x1(), r.y1(), r.x2(), r.y2() ); return *this; }

Definition at line 481 of file UT_Rect.h.

#define UT_RECT_OP_EQUALS ( T1,
T2   ) 

Value:

inline bool operator==( const T1 &r1, const T2 &r2 ) \
        { return (r1.x() == r2.x() && r1.y() == r2.y() \
                && r1.width() == r2.width() \
                && r1.height() == r2.height()); }

Definition at line 444 of file UT_Rect.h.

#define UT_RECT_OP_NOT_EQUALS ( T1,
T2   ) 

Value:

inline bool operator!=( const T1 &r1, const T2 &r2 ) \
        { return !(r1 == r2); }

Definition at line 461 of file UT_Rect.h.


Typedef Documentation

Definition at line 37 of file UT_Rect.h.

Definition at line 41 of file UT_Rect.h.

Definition at line 40 of file UT_Rect.h.


Function Documentation

ostream & operator<< ( ostream &  os,
const UT_DimRect r 
) [inline]

Definition at line 421 of file UT_Rect.h.

int UTinclusiveFlip ( int  v,
int  d 
) [inline]

Definition at line 31 of file UT_Rect.h.


Generated on Mon Jan 28 00:47:35 2013 for HDK by  doxygen 1.5.9