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. --- ...tLight.operationscore.PixelAssembler-pysrc.html | 151 +++++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 html/SmootLight.operationscore.PixelAssembler-pysrc.html (limited to 'html/SmootLight.operationscore.PixelAssembler-pysrc.html') diff --git a/html/SmootLight.operationscore.PixelAssembler-pysrc.html b/html/SmootLight.operationscore.PixelAssembler-pysrc.html new file mode 100644 index 0000000..b025ba0 --- /dev/null +++ b/html/SmootLight.operationscore.PixelAssembler-pysrc.html @@ -0,0 +1,151 @@ + + + + + SmootLight.operationscore.PixelAssembler + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package SmootLight :: + Package operationscore :: + Module PixelAssembler + + + + + + +
[hide private]
[frames] | no frames]
+
+

Source Code for Module SmootLight.operationscore.PixelAssembler

+
+ 1  from operationscore.SmootCoreObject import * 
+ 2  import util.Geo as Geo 
+ 3  import pdb 
+
4 -class PixelAssembler(SmootCoreObject): +
5 - def init(self): +
6 self.validateArgs('PixelAssembler.params') + 7 self.initLayout() +
8 - def layoutFunc(self, lastLocation): #Must be defined by inheriting class. +
9 #Returns tuple pair (x,y) +10 pass +
11 - def getPixelLocations(self): #returns a complete list of locations of Pixels +
12 #for a strip +13 locations = [self.argDict['originLocation']] +14 for pixelIndex in range(self['numPixels']-1): #-1 because origin +15 #already exists +16 newLocation = self.layoutFunc(locations[-1]) +17 if newLocation == None: +18 raise Exception('Location cannot be null. layoutFunc not \ +19 defined or improperly defined.') +20 if Geo.dist(newLocation, locations[-1]) > \ +21 self['pixelToPixelSpacing']: +22 raise Exception('Illegal pixel location. Distance \ +23 between adjacent pixels must be less than \ +24 pixelToPixelSpacing. Illegal distance is between '+str(pixelIndex) + ' and'\ +25 + str(pixelIndex+1)) +26 locations.append(newLocation) +27 if self['Reverse']: +28 locations.reverse() +29 return locations +
30 - def initLayout(self): +
31 pass +
32 - def getStripArgs(self): #TODO: triage and remove +
33 return self.argDict +34 +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + -- cgit v1.2.3