Exemplo n.º 1
0
 /// <summary>
 ///Deserializes RobotDashboardState
 ///</summary>
 ///<param name="reader">the reader from which to deserialize</param>
 ///<returns>deserialized RobotDashboardState</returns>
 public virtual object Deserialize(System.IO.BinaryReader reader)
 {
     this._TiltAngle = reader.ReadDouble();
     if ((reader.ReadByte() != 0))
     {
         this._Options = ((global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions)(((Microsoft.Dss.Core.IDssSerializable)(new global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions())).Deserialize(reader)));
     }
     return(this);
 }
Exemplo n.º 2
0
 /// <summary>
 ///Copies the data member values of the current RobotDashboardState to the specified target object
 ///</summary>
 ///<param name="target">target object (must be an instance of)</param>
 public virtual void CopyTo(Microsoft.Dss.Core.IDssSerializable target)
 {
     global::Microsoft.Robotics.Services.RobotDashboard.Proxy.RobotDashboardState typedTarget = ((global::Microsoft.Robotics.Services.RobotDashboard.Proxy.RobotDashboardState)(target));
     typedTarget._TiltAngle = this._TiltAngle;
     if ((this._Options != null))
     {
         global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions tmp = new global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions();
         ((Microsoft.Dss.Core.IDssSerializable)(this._Options)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp)));
         typedTarget._Options = tmp;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 ///Copies the data member values of the current GUIOptions to the specified target object
 ///</summary>
 ///<param name="target">target object (must be an instance of)</param>
 public virtual void CopyTo(Microsoft.Dss.Core.IDssSerializable target)
 {
     global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions typedTarget = ((global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions)(target));
     typedTarget._WindowStartX         = this._WindowStartX;
     typedTarget._WindowStartY         = this._WindowStartY;
     typedTarget._DepthcamWindowStartX = this._DepthcamWindowStartX;
     typedTarget._DepthcamWindowStartY = this._DepthcamWindowStartY;
     typedTarget._DepthcamWindowWidth  = this._DepthcamWindowWidth;
     typedTarget._DepthcamWindowHeight = this._DepthcamWindowHeight;
     typedTarget._WebcamWindowStartX   = this._WebcamWindowStartX;
     typedTarget._WebcamWindowStartY   = this._WebcamWindowStartY;
     typedTarget._WebcamWindowWidth    = this._WebcamWindowWidth;
     typedTarget._WebcamWindowHeight   = this._WebcamWindowHeight;
     typedTarget._DeadZoneX            = this._DeadZoneX;
     typedTarget._DeadZoneY            = this._DeadZoneY;
     typedTarget._TranslateScaleFactor = this._TranslateScaleFactor;
     typedTarget._RotateScaleFactor    = this._RotateScaleFactor;
     typedTarget._CameraInterval       = this._CameraInterval;
 }
Exemplo n.º 4
0
 public static object Microsoft_Robotics_Services_RobotDashboard_GUIOptions_TO_Microsoft_Robotics_Services_RobotDashboard_Proxy_GUIOptions(object transformFrom)
 {
     global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions target = new global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions();
     global::Microsoft.Robotics.Services.RobotDashboard.GUIOptions       from   = ((global::Microsoft.Robotics.Services.RobotDashboard.GUIOptions)(transformFrom));
     target.WindowStartX         = from.WindowStartX;
     target.WindowStartY         = from.WindowStartY;
     target.DepthcamWindowStartX = from.DepthcamWindowStartX;
     target.DepthcamWindowStartY = from.DepthcamWindowStartY;
     target.DepthcamWindowWidth  = from.DepthcamWindowWidth;
     target.DepthcamWindowHeight = from.DepthcamWindowHeight;
     target.WebcamWindowStartX   = from.WebcamWindowStartX;
     target.WebcamWindowStartY   = from.WebcamWindowStartY;
     target.WebcamWindowWidth    = from.WebcamWindowWidth;
     target.WebcamWindowHeight   = from.WebcamWindowHeight;
     target.DeadZoneX            = from.DeadZoneX;
     target.DeadZoneY            = from.DeadZoneY;
     target.TranslateScaleFactor = from.TranslateScaleFactor;
     target.RotateScaleFactor    = from.RotateScaleFactor;
     target.CameraInterval       = from.CameraInterval;
     return(target);
 }
Exemplo n.º 5
0
 /// <summary>
 ///Clones GUIOptions
 ///</summary>
 ///<returns>cloned value</returns>
 public virtual object Clone()
 {
     global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions target0 = new global::Microsoft.Robotics.Services.RobotDashboard.Proxy.GUIOptions();
     this.CopyTo(target0);
     return(target0);
 }