예제 #1
0
        /// <summary>
        /// Gets the leveled layer or creates it if not available
        /// </summary>
        /// <param name="depth"></param>
        /// <returns></returns>
        public Layer GetLayer(int depth)
        {
            Layer l = LayerList.Find(layer => layer.Depth == depth);

            if (l == null)
            {
                l = AddLayer(depth);
            }
            return(l);
        }