示例#1
0
        private void DrawPathDetails(RadiationLink lnk)
        {
            GUILayout.BeginVertical();
            int n = 1;

            foreach (AttenuationZone z in lnk.Path)
            {
                GUILayout.Label(n.ToString() + ". " + z.ToString(), textDescriptorStyle);
                n++;
            }
            GUILayout.EndVertical();
        }
示例#2
0
        void DrawLink(RadiationLink lnk)
        {
            GUILayout.BeginVertical();
            GUILayout.BeginHorizontal(groupStyle);
            GUILayout.BeginVertical();
            GUILayout.Label("<b>" + lnk.source.SourceID + "->" + lnk.sink.SinkID + "</b>", textHeaderStyle);
            GUILayout.Label("I: " + lnk.fluxEndScale.ToString(), textDescriptorStyle);
            GUILayout.EndVertical();
            GUILayout.BeginVertical();
            GUILayout.Label("nZones: " + lnk.ZoneCount.ToString(), textDescriptorStyle);
            GUILayout.Label("nOcclu: " + lnk.OccluderCount.ToString(), textDescriptorStyle);
            GUILayout.EndVertical();
            DrawPathDetails(lnk);
            GUILayout.EndHorizontal();

            GUILayout.EndVertical();
        }
 private void DrawPathDetails(RadiationLink lnk)
 {
     GUILayout.BeginVertical();
     int n = 1;
     foreach (AttenuationZone z in lnk.Path)
     {
     GUILayout.Label(n.ToString() + ". " + z.ToString(), textDescriptorStyle);
     n++;
     }
     GUILayout.EndVertical();
 }
        void DrawLink(RadiationLink lnk)
        {
            GUILayout.BeginVertical();
            GUILayout.BeginHorizontal(groupStyle);
            GUILayout.BeginVertical();
            GUILayout.Label("<b>" +lnk.source.SourceID + "->" + lnk.sink.SinkID + "</b>", textHeaderStyle);
            GUILayout.Label("I: " + lnk.fluxEndScale.ToString(), textDescriptorStyle);
            GUILayout.EndVertical();
            GUILayout.BeginVertical();
            GUILayout.Label("nZones: " + lnk.ZoneCount.ToString(), textDescriptorStyle);
            GUILayout.Label("nOcclu: " + lnk.OccluderCount.ToString(),textDescriptorStyle);
            GUILayout.EndVertical();
            DrawPathDetails(lnk);
            GUILayout.EndHorizontal();

            GUILayout.EndVertical();
        }