예제 #1
0
 public static object Microsoft_Robotics_Services_Sample_ColorSegment_ColorArea_TO_Microsoft_Robotics_Services_Sample_ColorSegment_Proxy_ColorArea(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.ColorSegment.Proxy.ColorArea target = new global::Microsoft.Robotics.Services.Sample.ColorSegment.Proxy.ColorArea();
     global::Microsoft.Robotics.Services.Sample.ColorSegment.ColorArea       from   = ((global::Microsoft.Robotics.Services.Sample.ColorSegment.ColorArea)(transformFrom));
     target.Name    = from.Name;
     target.CenterX = from.CenterX;
     target.CenterY = from.CenterY;
     target.MinX    = from.MinX;
     target.MaxX    = from.MaxX;
     target.MinY    = from.MinY;
     target.MaxY    = from.MaxY;
     target.Area    = from.Area;
     return(target);
 }
예제 #2
0
 public static object Microsoft_Robotics_Services_Sample_ColorSegment_FoundColorAreas_TO_Microsoft_Robotics_Services_Sample_ColorSegment_Proxy_FoundColorAreas(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.ColorSegment.Proxy.FoundColorAreas target = new global::Microsoft.Robotics.Services.Sample.ColorSegment.Proxy.FoundColorAreas();
     global::Microsoft.Robotics.Services.Sample.ColorSegment.FoundColorAreas       from   = ((global::Microsoft.Robotics.Services.Sample.ColorSegment.FoundColorAreas)(transformFrom));
     target.TimeStamp = from.TimeStamp;
     global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.ColorSegment.ColorArea> tmp = from.Areas;
     if ((tmp != null))
     {
         int count = tmp.Count;
         global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.ColorSegment.Proxy.ColorArea> tmp0 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.ColorSegment.Proxy.ColorArea>(count);
         for (int index = 0; (index < count); index = (index + 1))
         {
             global::Microsoft.Robotics.Services.Sample.ColorSegment.Proxy.ColorArea tmp1 = default(global::Microsoft.Robotics.Services.Sample.ColorSegment.Proxy.ColorArea);
             global::Microsoft.Robotics.Services.Sample.ColorSegment.ColorArea       tmp2 = tmp[index];
             if ((tmp2 != null))
             {
                 tmp1 = ((global::Microsoft.Robotics.Services.Sample.ColorSegment.Proxy.ColorArea)(Microsoft_Robotics_Services_Sample_ColorSegment_ColorArea_TO_Microsoft_Robotics_Services_Sample_ColorSegment_Proxy_ColorArea(tmp2)));
             }
             tmp0.Add(tmp1);
         }
         target.Areas = tmp0;
     }
     return(target);
 }