| |
- AreaOfInterest
class AreaOfInterest |
|
Stores the starting (leftX, topY) and ending (rightX, bottomY) coordinates
of an area of interest. |
|
Methods defined here:
- __init__(self, leftX, rightX, topY, bottomY)
- Initialize all instance fields.
@param leftX: the starting x value, the lowest
@param rightX: the ending x value, the highest
@param topY: the starting y value, the lowest
@param bottomY: the ending y value, the highest
@return: none
- __iter__(self)
- Defined so that AreaOfInterest can be added to a list.
object.__iter__ is called when one needs to iterate over an object.
@return: self
- getHeight(self)
- Returns the height of the AreOfInterest
@return: the height of the AreaOfInterest
- getWidth(self)
- Returns the width of the AreOfInterest
@return: the width of the AreaOfInterest
- next(self)
- Defined so that AreaOfInterest can be added to a list.
Since AreaOfInterest does not contain data to be iterated over within itself,
stops iteration immediately by raising StopIteration.
@return: none
Data and other attributes defined here:
- bottomY = 0
- leftX = 0
- rightX = 0
- topY = 0
| |