ImgTile_AoutB_Iter Class Reference

ImgTile_AoutB_Iter Class Reference

#include <image.h>

Class Description

Iterates over a the region of tile A that is outside tile B.

If tile A is contained inside tile B, this region will be empty.

Definition at line 1164 of file image.h.

+ Inheritance diagram for ImgTile_AoutB_Iter:

Public Member Functions

 ImgTile_AoutB_Iter (const ImgTile &A, const ImgTile &B)
 
virtual bool next ()
 
- Public Member Functions inherited from ImgTile
 ImgTile ()
 Create a default empty tile. More...
 
 ImgTile (int X, int Y, int NX, int NY)
 Create a tile as specified in the parameters. More...
 
 ImgTile (const ImgTile &a, const ImgTile &b)
 Construct a tile by computing the intersection fo the two input tiles. More...
 
bool isEqualTile (const ImgTile &t) const
 
bool operator== (const ImgTile &t) const
 
bool operator!= (const ImgTile &t) const
 
bool isEmpty () const
 return true of this tile is empty More...
 
void setEmpty ()
 
bool contains (const ImgTile &a) const
 return true if this tile includes the specified tile More...
 
bool contains (int x_, int y_) const
 return true if this tile includes the specified point More...
 
void clipPositive ()
 Clip the tile so it will not extend into the negative quadrants. More...
 
void ExpandToInclude (int x_, int y_)
 Expand this tile to include the specified point. More...
 
void Expand (int numPixels=1)
 Grow the tile by the specified number of pixels on all 4 sides. More...
 
int numPixels () const
 return the number of pixels contained in this tile More...
 

Additional Inherited Members

- Public Attributes inherited from ImgTile
int x
 x origin of the tile More...
 
int y
 y origin of the tile More...
 
int nx
 x size of the tile (width) More...
 
int ny
 y size of the tile (height) More...
 

Constructor & Destructor Documentation

ImgTile_AoutB_Iter ( const ImgTile A,
const ImgTile B 
)
inline

Definition at line 1172 of file image.h.

1172  :
1173  ax1 (A.x), ax2 (A.x + A.nx - 1),
1174  bx1 (B.x), bx2 (B.x + B.nx - 1),
1175  ay1 (A.y), ay2 (A.y + A.ny - 1),
1176  by1 (B.y), by2 (B.y + B.ny - 1),
1177  state (0),
1178  ad (A.nx <= 0 || A.ny <= 0),
1179  bd (B.nx <= 0 || B.ny <= 0) {}

Member Function Documentation

virtual bool next ( )
virtual

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