Example #1
0
def SetDefaultBeamsStyle(layer, beam='DEFAULT'):
    ''' Beams Symbol'''
    style = S.getBeam(beam)
    symbol = layer.renderer().symbol()
    symbol.setColor(QColor.fromRgba(style['COLOR']))
    #symbol.setColor(QColor.fromRgb(255, 87, 51))
    #symbol.setWidth(1)
    return
Example #2
0
def SetDefaultBeamsStyle(layer, beam="DEFAULT"):
    """ Beams Symbol"""
    style = S.getBeam(beam)
    symbol = layer.renderer().symbol()
    symbol.setColor(QColor.fromRgba(style["COLOR"]))