예제 #1
0
 def __init__(self, maxIterations = 50, spacing = .005, fill = False, *args, **keywordArgs):
     """ForceDirectedLayout(maxIterations = 50, spacing = .005, fill = False)
     
     """
     Layout.__init__(self, *args, **keywordArgs)
     
     self.maxIterations = maxIterations
     self.spacing = spacing
     self.fill = fill
예제 #2
0
 def __init__(self, nodeSpacing = None, objectPadding = 0.0, crossingPenalty = 5.0, turningPenalty = 5.0, allowDiagonalPaths = True, *args, **keywordArgs):
     Layout.__init__(self, *args, **keywordArgs)
     
     # TODO: determine these values automatically based on visible spacing and connection counts
     self.nodeSpacing = nodeSpacing
     self.objectPadding = objectPadding
     self.crossingPenalty = crossingPenalty
     self.turningPenalty = turningPenalty
     self.allowDiagonalPaths = allowDiagonalPaths
예제 #3
0
    def __init__(self,
                 maxIterations=50,
                 spacing=.005,
                 fill=False,
                 *args,
                 **keywordArgs):
        """ForceDirectedLayout(maxIterations = 50, spacing = .005, fill = False)
        
        """
        Layout.__init__(self, *args, **keywordArgs)

        self.maxIterations = maxIterations
        self.spacing = spacing
        self.fill = fill
예제 #4
0
    def __init__(self,
                 nodeSpacing=None,
                 objectPadding=0.0,
                 crossingPenalty=5.0,
                 turningPenalty=5.0,
                 allowDiagonalPaths=True,
                 *args,
                 **keywordArgs):
        Layout.__init__(self, *args, **keywordArgs)

        # TODO: determine these values automatically based on visible spacing and connection counts
        self.nodeSpacing = nodeSpacing
        self.objectPadding = objectPadding
        self.crossingPenalty = crossingPenalty
        self.turningPenalty = turningPenalty
        self.allowDiagonalPaths = allowDiagonalPaths
예제 #5
0
 def __init__(self, weightFunction = None, scaling = (1.0, 1.0, 1.0), autoScale = True, *args, **keywordArgs):
     Layout.__init__(self, *args, **keywordArgs)
 
     self.weightingFunction = weightFunction
     self.scaling = scaling
     self.autoScale = autoScale