示例#1
0
        public static IILayer GetNodeLayer(this IINode node)
        {
            int num = node.NumRefs;

            for (int i = 0; i < num; i++)
            {
                IILayer r = node.GetReference(i) as IILayer;
                if (r != null)
                {
                    return(r);
                }
            }
            return(null);
        }
示例#2
0
 /// <summary>
 /// Returns IILayer obect from provided IINode.
 /// </summary>
 /// <param name="node"></param>
 /// <returns></returns>
 public static IILayer GetLayer(IINode node)
 {
     return(node.GetReference(6) as IILayer);
 }
示例#3
0
   protected override TreeNode GetParentTreeNode(IINode node)
   {
      IILayer layer = node.GetReference((int)ReferenceNumbers.NodeLayerRef) as IILayer;
      if (layer == null)
         return null;

      return this.GetFirstTreeNode(layer);
   }