Esempio n. 1
0
 protected void SetTarget(MarkupPoint ignore = null)
 {
     TargetPoints.Clear();
     foreach (var enter in Tool.Markup.Enters)
     {
         TargetPoints.AddRange(GetTarget(enter, ignore));
     }
 }
Esempio n. 2
0
        private void SetTarget(MarkupPoint.PointType pointType = MarkupPoint.PointType.Enter, MarkupPoint ignore = null)
        {
            TargetPoints.Clear();
            foreach (var enter in EditMarkup.Enters)
            {
                if ((pointType & MarkupPoint.PointType.Enter) == MarkupPoint.PointType.Enter)
                {
                    SetEnterTarget(enter, ignore);
                }

                if ((pointType & MarkupPoint.PointType.Crosswalk) == MarkupPoint.PointType.Crosswalk)
                {
                    SetCrosswalkTarget(enter, ignore);
                }
            }
        }
Esempio n. 3
0
 private void Reset()
 {
     EditMarkup   = null;
     HoverNodeId  = 0;
     SelectNodeId = 0;
     HoverPoint   = null;
     SelectPoint  = null;
     TargetPoints.Clear();
     DragPoint = null;
     FillerPoints.Clear();
     FillerPointsSelector      = null;
     ToolMode                  = Mode.Node;
     cursorInfoLabel.isVisible = false;
     cursorInfoLabel.text      = string.Empty;
     Panel?.EndPanelAction();
     Panel?.Hide();
 }