|
| str | aoitype = aoitype |
| |
| | pos = pos |
| |
| list | size = [int(size[0]),int(size[1])] |
| |
| list | r = self.size[0]/2 |
| |
◆ __init__()
| pygaze.plugins.aoi.AOI.__init__ |
( |
| self, |
|
|
| aoitype, |
|
|
| pos, |
|
|
| size ) |
Initializes an AOI object
arguments
aoitype -- string specifying the type of AOI; should be
'rectangle', 'circle' or 'ellipse'
pos -- a (x,y) position tuple
size -- either a single integer or a [width,height] list
of integers
keyword arguments
None
◆ contains()
| pygaze.plugins.aoi.AOI.contains |
( |
| self, |
|
|
| pos ) |
Checks if a position is within the AOI
arguments
pos -- a (x,y) position tuple
keyword arguments
None
returns
True/False -- True if the passed position is within the AOI,
False if not
◆ aoitype
| pygaze.plugins.aoi.AOI.aoitype = aoitype |
◆ pos
| pygaze.plugins.aoi.AOI.pos = pos |
| list pygaze.plugins.aoi.AOI.r = self.size[0]/2 |
◆ size
| list pygaze.plugins.aoi.AOI.size = [int(size[0]),int(size[1])] |
The documentation for this class was generated from the following file:
- C:/Users/lurax/eyetrackingTobii/pygaze/plugins/aoi.py