|
|
|
@ -8,10 +8,6 @@ using LogicWorld.Outlines;
|
|
|
|
|
|
|
|
|
|
namespace CriticalPathAnalyzer.Client.Tool {
|
|
|
|
|
public class PathHighlighter {
|
|
|
|
|
private static readonly OutlineData Color = new OutlineData(new Color24(0xff0000));
|
|
|
|
|
private static readonly OutlineData NextColor = new OutlineData(new Color24(0xff00ff));
|
|
|
|
|
private static readonly OutlineData PerimeterColor = new OutlineData(new Color24(0xffff00));
|
|
|
|
|
|
|
|
|
|
private static List<ClusterDetails> _clusters = new List<ClusterDetails>();
|
|
|
|
|
private static List<ComponentAddress> _highlightedComponents = new List<ComponentAddress>();
|
|
|
|
|
private static List<WireAddress> _highlightedWires = new List<WireAddress>();
|
|
|
|
@ -20,7 +16,7 @@ namespace CriticalPathAnalyzer.Client.Tool {
|
|
|
|
|
_clusters = clusters;
|
|
|
|
|
|
|
|
|
|
foreach (ClusterDetails clusterDetails in _clusters) {
|
|
|
|
|
HighlightCluster(clusterDetails, Color);
|
|
|
|
|
HighlightCluster(clusterDetails);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IWorldData world = Instances.MainWorld.Data;
|
|
|
|
@ -40,7 +36,7 @@ namespace CriticalPathAnalyzer.Client.Tool {
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static void HighlightCluster(ClusterDetails cluster, OutlineData outlineOld) {
|
|
|
|
|
private static void HighlightCluster(ClusterDetails cluster) {
|
|
|
|
|
IWorldData world = Instances.MainWorld.Data;
|
|
|
|
|
|
|
|
|
|
var outline = new OutlineData(new Color24(cluster.Color));
|
|
|
|
|