Package SmootLight :: Package pixelcore :: Module Screen :: Class Screen
[hide private]
[frames] | no frames]

Class Screen

source code

Class representing a collection of Pixels grouped into PixelStrips. Needs a PixelMapper, currently set via setMapper by may be migrated into the argDict.

Instance Methods [hide private]
 
__init__(self) source code
 
addStrip(self, strip) source code
 
pixelsInRange(self, minX, maxX)
Returns (pixelIndex, pixel).
source code
 
computeXSortedPixels(self) source code
 
__iter__(self) source code
 
timeStep(self, currentTime=None)
Increments time -- This processes all queued responses, adding that to a queue that will be processed on the next time step.
source code
 
respond(self, responseInfo) source code
 
getSize(self)
Returns the size of the screen in the form: (minx, miny, maxx, maxy)
source code
 
processResponse(self, responseInfo, currentTime=None) source code
Method Details [hide private]

pixelsInRange(self, minX, maxX)

source code 

Returns (pixelIndex, pixel). Does a binary search. Sorts first if neccesary.