Eyetracker
 
Loading...
Searching...
No Matches
pygaze.plugins.aoi.AOI Class Reference

Public Member Functions

 __init__ (self, aoitype, pos, size)
 
 contains (self, pos)
 

Public Attributes

str aoitype = aoitype
 
 pos = pos
 
list size = [int(size[0]),int(size[1])]
 
list r = self.size[0]/2
 

Detailed Description

Area Of Interest

Constructor & Destructor Documentation

◆ __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

Member Function Documentation

◆ 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

Member Data Documentation

◆ aoitype

pygaze.plugins.aoi.AOI.aoitype = aoitype

◆ pos

pygaze.plugins.aoi.AOI.pos = pos

◆ r

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: