예제 #1
0
 protected override void TargetNodesChanged()
 {
     if (TargetNodes.Any())
     {
         CheckForInvalidColorData();
     }
 }
예제 #2
0
파일: Chase.cs 프로젝트: thorhs/vixen
 protected override void TargetNodesChanged()
 {
     if (TargetNodes.Any())
     {
         CheckForInvalidColorData();
         if (DepthOfEffect > TargetNodes.FirstOrDefault().GetMaxChildDepth() - 1)
         {
             DepthOfEffect = 0;
         }
     }
 }
예제 #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);
 }
예제 #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));
 }