# 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_circle import *
from qad_variables import *
from qad_msg import QadMsg
import math
import qad_utils
      circle1.set(self.center, self.radius)
      intPtList = circle1.getIntersectionPointsWithCircle(circle)
      for intPt in intPtList:
         if self.isPtOnArc(intPt):
            result.append(intPt)      
      return result


   #============================================================================
   # getIntersectionPointsWithArc
   #============================================================================
   def getIntersectionPointsWithArc(self, arc):
      result = []
      circle = QadCircle()
      circle.set(arc.center, arc.radius)
      intPtList = self.getIntersectionPointsWithCircle(circle)
      for intPt in intPtList:
         if arc.isPtOnArc(intPt):
            result.append(intPt)      
      return result

      
   #============================================================================
   # asPolyline
   #============================================================================
   def asPolyline(self, tolerance2ApproxCurve = None, atLeastNSegment = None):
      """
      ritorna una lista di punti che definisce l'arco
      """
      if tolerance2ApproxCurve is None:

# 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_arc.py
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from qgis.gui import *
from qad_circle import *
from qad_variables import *
from qad_msg import QadMsg
import math
import qad_utils

      circle1.set(self.center, self.radius)
      intPtList = circle1.getIntersectionPointsWithCircle(circle)
      for intPt in intPtList:
         if self.isPtOnArc(intPt):
            result.append(intPt)      
      return result


   #============================================================================
   # getIntersectionPointsWithArc
   #============================================================================
   def getIntersectionPointsWithArc(self, arc):
      result = []
      circle = QadCircle()
      circle.set(arc.center, arc.radius)
      intPtList = self.getIntersectionPointsWithCircle(circle)
      for intPt in intPtList:
         if arc.isPtOnArc(intPt):
            result.append(intPt)      
      return result

      
   #============================================================================
   # asPolyline
   #============================================================================
   def asPolyline(self, tolerance2ApproxCurve = None, atLeastNSegment = None):
      """
      ritorna una lista di punti che definisce l'arco
      """
      if tolerance2ApproxCurve is None:

         tolerance = QadVariables.get(QadMsg.translate("Environment variables", "TOLERANCE2APPROXCURVE"))