# Path: qad_rubberband.py
# def createRubberBand(mapCanvas, geometryType = QGis.Line, alternativeBand = False, borderColor = None, fillColor = None):
#    """
#    la funzione crea un rubber band di tipo <geometryType> con le impostazioni di QGIS.
#    Se <alternativeBand> = True, il rubber band sarà impostato con più trasparenza e tipolinea punteggiato   
#    """
#    settings = QSettings()
#    width = int(settings.value( "/qgis/digitizing/line_width", 1))
# 
#    rb = QgsRubberBand(mapCanvas, geometryType)
#    
#    if alternativeBand:
#       rb.setLineStyle(Qt.DotLine)
# 
#    if borderColor is None:
#       borderColor = getQGISColorForRubberBand(geometryType, alternativeBand)
#    rb.setBorderColor(borderColor)
# 
#    if fillColor is None:
#       rb.setFillColor(borderColor)
#    else:
#       rb.setFillColor(fillColor)
# 
#    rb.setWidth(width)
#    
#    return rb
# 
# Path: qad_msg.py
# class QadMsgClass():
#    def __init__(self):
#    def translate(self, context, sourceText, disambiguation = None, encoding = QCoreApplication.UnicodeUTF8, n = -1):
# def qadShowPluginHelp(section = "", filename = "index", packageName = None):


from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from qgis.gui import *
from qad_snapper import *
from qad_vertexmarker import *
from qad_rubberband import createRubberBand
from qad_msg import QadMsg
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
"""






class QadSnapPointsDisplayManager():
   """
   Classe che gestisce la visualizzazione dei punti di snap
   """

   
   #============================================================================
   # __init__
   #============================================================================
   def __init__(self, mapCanvas):
      self.__mapCanvas = mapCanvas
      self.__vertexMarkers = [] # lista dei marcatori puntuali visualizzati
      self.__startPoint = QgsPoint()  

# Path: qad_rubberband.py
# def createRubberBand(mapCanvas, geometryType = QGis.Line, alternativeBand = False, borderColor = None, fillColor = None):
#    """
#    la funzione crea un rubber band di tipo <geometryType> con le impostazioni di QGIS.
#    Se <alternativeBand> = True, il rubber band sarà impostato con più trasparenza e tipolinea punteggiato   
#    """
#    settings = QSettings()
#    width = int(settings.value( "/qgis/digitizing/line_width", 1))
# 
#    rb = QgsRubberBand(mapCanvas, geometryType)
#    
#    if alternativeBand:
#       rb.setLineStyle(Qt.DotLine)
# 
#    if borderColor is None:
#       borderColor = getQGISColorForRubberBand(geometryType, alternativeBand)
#    rb.setBorderColor(borderColor)
# 
#    if fillColor is None:
#       rb.setFillColor(borderColor)
#    else:
#       rb.setFillColor(fillColor)
# 
#    rb.setWidth(width)
#    
#    return rb
# 
# Path: qad_msg.py
# class QadMsgClass():
#    def __init__(self):
#    def translate(self, context, sourceText, disambiguation = None, encoding = QCoreApplication.UnicodeUTF8, n = -1):
# def qadShowPluginHelp(section = "", filename = "index", packageName = None):


# Path: qad_snappointsdisplaymanager.py
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from qgis.gui import *
from qad_snapper import *
from qad_vertexmarker import *
from qad_rubberband import createRubberBand
from qad_msg import QadMsg

 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
"""






class QadSnapPointsDisplayManager():
   """
   Classe che gestisce la visualizzazione dei punti di snap
   """

   
   #============================================================================
   # __init__
   #============================================================================
   def __init__(self, mapCanvas):
      self.__mapCanvas = mapCanvas
      self.__vertexMarkers = [] # lista dei marcatori puntuali visualizzati
      self.__startPoint = QgsPoint()  

      self.__iconSize = QadVariables.get(QadMsg.translate("Environment variables", "AUTOSNAPSIZE"))