#NEWLINE# def initScanLines( self ) : #NEWLINE# #INDENT# for scanLine in self . scanLines : #NEWLINE# #INDENT# scanLine . removeFromAllViews ( ) #NEWLINE# #UNINDENT# self . scanLines = [ ] #NEWLINE# self . nextScanLineId = 0 #NEWLINE# self . lastScanLine = max ( ( self . lastScanLine - self . numberOfScanLines ) , 0 ) #NEWLINE# for i in xrange ( self . numberOfScanLines ) : #NEWLINE# #INDENT# polyData = vtk . vtkPolyData ( ) #NEWLINE# scanLine = vis . PolyDataItem ( ( 'scan line %d' % i ) , polyData , self . view ) #NEWLINE# scanLine . actor . SetPickable ( 0 ) #NEWLINE# scanLine . setSolidColor ( ( 1 , 0 , 0 ) ) #NEWLINE# self . scanLines . append ( self )