Represents a rectangle. Used to specify rectangular regions of
an image.
Definition at line 867 of file image.h.
Public Member Functions
|
|
ImgTile
() |
|
Create a default empty tile.
|
|
ImgTile
(int X, int Y, int NX, int NY) |
|
Create a tile as specified in the
parameters.
|
|
ImgTile
(const ImgTile &a, const ImgTile &b) |
|
Construct a tile by computing the
intersection fo the two input tiles.
|
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
|
void |
setEmpty
() |
bool |
contains
(const ImgTile &a) const |
|
return true if this tile includes the
specified tile
|
bool |
contains
(int x_, int y_) const |
|
return true if this tile includes the
specified point
|
void |
clipPositive
() |
|
Clip the tile so it will not extend into the
negative quadrants.
|
void |
ExpandToInclude
(int x_, int y_) |
|
Expand this tile to include the specified
point.
|
void |
Expand
(int numPixels=1) |
|
Grow the tile by the specified number of
pixels on all 4 sides.
|
int |
numPixels
() const |
|
return the number of pixels contained in
this tile
|
Public Attributes
|
int |
x |
|
x origin of the tile
|
int |
y |
|
y origin of the tile
|
int |
nx |
|
x size of the tile (width)
|
int |
ny |
|
y size of the tile (height)
|