def __init__(self, layer, rendererContext):
        QgsMapLayerRenderer.__init__(self, layer.id())
        self.layer = layer
        self.rendererContext = rendererContext

        self.mNodeProperties = rendererContext.mNodeProperties
        self.mEdgeProperties = rendererContext.mEdgeProperties
        self.layer_transparency = 255

        self.pr = GraphRules().rule_set
        self.attribute = QString("none")

        #Par défaut, il n'y a aucune attribut de noeud utilisé pour définir les propriétés de dessin
        self.pr.default_prop_value = QVariant(1)
        self.mNodeProperties["size"] = self.pr
        self.pr.default_prop_value = QColor(0, 0, 0, 255)
        self.mNodeProperties["fgcolor"] = self.pr
        self.pr.default_prop_value = QColor(255, 255, 255, 255)
        self.mNodeProperties["bgcolor"] = self.pr
        self.pr.default_prop_value = QVariant(1)
        self.mNodeProperties["linewidth"] = self.pr
        self.pr.default_prop_value = QVariant(QString(""))
        self.mNodeProperties["shape"] = self.pr

        #Par défaut, il n'y a aucune attribut d'arc utilisé pour définir les propriétés de dessin
        self.pr.default_prop_value = QVariant(1)
        self.mEdgeProperties["linestyle"] = self.pr
        self.pr.default_prop_value = QColor(0, 0, 0, 255)
        self.mEdgeProperties["fgcolor"] = self.pr
        self.pr.default_prop_value = QVariant(1)
        self.mEdgeProperties["linewidth"] = self.pr

        self.layer_transparency = 255
 def __init__(self, layer, context, webPage, layerType):
     """ Initialize the object. This function is still run in the GUI thread.
         Should refrain from doing any heavy work.
     """
     QgsMapLayerRenderer.__init__(self, layer.id())
     self.context = context
     self.controller = OpenlayersController(None, context, webPage,
                                            layerType)
     self.loop = None
 def __init__(self, layer, context, webPage, layerType):
     """ Initialize the object. This function is still run in the GUI thread.
         Should refrain from doing any heavy work.
     """
     QgsMapLayerRenderer.__init__(self, layer.id())
     self.context = context
     self.controller = OpenlayersController(None,
                                            context, webPage, layerType)
     self.loop = None
 def __init__(self, layer, rendererContext):
     QgsMapLayerRenderer.__init__(
         self, layer.id())
     self.layer = layer
     self.rendererContext = rendererContext
 def __init__(self, layer, rendererContext):
     QgsMapLayerRenderer.__init__(self, layer.id())
     self.layer = layer
     self.rendererContext = rendererContext