From cb69d2e1c7ced951cbf7a31ee286b0ed92cab8a8 Mon Sep 17 00:00:00 2001 From: rcoh Date: Fri, 18 Feb 2011 16:56:43 -0500 Subject: Adding Epydoc generated docs. --- ...ight.pixelmappers.WindGaussianMapper-pysrc.html | 131 +++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 html/SmootLight.pixelmappers.WindGaussianMapper-pysrc.html (limited to 'html/SmootLight.pixelmappers.WindGaussianMapper-pysrc.html') diff --git a/html/SmootLight.pixelmappers.WindGaussianMapper-pysrc.html b/html/SmootLight.pixelmappers.WindGaussianMapper-pysrc.html new file mode 100644 index 0000000..9d54b36 --- /dev/null +++ b/html/SmootLight.pixelmappers.WindGaussianMapper-pysrc.html @@ -0,0 +1,131 @@ + + + + + SmootLight.pixelmappers.WindGaussianMapper + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package SmootLight :: + Package pixelmappers :: + Module WindGaussianMapper + + + + + + +
[hide private]
[frames] | no frames]
+
+

Source Code for Module SmootLight.pixelmappers.WindGaussianMapper

+
+ 1  from operationscore.PixelMapper import * 
+ 2  import util.Geo as Geo 
+ 3  import math 
+
4 -class WindGaussianMapper(PixelMapper): +
5 - def mappingFunction(self, eventLocation, screen): +
6 returnPixels = [] #TODO: consider preallocation and trimming + 7 [x,y] = eventLocation + 8 potentialPixels = screen.pixelsInRange(x-self.CutoffDist, x) + 9 for (xloc,pixel) in screen.pixelsInRange(x-self.CutoffDist, x): +10 pixelDistx = math.fabs(pixel.location[0] - x) +11 pixelDisty = math.fabs(pixel.location[1] - y) +12 if pixelDistx < self.CutoffDist: +13 if pixelDisty < 30: +14 w = Geo.windtrail(pixelDistx, pixelDisty, self.Height, 0, self.Width) +15 if w > self.MinWeight: +16 returnPixels.append((pixel, w)) +17 +18 return returnPixels +
19 +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + -- cgit v1.2.3