root/src/BRAINSFramework/Map/GridCell.cs

2023
48
        /// Type value of the Grid Cell.
48
        /// Type value of the Grid Cell.
49
        /// </summary>
49
        /// </summary>
50
        /// <remarks>1 = Empty, 0 = Blocked</remarks>
50
        /// <remarks>1 = Empty, 0 = Blocked</remarks>
51
        public int Type { get { return _type; } set { _type = value; } }
51
        public int Type 
52
        { 
53
            get { return _type; }
54
            set
55
            {
56
                _type = value;
57
                Labels[AIConsts.BLOCKED_TILE] = _type == 0 ? 1 : 0;
58
            }
59
        }
52
        
60
        
53
        /// <summary>
61
        /// <summary>
54
        /// The Parent Grid
62
        /// The Parent Grid
...
...
73
        {
81
        {
74
82
75
            Labels = new Dictionary<uint, int>();
83
            Labels = new Dictionary<uint, int>();
76
            Labels.Add(AIConsts.ISVALIDCLUSTEREDGE, 0);
84
            Labels.Add(AIConsts.BLOCKED_TILE, 0);
85
            Labels.Add(AIConsts.RESERVED, 0);
77
            Labels.Add(AIConsts.CLEARANCEVALUE,0);
86
            Labels.Add(AIConsts.CLEARANCEVALUE,0);
78
            Labels.Add(AIConsts.COLORR, 0);
87
            Labels.Add(AIConsts.COLORR, 0);
79
            Labels.Add(AIConsts.COLORG, 0);
88
            Labels.Add(AIConsts.COLORG, 0);