Exemplo n.º 1
0
        public virtual int MapCameraPointToDepthSpace(
            _CameraSpacePoint cameraPoint,
            out _DepthSpacePoint depthPoint
            )
        {
            var fp = GetFunctionPointer(6);

            if (m_MapCameraPointToDepthSpaceFunc == null)
            {
                m_MapCameraPointToDepthSpaceFunc = (MapCameraPointToDepthSpaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapCameraPointToDepthSpaceFunc));
            }

            return(m_MapCameraPointToDepthSpaceFunc(m_ptr, cameraPoint, out depthPoint));
        }
Exemplo n.º 2
0
        public virtual int MapDepthPointToColorSpace(
            _DepthSpacePoint depthPoint,
            ushort depth,
            out _ColorSpacePoint colorPoint
            )
        {
            var fp = GetFunctionPointer(9);

            if (m_MapDepthPointToColorSpaceFunc == null)
            {
                m_MapDepthPointToColorSpaceFunc = (MapDepthPointToColorSpaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapDepthPointToColorSpaceFunc));
            }

            return(m_MapDepthPointToColorSpaceFunc(m_ptr, depthPoint, depth, out colorPoint));
        }
Exemplo n.º 3
0
        public virtual int MapColorFrameToDepthSpace(
            uint depthDataPointCount,
            ref ushort depthFrameData,
            uint depthPointCount,
            out _DepthSpacePoint depthSpacePoints
            )
        {
            var fp = GetFunctionPointer(16);

            if (m_MapColorFrameToDepthSpaceFunc == null)
            {
                m_MapColorFrameToDepthSpaceFunc = (MapColorFrameToDepthSpaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapColorFrameToDepthSpaceFunc));
            }

            return(m_MapColorFrameToDepthSpaceFunc(m_ptr, depthDataPointCount, ref depthFrameData, depthPointCount, out depthSpacePoints));
        }
Exemplo n.º 4
0
        public virtual int MapCameraPointsToDepthSpace(
            uint cameraPointCount,
            ref _CameraSpacePoint cameraPoints,
            uint depthPointCount,
            out _DepthSpacePoint depthPoints
            )
        {
            var fp = GetFunctionPointer(10);

            if (m_MapCameraPointsToDepthSpaceFunc == null)
            {
                m_MapCameraPointsToDepthSpaceFunc = (MapCameraPointsToDepthSpaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapCameraPointsToDepthSpaceFunc));
            }

            return(m_MapCameraPointsToDepthSpaceFunc(m_ptr, cameraPointCount, ref cameraPoints, depthPointCount, out depthPoints));
        }
Exemplo n.º 5
0
        public virtual int MapDepthPointsToColorSpace(
            uint depthPointCount,
            ref _DepthSpacePoint depthPoints,
            uint depthCount,
            ref ushort depths,
            uint colorPointCount,
            out _ColorSpacePoint colorPoints
            )
        {
            var fp = GetFunctionPointer(13);

            if (m_MapDepthPointsToColorSpaceFunc == null)
            {
                m_MapDepthPointsToColorSpaceFunc = (MapDepthPointsToColorSpaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapDepthPointsToColorSpaceFunc));
            }

            return(m_MapDepthPointsToColorSpaceFunc(m_ptr, depthPointCount, ref depthPoints, depthCount, ref depths, colorPointCount, out colorPoints));
        }