You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
2.1 KiB
93 lines
2.1 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 02/04/2000
|
|
// Last modification: 08/10/2003
|
|
// Project Intruder Position Indicator
|
|
// SUBSYSTEM: Camera controls
|
|
// FILE: CameraDlg.h
|
|
// AUTHOR: Chizhevskiy Sergey
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of class CCameraDlg
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef __CAMERADLG__H__INCLUDED__
|
|
#define __CAMERADLG__H__INCLUDED__
|
|
|
|
#include "VideoWnd.h"
|
|
#include "CameraPtz.h"
|
|
#include "LogFiles.h"
|
|
#include "Locator.h"
|
|
//#include "Indicator.h"
|
|
#include "Structs.h"
|
|
#include "DialogItemsPosition.h"
|
|
|
|
enum {MANUAL, ROTATE_LEFT, ROTATE_RIGHT};
|
|
|
|
struct PTZ_CTRL
|
|
{
|
|
INT tiltSpeed;
|
|
INT panSpeed;
|
|
INT zoomSpeed;
|
|
INT rotate;
|
|
|
|
};
|
|
|
|
class CApplication;
|
|
|
|
class CCameraDlg
|
|
{
|
|
public:
|
|
CCameraDlg();
|
|
~CCameraDlg();
|
|
|
|
void SetDebugMode(BOOL fDebug) { m_bDebugMode = fDebug; }
|
|
|
|
void SetCameraAutoCheck(BOOL fCheck);
|
|
void SetIrisCheck(BOOL fDay);
|
|
void SetFenceCheck(BOOL fCheck);
|
|
void SetDoplerCheck(BOOL bOn);
|
|
void EnableCameraAuto(BOOL fEnable);
|
|
void EnableNavigate(BOOL fEnable);
|
|
BOOL Create(HWND hParentWnd, CApplication *pApplication, CCameraPtz *pPTZ, CLgsRadarWnd* pLocator, LPPOINT pPoint, LPSIZE pSize);
|
|
|
|
HWND GetSafeHwnd() const;
|
|
|
|
private:
|
|
void OnTimer();
|
|
LRESULT OnSize( WPARAM, LPARAM );
|
|
LRESULT OnMove( WPARAM, LPARAM );
|
|
LRESULT OnPaint( WPARAM, LPARAM );
|
|
LRESULT OnEraseBackground( WPARAM, LPARAM );
|
|
|
|
private:
|
|
void OnDraw( HDC );
|
|
|
|
private:
|
|
static BOOL CALLBACK WndProc_(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
|
|
|
|
private:
|
|
CApplication *m_pApplication;
|
|
CLgsRadarWnd *m_pLocator;
|
|
PTZ_CTRL m_ptzCtrl;
|
|
CCameraPtz *m_pPTZ;
|
|
HBITMAP m_hBitmap;
|
|
HBITMAP m_hBBitmaps[40];
|
|
BYTE m_CameraAddress;
|
|
HWND m_hWnd;
|
|
SIZE m_Size;
|
|
BOOL m_bDebugMode;
|
|
|
|
private:
|
|
CDialogItemsPosition m_DialogItemsPosition;
|
|
};
|
|
|
|
inline
|
|
HWND CCameraDlg::GetSafeHwnd() const
|
|
{
|
|
return m_hWnd;
|
|
}
|
|
|
|
|
|
#endif
|