| | |
| | | /// <param name="szModuleType">模块名, char* szModuleType</param> |
| | | /// <param name="szSerialNumber">序列号, char* szSerialNumber</param> |
| | | /// <returns>获取失败返回-1,否则返回0。</returns> |
| | | [DllImport("PHM6000API", CallingConvention = CallingConvention.StdCall, EntryPoint = "GetCameraInformation")] |
| | | public static extern int GetCameraInformation(IntPtr pHandle, int nIndex, IntPtr szModuleType, IntPtr szSerialNumber); |
| | | //[DllImport("PHM6000API", CallingConvention = CallingConvention.StdCall, EntryPoint = "GetCameraInformation")] |
| | | //public static extern int GetCameraInformation(IntPtr pHandle, int nIndex, IntPtr szModuleType, IntPtr szSerialNumber); |
| | | //PHM6000_API(int) GetCameraInformation(void* pHandle, int nIndex, char* szModuleType, char* szSerialNumber); |
| | | /// <summary> |
| | | /// 获取照相机信息 |
| | |
| | | /// <param name="szAddress">IP地址字符串, char* szAddress</param> |
| | | /// <param name="nPort">端口号, int* nPort</param> |
| | | /// <returns>获取失败返回-1,否则返回0。</returns> |
| | | [DllImport("PHM6000API", CallingConvention = CallingConvention.StdCall, EntryPoint = "GetCameraAddress")] |
| | | public static extern int GetCameraAddress(IntPtr pHandle, int nIndex, IntPtr szAddress, IntPtr nPort); |
| | | //[DllImport("PHM6000API", CallingConvention = CallingConvention.StdCall, EntryPoint = "GetCameraAddress")] |
| | | //public static extern int GetCameraAddress(IntPtr pHandle, int nIndex, IntPtr szAddress, IntPtr nPort); |
| | | //PHM6000_API(int) GetCameraAddress(void* pHandle, int nIndex, char* szAddress, int* nPort); |
| | | /// <summary> |
| | | /// 得到连接的IP |
| | |
| | | /// <param name="KeepImageSize">图像大小是否保持</param> |
| | | [DllImport("PHM6000API", CallingConvention = CallingConvention.StdCall, EntryPoint = "SetTransformParameter")] |
| | | public static extern void SetTransformParameter(IntPtr pHandle, float fAngle, int xOffset, int yOffset, int hMirror, int vMirror, int KeepImageSize = 0); |
| | | |
| | | #region PointCloud3D Functions |
| | | |
| | | [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "AddZAPoints")] |
| | | public static extern int AddZAPoints(IntPtr pInstance, IntPtr points, int nCount, float fStepX, float fStepY, int nDownSample); |
| | | |
| | | [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "ClearPCLPoints")] |
| | | public static extern int ClearPCLPoints(IntPtr pInstance); |
| | | |
| | | [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "GetPointCloudBound")] |
| | | public static extern int GetPointCloudBound(IntPtr pInstance, ref double pMin, ref double pMax); |
| | | |
| | | [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "RenderPCLWindow")] |
| | | public static extern void RenderPCLWindow(IntPtr pInstance, int nWidth, int nHeight); |
| | | |
| | | [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "SetLookUpTableRange")] |
| | | public static extern void SetLookUpTableRange(IntPtr pInstance, double fMin, double fMax); |
| | | |
| | | [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "ShowCubeAxes")] |
| | | public static extern void ShowCubeAxes(IntPtr pInstance, int bInit); |
| | | |
| | | [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "ShowLookUpTable")] |
| | | public static extern void ShowLookUpTable(IntPtr pInstance, double x, double y, double xWide, double yWide); |
| | | |
| | | [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "UpdatePCLPointColors")] |
| | | public static extern int UpdatePCLPointColors(IntPtr pInstance, string szColoring); |
| | | |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 将结构体指针转换为double(模拟C++的(double)(int64)&操作) |
| | | /// </summary> |