# Path: qad_highlight.py
# class QadHighlight():
#    def __init__(self, mapCanvas, borderColor = None, fillColor = None):
#       self.mapCanvas = mapCanvas
#       self.__highlight = []
# 
#    def __del__(self):
#       self.reset()
#       
#       for highlight in self.__highlight:
#          self.mapCanvas.scene().removeItem(highlight)
# 
#       del self.__highlight[:]
#    
#    def hide(self):
#       for highlight in self.__highlight:
#          highlight.hide()
# 
#    def show(self):
#       for highlight in self.__highlight:
#          highlight.show()
#       
#    def addGeometry(self, geom, layer, borderColor = None, fillColor = None):
#       highlight = createHighlight(self.mapCanvas, geom, layer, borderColor, fillColor)
#       highlight.show()
#       self.__highlight.append(highlight)
# 
#    def addGeometries(self, geoms, layer, borderColor = None, fillColor = None):
#       for g in geoms:
#          self.addGeometry(g, layer, borderColor, fillColor)         
#          
#    def reset(self):
#       self.hide()
#       for highlight in self.__highlight:
#          self.mapCanvas.scene().removeItem(highlight)
#       del self.__highlight[:]


from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from qgis.gui import *
from qad_snapper import *
from qad_snappointsdisplaymanager import *
from qad_variables import *
from qad_getpoint import *
from qad_highlight import QadHighlight
from qad_dim import *
from qad_entity import *
import math
import qad_utils
 *                                                                         *
 ***************************************************************************/
"""






#===============================================================================
# Qad_copy_maptool_ModeEnum class.
#===============================================================================
class Qad_copy_maptool_ModeEnum():
   # noto niente si richiede il punto base
   NONE_KNOWN_ASK_FOR_BASE_PT = 1     
   # noto il punto base si richiede il secondo punto per la copia
   BASE_PT_KNOWN_ASK_FOR_COPY_PT = 2     

#===============================================================================
# Qad_copy_maptool class
#===============================================================================
class Qad_copy_maptool(QadGetPoint):
    
   def __init__(self, plugIn):
      QadGetPoint.__init__(self, plugIn)
                        
      self.basePt = None
      self.entitySet = QadEntitySet()
      self.seriesLen = 0
      self.adjust = False

# Path: qad_highlight.py
# class QadHighlight():
#    def __init__(self, mapCanvas, borderColor = None, fillColor = None):
#       self.mapCanvas = mapCanvas
#       self.__highlight = []
# 
#    def __del__(self):
#       self.reset()
#       
#       for highlight in self.__highlight:
#          self.mapCanvas.scene().removeItem(highlight)
# 
#       del self.__highlight[:]
#    
#    def hide(self):
#       for highlight in self.__highlight:
#          highlight.hide()
# 
#    def show(self):
#       for highlight in self.__highlight:
#          highlight.show()
#       
#    def addGeometry(self, geom, layer, borderColor = None, fillColor = None):
#       highlight = createHighlight(self.mapCanvas, geom, layer, borderColor, fillColor)
#       highlight.show()
#       self.__highlight.append(highlight)
# 
#    def addGeometries(self, geoms, layer, borderColor = None, fillColor = None):
#       for g in geoms:
#          self.addGeometry(g, layer, borderColor, fillColor)         
#          
#    def reset(self):
#       self.hide()
#       for highlight in self.__highlight:
#          self.mapCanvas.scene().removeItem(highlight)
#       del self.__highlight[:]


# Path: qad_copy_maptool.py
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from qgis.gui import *
from qad_snapper import *
from qad_snappointsdisplaymanager import *
from qad_variables import *
from qad_getpoint import *
from qad_highlight import QadHighlight
from qad_dim import *
from qad_entity import *
import math
import qad_utils

 *                                                                         *
 ***************************************************************************/
"""






#===============================================================================
# Qad_copy_maptool_ModeEnum class.
#===============================================================================
class Qad_copy_maptool_ModeEnum():
   # noto niente si richiede il punto base
   NONE_KNOWN_ASK_FOR_BASE_PT = 1     
   # noto il punto base si richiede il secondo punto per la copia
   BASE_PT_KNOWN_ASK_FOR_COPY_PT = 2     

#===============================================================================
# Qad_copy_maptool class
#===============================================================================
class Qad_copy_maptool(QadGetPoint):
    
   def __init__(self, plugIn):
      QadGetPoint.__init__(self, plugIn)
                        
      self.basePt = None
      self.entitySet = QadEntitySet()
      self.seriesLen = 0
      self.adjust = False

      self.__highlight = QadHighlight(self.canvas)