Ejemplo n.º 1
0
 protected override void TargetNodesChanged()
 {
     if (TargetNodes.Any())
     {
         CheckForInvalidColorData();
     }
 }
Ejemplo n.º 2
0
 protected override void TargetNodesChanged()
 {
     if (TargetNodes.Any())
     {
         CheckForInvalidColorData();
         if (DepthOfEffect > TargetNodes.FirstOrDefault().GetMaxChildDepth() - 1)
         {
             DepthOfEffect = 0;
         }
     }
 }
Ejemplo n.º 3
0
 protected override void TargetNodesChanged()
 {
     if (TargetNodes.Any())
     {
         if (TargetNodes.Length > 1)
         {
             DepthOfEffect = 0;
         }
         else
         {
             CheckForInvalidColorData();
             var firstNode = TargetNodes.FirstOrDefault();
             if (firstNode != null && DepthOfEffect > firstNode.GetMaxChildDepth() - 1)
             {
                 DepthOfEffect = 0;
             }
         }
     }
     UpdateTargetingAttributes();
     TypeDescriptor.Refresh(this);
 }
Ejemplo n.º 4
0
 protected override bool IncludeNodeUsingDistances(GraphNode node)
 {
     // Find potential steiner points that are in reasonable vicinity.
     return(_maxEdgeDistance >= 0 && TargetNodes.Any(targetNode => Distances[targetNode, node] < _maxEdgeDistance));
 }