public override void Activate(VrSession session) { var stn = Station.ActiveStation; if (stn == null) { return; } _detector = new PathObjectDetector(stn); var tasks = stn.Irc5Controllers.SelectMany(t => t.Tasks).ToList(); tasks.Add(stn.DefaultTask); foreach (var task in tasks) { foreach (RsPathProcedure p in task.PathProcedures) { if (p.ZoneVisualization != ZoneVisualization.Programmed) { p.ZoneVisualization = ZoneVisualization.Programmed; // actual? _restoreShowZones.Add(p); } } } }
public override void Activate(VrSession session) { _detector = new PathObjectDetector(Station.ActiveStation); }
public override void Deactivate(VrSession session) { _objectDetector = null; }