Beispiel #1
0
 public static object Microsoft_Robotics_PhysicalModel_Proxy_Vector2_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector20(object transformFrom)
 {
     global::Microsoft.Robotics.PhysicalModel.Proxy.Vector2 target = new global::Microsoft.Robotics.PhysicalModel.Proxy.Vector2();
     global::Microsoft.Robotics.PhysicalModel.Vector2       from   = ((global::Microsoft.Robotics.PhysicalModel.Vector2)(transformFrom));
     target.X = from.X;
     target.Y = from.Y;
     return(target);
 }
Beispiel #2
0
 public static object Microsoft_Robotics_Services_WebCam_Proxy_WebCamState_TO_Microsoft_Robotics_Services_WebCam_Proxy_WebCamState0(object transformFrom)
 {
     global::Microsoft.Robotics.Services.WebCam.Proxy.WebCamState target = new global::Microsoft.Robotics.Services.WebCam.Proxy.WebCamState();
     global::Microsoft.Robotics.Services.WebCam.WebCamState       from   = ((global::Microsoft.Robotics.Services.WebCam.WebCamState)(transformFrom));
     target.CameraDeviceName = from.CameraDeviceName;
     global::Microsoft.Robotics.PhysicalModel.Pose tmp = from.Pose;
     target.Pose = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Pose)(Microsoft_Robotics_PhysicalModel_Proxy_Pose_TO_Microsoft_Robotics_PhysicalModel_Proxy_Pose0(tmp)));
     global::Microsoft.Robotics.PhysicalModel.Vector2 tmp0 = from.ImageSize;
     target.ImageSize       = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector2)(Microsoft_Robotics_PhysicalModel_Proxy_Vector2_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector20(tmp0)));
     target.ViewAngle       = from.ViewAngle;
     target.Quality         = from.Quality;
     target.LastFrameUpdate = from.LastFrameUpdate;
     return(target);
 }
Beispiel #3
0
 public static object Microsoft_Robotics_Services_MultiDeviceWebCam_WebCamState_TO_Microsoft_Robotics_Services_MultiDeviceWebCam_Proxy_WebCamState(object transformFrom)
 {
     global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.WebCamState target = new global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.WebCamState();
     global::Microsoft.Robotics.Services.MultiDeviceWebCam.WebCamState       from   = ((global::Microsoft.Robotics.Services.MultiDeviceWebCam.WebCamState)(transformFrom));
     global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.MultiDeviceWebCam.CameraInstance> tmp = from.Cameras;
     if ((tmp != null))
     {
         int count = tmp.Count;
         global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance> tmp0 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance>(count);
         for (int index = 0; (index < count); index = (index + 1))
         {
             global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance tmp1 = default(global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance);
             global::Microsoft.Robotics.Services.MultiDeviceWebCam.CameraInstance       tmp2 = tmp[index];
             if ((tmp2 != null))
             {
                 tmp1 = ((global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance)(Microsoft_Robotics_Services_MultiDeviceWebCam_CameraInstance_TO_Microsoft_Robotics_Services_MultiDeviceWebCam_Proxy_CameraInstance(tmp2)));
             }
             tmp0.Add(tmp1);
         }
         target.Cameras = tmp0;
     }
     global::Microsoft.Robotics.Services.MultiDeviceWebCam.CameraInstance tmp3 = from.Selected;
     if ((tmp3 != null))
     {
         target.Selected = ((global::Microsoft.Robotics.Services.MultiDeviceWebCam.Proxy.CameraInstance)(Microsoft_Robotics_Services_MultiDeviceWebCam_CameraInstance_TO_Microsoft_Robotics_Services_MultiDeviceWebCam_Proxy_CameraInstance(tmp3)));
     }
     target.CaptureFile      = from.CaptureFile;
     target.FramesOnDemand   = from.FramesOnDemand;
     target.CameraDeviceName = from.CameraDeviceName;
     global::Microsoft.Robotics.PhysicalModel.Pose tmp4 = from.Pose;
     target.Pose = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Pose)(Microsoft_Robotics_PhysicalModel_Proxy_Pose_TO_Microsoft_Robotics_PhysicalModel_Proxy_Pose0(tmp4)));
     global::Microsoft.Robotics.PhysicalModel.Vector2 tmp5 = from.ImageSize;
     target.ImageSize       = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector2)(Microsoft_Robotics_PhysicalModel_Proxy_Vector2_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector20(tmp5)));
     target.ViewAngle       = from.ViewAngle;
     target.Quality         = from.Quality;
     target.LastFrameUpdate = from.LastFrameUpdate;
     return(target);
 }