public XsCalibratedData(XsCalibratedData other) : this(xsensdeviceapiPINVOKE.new_XsCalibratedData__SWIG_1(XsCalibratedData.getCPtr(other)), true) { if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending) { throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve(); } }
public void setCalibratedData(XsCalibratedData data) { xsensdeviceapiPINVOKE.XsDataPacket_setCalibratedData(swigCPtr, XsCalibratedData.getCPtr(data)); if (xsensdeviceapiPINVOKE.SWIGPendingException.Pending) { throw xsensdeviceapiPINVOKE.SWIGPendingException.Retrieve(); } }
void _callbackHandler_DataAvailable(object sender, DataAvailableArgs e) { if (InvokeRequired) { // Update UI, make sure this happens on the UI thread BeginInvoke(new Action(delegate { _callbackHandler_DataAvailable(sender, e); })); } else { //Getting Euler angles. XsEuler oriEuler = e.Packet.orientationEuler(); _connectedData._orientation = oriEuler; XsCalibratedData calData = e.Packet.calibratedData(); _connectedData._calibratedData = calData; } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(XsCalibratedData obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public XsCalibratedData calibratedData() { XsCalibratedData ret = new XsCalibratedData(xsensdeviceapiPINVOKE.XsDataPacket_calibratedData(swigCPtr), true); return(ret); }