代码拉取完成,页面将自动刷新
#ifndef NETCAMERACTL_H
#define NETCAMERACTL_H
#include <QObject>
#include <QDebug>
#include <QTimer>
#include "datadictionary.h"
#include "onvifptz.h"
#define RECONNECT_TIMEOUT (1500)
#define H_MIN_VALUE (-1)
#define H_MAX_VALUE (1)
#define H_MIN_ANGLE (-180)
#define H_MAX_ANGLE (180)
#define V_MIN_VALUE (-1)
#define V_MAX_VALUE (1)
#define V_MIN_ANGLE (-90)
#define V_MAX_ANGLE (0)
#define ZOOM_MIN_VALUE (0)
#define ZOOM_MAX_VALUE (1)
#define V_ALIGN_ANGLE (45)
#define CTL_MIN_STEP (0.01)
class NetCameraCtl : public QObject
{
Q_OBJECT
public:
explicit NetCameraCtl(QObject *parent = nullptr);
~NetCameraCtl();
void Init(QString Ip, QString Port, QString UserName, QString PassWord);
void Release();
signals:
public slots:
void MisDataChangeProcess(MisDataIndex_t);
void CameraCtlDataChangeProcess(CameraCtlIndex_t);
void SystemDataChangeProcess(SystemDataIndex_t index);
void Reconnect();
void GetCapabilitiesRes(bool Res);
void GetServicesRes(bool Res);
void GetProfilesRes(bool);
void MoveToRes(bool Res);
private:
void SetCamerHValue(double v);
void SetCamerVValue(double v);
void SetCamerZoomValue(double v);
private:
DataDictionary *m_DataDictionary;
QTimer *m_ReconnectTimer;
OnvifPTZ *m_OnvifPTZ;
bool m_ConnectedSta;
double m_CtlHMinAngle;
double m_CtlVMinAngle;
double m_ZoomMaxLimit;
double m_MaxDistance;
double m_ReqHValue;
double m_ReqVValue;
double m_ReqZoomValue;
double m_CurHValue;
double m_CurVValue;
double m_CurZoomValue;
QString m_Ip;
QString m_Port;
QString m_UserName;
QString m_PassWord;
bool m_PtzControl;
};
#endif // NETCAMERACTL_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。