Example #1
0
        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);
                    }
                }
            }
        }
Example #2
0
 public override void Activate(VrSession session)
 {
     _detector = new PathObjectDetector(Station.ActiveStation);
 }
Example #3
0
 public override void Deactivate(VrSession session)
 {
     _objectDetector = null;
 }