CkRect Class Reference

#include <ckimage.h>

Collaboration diagram for CkRect:

Collaboration graph
[legend]

Public Member Functions

 CkRect ()
 CkRect (int l_, int t_, int r_, int b_)
 CkRect (int w, int h)
int wid (void) const
int ht (void) const
int getWidth (void) const
int getHeight (void) const
int operator== (const CkRect &a)
CkRect getUnion (const CkRect &a)
CkRect getIntersect (const CkRect &a)
CkRect getShift (int dx, int dy)
CmiBool isEmpty (void) const
CmiBool inbounds (int x, int y) const
void makeEmpty (void)
void empty (void)
void add (int x, int y)
void enlarge (int dx, int dy)
void zero (void)
int area (void) const
void pup (PUP::er &p)

Data Fields

int l
int r
int t
int b

Detailed Description

Definition at line 17 of file ckimage.h.


Constructor & Destructor Documentation

CkRect::CkRect (  )  [inline]

Definition at line 21 of file ckimage.h.

References b, l, r, and t.

Referenced by getIntersect(), getShift(), and getUnion().

CkRect::CkRect ( int  l_,
int  t_,
int  r_,
int  b_ 
) [inline]

Definition at line 22 of file ckimage.h.

CkRect::CkRect ( int  w,
int  h 
) [inline]

Definition at line 24 of file ckimage.h.


Member Function Documentation

int CkRect::wid ( void   )  const [inline]

Definition at line 27 of file ckimage.h.

References l, and r.

Referenced by imageCombine(), liveVizDeposit(), vizPollReductionHandler(), and CkImage::window().

int CkRect::ht ( void   )  const [inline]

Definition at line 28 of file ckimage.h.

References b, and t.

Referenced by imageCombine(), liveVizDeposit(), vizPollReductionHandler(), and CkImage::window().

int CkRect::getWidth ( void   )  const [inline]

Definition at line 29 of file ckimage.h.

References l, and r.

int CkRect::getHeight ( void   )  const [inline]

Definition at line 30 of file ckimage.h.

References b, and t.

int CkRect::operator== ( const CkRect a  )  [inline]

Definition at line 31 of file ckimage.h.

References b, l, r, and t.

CkRect CkRect::getUnion ( const CkRect a  )  [inline]

Definition at line 33 of file ckimage.h.

References b, CkRect(), l, max(), min(), r, and t.

Referenced by imageCombine().

CkRect CkRect::getIntersect ( const CkRect a  )  [inline]

Definition at line 36 of file ckimage.h.

References b, CkRect(), l, max(), min(), r, and t.

Referenced by liveVizDeposit().

CkRect CkRect::getShift ( int  dx,
int  dy 
) [inline]

Definition at line 39 of file ckimage.h.

References b, CkRect(), l, r, and t.

Referenced by liveVizDeposit().

CmiBool CkRect::isEmpty ( void   )  const [inline]

Definition at line 42 of file ckimage.h.

References b, l, r, and t.

Referenced by liveVizDeposit().

CmiBool CkRect::inbounds ( int  x,
int  y 
) const [inline]

Definition at line 43 of file ckimage.h.

References b, CmiFalse, CmiTrue, and r.

void CkRect::makeEmpty ( void   )  [inline]

Definition at line 48 of file ckimage.h.

References b, l, r, and t.

Referenced by empty(), and imageCombine().

void CkRect::empty ( void   )  [inline]

Definition at line 49 of file ckimage.h.

References makeEmpty().

void CkRect::add ( int  x,
int  y 
) [inline]

Definition at line 50 of file ckimage.h.

References b, l, max(), min(), r, and t.

void CkRect::enlarge ( int  dx,
int  dy 
) [inline]

Definition at line 54 of file ckimage.h.

References b, l, r, and t.

void CkRect::zero ( void   )  [inline]

Definition at line 57 of file ckimage.h.

References b, l, r, and t.

Referenced by liveVizDeposit().

int CkRect::area ( void   )  const [inline]

Definition at line 58 of file ckimage.h.

References b, l, r, and t.

Referenced by CkAllocImage::allocate(), allocateImageMsg(), and CkAllocImage::pup().

void CkRect::pup ( PUP::er p  )  [inline]

Definition at line 60 of file ckimage.h.

References b, l, p, r, and t.


Field Documentation

int CkRect::l

Definition at line 19 of file ckimage.h.

Referenced by add(), area(), CkRect(), enlarge(), getIntersect(), getShift(), getUnion(), getWidth(), imageCombine(), isEmpty(), makeEmpty(), operator==(), pup(), vizPollReductionHandler(), wid(), CkImage::window(), and zero().

int CkRect::r

Definition at line 19 of file ckimage.h.

Referenced by add(), area(), CkRect(), enlarge(), getIntersect(), getShift(), getUnion(), getWidth(), imageCombine(), inbounds(), isEmpty(), makeEmpty(), operator==(), pup(), wid(), and zero().

int CkRect::t

Definition at line 20 of file ckimage.h.

Referenced by add(), area(), CkRect(), enlarge(), getHeight(), getIntersect(), getShift(), getUnion(), ht(), imageCombine(), isEmpty(), makeEmpty(), operator==(), pup(), vizPollReductionHandler(), CkImage::window(), and zero().

int CkRect::b

Definition at line 20 of file ckimage.h.

Referenced by add(), area(), CkRect(), enlarge(), getHeight(), getIntersect(), getShift(), getUnion(), ht(), imageCombine(), inbounds(), isEmpty(), makeEmpty(), operator==(), pup(), and zero().


The documentation for this class was generated from the following file:
Generated on Sun Jun 29 13:31:14 2008 for Charm++ by  doxygen 1.5.1