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.
75 lines
1.8 KiB
75 lines
1.8 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: CameraPositionWnd.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of CameraPositionWnd.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __CAMERA__POSITION__WND__H__INCLUDED__
|
|
#define __CAMERA__POSITION__WND__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "..\LgLib\MFC\MemoryDC.h"
|
|
|
|
class CCameraPositionWnd : public CWnd
|
|
{
|
|
// Construction
|
|
public:
|
|
CCameraPositionWnd();
|
|
|
|
// Attributes
|
|
public:
|
|
|
|
// Operations
|
|
public:
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CCameraPositionWnd)
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
void SetPosition( double pan, double tilt, double zoom, BOOL bSynch );
|
|
void OnDraw( CDC *pDC );
|
|
virtual ~CCameraPositionWnd();
|
|
BOOL Create( CWnd* pParentWnd, CRect &rect );
|
|
|
|
// Generated message map functions
|
|
protected:
|
|
//{{AFX_MSG(CCameraPositionWnd)
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
private:
|
|
typedef struct PTZ
|
|
{
|
|
double dPan;
|
|
double dTilt;
|
|
double dZoom;
|
|
}PTZ, *PPTZ;
|
|
|
|
private:
|
|
PTZ m_PTZ;
|
|
BOOL m_bSynchronized;
|
|
private:
|
|
CLgMemoryDC m_MemoryDC;
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_CAMERAPOSITIONWND_H__E025BFAE_C578_4D0D_B404_00E889711573__INCLUDED_)
|