Ptz.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Ptz.h: interface for the CPtz class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_PTZ_H__3CBE7307_BC91_490C_91E9_B08535C6C7F4__INCLUDED_)
  5. #define AFX_PTZ_H__3CBE7307_BC91_490C_91E9_B08535C6C7F4__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "dhnetsdk.h"
  10. class CPtz
  11. {
  12. public:
  13. CPtz();
  14. virtual ~CPtz();
  15. public://interface
  16. bool SetPtzParam(LLONG lLoginID, int nChannel);//设置云台操作的登陆句柄和通道号。
  17. bool SetLoginID(LLONG lLoginID);
  18. bool SetChannel(int nChannel);
  19. bool PtzBasicControl(int nType, int nStep, bool bStop = false);//云台方向,镜头,光圈,调焦的控制
  20. bool PtzMenuControl(int nType);//云台菜单控制
  21. bool PtzFastGo(int nX, int nY, int nZoom);//三维定位控制
  22. bool PtzRotate(int nType);//水平旋转
  23. bool PtzAuxi(int nType, int nAuxi);//辅助功能
  24. bool PtzLineScan(int nType);//线性扫描
  25. bool PtzLoop(int nType, int nGroup, int nPresetData, bool bBeginLoop = false);//巡航
  26. bool PtzPreset(int nType, int nPresetData);//预制点
  27. bool PtzMode(int nType, int nGroup);//云台巡迹
  28. protected://data member
  29. LLONG m_lLoginID;//设备登陆句柄
  30. int m_nChannel;//控制通道
  31. protected://method member
  32. bool PtzControl(int nType, int nParam1, int nParam2, int nParam3, bool bStop = false);
  33. };
  34. #endif // !defined(AFX_PTZ_H__3CBE7307_BC91_490C_91E9_B08535C6C7F4__INCLUDED_)