public string GetCalibrationPose() { StringBuilder sb = new StringBuilder(1024); UInt32 status = OpenNIImporter.xnGetSkeletonCalibrationPose(this.InternalObject, sb); WrapperUtils.CheckStatus(status); return sb.ToString(); }
public void AddNodeFromList(IEnumerator <NodeInfo> curr) { NodeInfoListEnumerator enumer = (NodeInfoListEnumerator)curr; UInt32 status = OpenNIImporter.xnNodeInfoListAddNodeFromList(this.InternalObject, enumer.InternalObject); WrapperUtils.CheckStatus(status); }
public void Remove(IEnumerator <NodeInfo> location) { NodeInfoListEnumerator enumer = (NodeInfoListEnumerator)location; UInt32 status = OpenNIImporter.xnNodeInfoListRemove(this.InternalObject, enumer.InternalObject); WrapperUtils.CheckStatus(status); }
public License[] EnumerateLicenses() { IntPtr pArray; uint size; UInt32 status = OpenNIImporter.xnEnumerateLicenses(this.InternalObject, out pArray, out size); WrapperUtils.CheckStatus(status); License[] result = null; try { result = new License[size]; IntPtr ptr = pArray; for (int i = 0; i < size; ++i) { result[i] = (License)Marshal.PtrToStructure(ptr, typeof(License)); ptr = (IntPtr)(ptr.ToInt64() + Marshal.SizeOf(typeof(License))); } } finally { OpenNIImporter.xnFreeLicensesList(pArray); } return(result); }
public void Add(ProductionNodeDescription description, string creationInfo, NodeInfoList neededNodes) { UInt32 status = OpenNIImporter.xnNodeInfoListAdd(this.InternalObject, description, creationInfo, neededNodes == null ? IntPtr.Zero : neededNodes.InternalObject); WrapperUtils.CheckStatus(status); }
public Point3D GetCoM(UserID id) { Point3D com = new Point3D(); UInt32 status = OpenNIImporter.xnGetUserCoM(this.InternalObject, id, out com); WrapperUtils.CheckStatus(status); return(com); }
public Point3D[] ConvertRealWorldToProjective(Point3D[] realWorldPoints) { Point3D[] projective = new Point3D[realWorldPoints.Length]; UInt32 status = OpenNIImporter.xnConvertRealWorldToProjective(this.InternalObject, (uint)realWorldPoints.Length, realWorldPoints, projective); WrapperUtils.CheckStatus(status); return(projective); }
private static IntPtr Create() { IntPtr pErrors; UInt32 status = OpenNIImporter.xnEnumerationErrorsAllocate(out pErrors); WrapperUtils.CheckStatus(status); return(pErrors); }
public FieldOfView GetFieldOfView() { FieldOfView fov = new FieldOfView(); UInt32 status = OpenNIImporter.xnGetDepthFieldOfView(this.InternalObject, ref fov); WrapperUtils.CheckStatus(status); return(fov); }
public LockHandle LockForChanges() { uint handle; UInt32 status = OpenNIImporter.xnLockNodeForChanges(this.InternalObject, out handle); WrapperUtils.CheckStatus(status); return(new LockHandle(handle)); }
public double GetRealProperty(string propName) { double value; UInt32 status = OpenNIImporter.xnGetRealProperty(this.InternalObject, propName, out value); WrapperUtils.CheckStatus(status); return(value); }
public UInt32 GetNumFrames(string nodeName) { UInt32 frames; UInt32 status = OpenNIImporter.xnGetPlayerNumFrames(this.InternalObject, nodeName, out frames); WrapperUtils.CheckStatus(status); return(frames); }
public UInt32 TellFrame(string nodeName) { UInt32 frame; UInt32 status = OpenNIImporter.xnTellPlayerFrame(this.InternalObject, nodeName, out frame); WrapperUtils.CheckStatus(status); return(frame); }
public UInt64 TellTimestamp() { UInt64 timestamp; UInt32 status = OpenNIImporter.xnTellPlayerTimestamp(this.InternalObject, out timestamp); WrapperUtils.CheckStatus(status); return(timestamp); }
public UInt32 DecodeData(IntPtr source, UInt32 sourceSize, IntPtr dest, UInt32 destSize) { UInt32 written; UInt32 status = OpenNIImporter.xnDecodeData(this.InternalObject, source, sourceSize, dest, destSize, out written); WrapperUtils.CheckStatus(status); return(written); }
public Point3D[] ConvertProjectiveToRealWorld(Point3D[] projectivePoints) { Point3D[] realWorld = new Point3D[projectivePoints.Length]; UInt32 status = OpenNIImporter.xnConvertProjectiveToRealWorld(this.InternalObject, (uint)projectivePoints.Length, projectivePoints, realWorld); WrapperUtils.CheckStatus(status); return(realWorld); }
private static IntPtr Create(Context context, CodecID codecID, ProductionNode initializer) { IntPtr nodeHandle; UInt32 status = OpenNIImporter.xnCreateCodec(context.InternalObject, codecID.InternalValue, initializer.InternalObject, out nodeHandle); WrapperUtils.CheckStatus(status); return(nodeHandle); }
public Cropping GetCropping() { Cropping cropping = new Cropping(); UInt32 status = OpenNIImporter.xnGetCropping(this.InternalObject, ref cropping); WrapperUtils.CheckStatus(status); return(cropping); }
public BoundingBox3D GetPosition(uint index) { BoundingBox3D pos = new BoundingBox3D(); UInt32 status = OpenNIImporter.xnGetUserPosition(this.InternalObject, index, ref pos); WrapperUtils.CheckStatus(status); return(pos); }
private static IntPtr Create(Context context, string name) { IntPtr handle; UInt32 status = OpenNIImporter.xnCreateMockNode(context.InternalObject, NodeType.IR, name, out handle); WrapperUtils.CheckStatus(status); return(handle); }
private static IntPtr Create(Context context, string formatName) { IntPtr nodeHandle; UInt32 status = OpenNIImporter.xnCreateRecorder(context.InternalObject, formatName, out nodeHandle); WrapperUtils.CheckStatus(status); return(nodeHandle); }
public WaveOutputMode GetWaveOutputMode() { WaveOutputMode mode = new WaveOutputMode(); UInt32 status = OpenNIImporter.xnGetWaveOutputMode(this.InternalObject, ref mode); WrapperUtils.CheckStatus(status); return(mode); }
private static IntPtr Init() { IntPtr pContext; UInt32 status = OpenNIImporter.xnInit(out pContext); WrapperUtils.CheckStatus(status); return(pContext); }
public ProductionNode GetProductionNodeByName(string name) { IntPtr nodeHandle; UInt32 status = OpenNIImporter.xnGetNodeHandleByName(this.InternalObject, name, out nodeHandle); WrapperUtils.CheckStatus(status); return(CreateProductionNodeObject(nodeHandle)); }
public ProductionNode FindExistingNode(NodeType type) { IntPtr nodeHandle; UInt32 status = OpenNIImporter.xnFindExistingNodeByType(this.InternalObject, type, out nodeHandle); WrapperUtils.CheckStatus(status); return(CreateProductionNodeObject(nodeHandle, type)); }
public NodeInfoList EnumerateExistingNodes(NodeType type) { IntPtr pList; UInt32 status = OpenNIImporter.xnEnumerateExistingNodesByType(this.InternalObject, type, out pList); WrapperUtils.CheckStatus(status); return(new NodeInfoList(pList)); }
public ProductionNode CreateProductionTree(NodeInfo nodeInfo) { IntPtr nodeHandle; UInt32 status = OpenNIImporter.xnCreateProductionTree(this.InternalObject, nodeInfo.InternalObject, out nodeHandle); WrapperUtils.CheckStatus(status); return(CreateProductionNodeObject(nodeHandle, nodeInfo.GetDescription().Type)); }
private static IntPtr CreateBasedOn(IRGenerator basedOn, string name) { IntPtr handle; UInt32 status = OpenNIImporter.xnCreateMockNodeBasedOn(basedOn.GetContext().InternalObject, basedOn.InternalObject, name, out handle); WrapperUtils.CheckStatus(status); return(handle); }
public string GetStringProperty(string propName) { const int size = 2048; StringBuilder sb = new StringBuilder(size); UInt32 status = OpenNIImporter.xnGetStringProperty(this.InternalObject, propName, sb, size); WrapperUtils.CheckStatus(status); return(sb.ToString()); }
public override string ToString() { const int size = 2048; StringBuilder sb = new StringBuilder(size); UInt32 status = OpenNIImporter.xnEnumerationErrorsToString(this.InternalObject, sb, size); WrapperUtils.CheckStatus(status); return(sb.ToString()); }