1 Star 0 Fork 0

qinxude/rk3568ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
netcameractl.h 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
qinxude 提交于 2024-09-03 09:38 . 3568ui base
#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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qinxude/rk3568ui.git
[email protected]:qinxude/rk3568ui.git
qinxude
rk3568ui
rk3568ui
master

搜索帮助