Beispiel #1
0
    def createMark(self, xPosition, yPosition, *args):
        '''
        
        Create a mark at a point selected on the screen
        
        '''

        xTarget = xPosition / self.canvasScaleFactor
        yTarget = yPosition / self.canvasScaleFactor
        marker = PositionIndicator()
        marker.setPos(xTarget, yTarget, self.data.units)
        marker.color = (0, 1, 0)
        self.scatterInstance.add_widget(marker)
 def createMark(self, xPosition, yPosition, *args):
     '''
     
     Create a mark at a point selected on the screen
     
     '''
     
     if self.data.units == 'MM':
         scaleFactor = 1
     else:
         scaleFactor = 25.4
     
     xTarget = xPosition/scaleFactor
     yTarget = yPosition/scaleFactor
     marker = PositionIndicator()
     marker.setPos(xTarget, yTarget, self.data.units)
     marker.color = (0,1,0)
     self.scatterInstance.add_widget(marker)