#NEWLINE# def set( self , linewidth = None , linecolor = None , roifill = None , shadow = None , dashtype = None , dashoffset = None ) : #NEWLINE# #INDENT# 'Fix all display properties for lines (paths) within each display element (usually ROIs)' #NEWLINE# if ( self . layer == 'multi_layer' ) : #NEWLINE# #INDENT# print ( 'Cannot set display properties for multi-layer ROIpack' ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( linewidth is not None ) : #NEWLINE# #INDENT# self . linewidth = linewidth #NEWLINE# #UNINDENT# if ( linecolor is not None ) : #NEWLINE# #INDENT# self . linecolor = linecolor #NEWLINE# #UNINDENT# if ( roifill is not None ) : #NEWLINE# #INDENT# self . roifill = roifill #NEWLINE# #UNINDENT# if ( shadow is not None ) : #NEWLINE# #INDENT# self . shadow = shadow #NEWLINE# self . svg . find ( ( '//{%s}feGaussianBlur' % svgns ) ) . attrib [ 'stdDeviation' ] = str ( linecolor ) #NEWLINE# #UNINDENT# if ( dashtype is not None ) : #NEWLINE# #INDENT# self . dashtype = dashtype #NEWLINE# #UNINDENT# if ( dashoffset is not None ) : #NEWLINE# #INDENT# self . dashoffset = dashoffset #NEWLINE# #UNINDENT# for roi in list ( self . rois . values ( ) ) : #NEWLINE# #INDENT# roi . set ( linewidth = self . linewidth , linecolor = self . linecolor , roifill = self . roifill , shadow = shadow , dashtype = dashtype , dashoffset = dashoffset ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# if ( self . callback is not None ) : #NEWLINE# #INDENT# self . callback ( ) #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# print ( 'cannot callback' )