コード例 #1
0
        /// <summary>
        /// Query Adjacencies/Connected Spaces from the specified adjacency cluster for Panels.
        /// </summary>
        /// <param name="adjacencyCluster">The adjacency cluster.</param>
        /// <param name="sAMObject">The s am object.</param>
        /// <returns name="adjacencies">Adjacencies for Panels</returns>
        /// <search>Adjacencies, adjacencies</search>
        public static IEnumerable <object> Adjacencies(SAM.Analytical.AdjacencyCluster adjacencyCluster, SAM.Core.SAMObject sAMObject)
        {
            if (sAMObject is SAM.Analytical.Panel)
            {
                return(adjacencyCluster.GetSpaces((SAM.Analytical.Panel)sAMObject));
            }

            if (sAMObject is Space)
            {
                return(adjacencyCluster.GetPanels((Space)sAMObject));
            }

            return(null);
        }
コード例 #2
0
 /// <summary>
 /// Query Panels the specified adjacency cluster.
 /// </summary>
 /// <param name="adjacencyCluster">The adjacency cluster.</param>
 /// <returns name="Panels">SAM Panels</returns>
 /// <search>Topologic, getpanels, GetPanels</search>
 public static IEnumerable <SAM.Analytical.Panel> Panels(SAM.Analytical.AdjacencyCluster adjacencyCluster)
 {
     return(adjacencyCluster.GetPanels());
 }