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.
67 lines
2.0 KiB
67 lines
2.0 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgUICamera.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgUICamera.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __LG__UI__VIDEO__CAMERA__H__INCLUDED__
|
|
#define __LG__UI__VIDEO__CAMERA__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "..\LgLink.h"
|
|
#include "..\LgImageDIB.h"
|
|
|
|
class CLgUICameraEngine;
|
|
class CLgUICameraVideoWnd;
|
|
class CLgUICameraControlWnd;
|
|
|
|
class CLgUICamera :
|
|
public CLgLinkS<CLgUICamera,CLgUICameraEngine>,
|
|
public CLgLinkS<CLgUICamera,CLgUICameraVideoWnd>,
|
|
public CLgLinkS<CLgUICamera,CLgUICameraControlWnd>
|
|
{
|
|
public:
|
|
CLgUICamera();
|
|
virtual ~CLgUICamera();
|
|
|
|
public:
|
|
// perform camera movement
|
|
enum{ CAMERA_PAN_LEFT = 0x03, CAMERA_PAN_RIGHT = 0x02, CAMERA_PAN_STOP = 0x01, CAMERA_PAN_MASK = 0x03,
|
|
CAMERA_TILT_UP = 0x0C, CAMERA_TILT_DOWN = 0x08, CAMERA_TILT_STOP = 0x04, CAMERA_TILT_MASK = 0x0C,
|
|
CAMERA_ZOOM_TELE = 0x30, CAMERA_ZOOM_WIDE = 0x20, CAMERA_ZOOM_STOP = 0x10, CAMERA_ZOOM_MASK = 0x30 };
|
|
virtual BOOL UICameraMovePTZ( DWORD dwDirection ) = 0;
|
|
|
|
public:
|
|
// askuare video sample
|
|
virtual BOOL UICameraSampleGet() = 0;
|
|
|
|
public:
|
|
// notify about video control opening/closure
|
|
virtual void OnUICameraControl( BOOL bAvailible );
|
|
// notify about video stream opening/closure
|
|
virtual void OnUICameraVideo( BOOL bRun );
|
|
// notify about video stream sample
|
|
virtual void OnUICameraVideoSample( CLgImageDIB *pDIB );
|
|
|
|
public:
|
|
// notify about video camera PTZ control achieving/releasing
|
|
BOOL IsControlAvailible() { return m_bControlAvailible; }
|
|
|
|
public:
|
|
CLgUICameraVideoWnd *GetVideoWnd() { return *this; }
|
|
|
|
protected:
|
|
BOOL m_bControlAvailible;
|
|
};
|
|
|
|
#endif
|