//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 09/04/2000 // Last modification: 08/10/2003 // Project Intruder Position Indicator // SUBSYSTEM: Locator // FILE: Locator.h // AUTHOR: Chizhevskiy Sergey // OVERVIEW // ~~~~~~~~ // Header file of class CLocator //---------------------------------------------------------------------------- #ifndef __LOCATOR__H__INCLUDED__ #define __LOCATOR__H__INCLUDED__ #include "Structs.h" #include "Profile.h" #include "Polygon.h" #include "LgsRadar.h" // #define CLocator CLgsRadar /* class CLocator { public: CLocator(); ~CLocator(); public: bool ZoneChanged(); void LoadBitmaps(CProfile *pProfile); void SetDebugMode(bool fDebug); void SetEditType(INT nType); void SetEditorMode(bool fEditor); HWND GetSafeHwnd() const; bool HasScale(INT n) const; void SetScale(INT n); bool Show(bool bShow) const; bool StoreImage( LPCTSTR pPathName ); void Reset(); bool Create(HWND hWnd, CProfile *pProfile, CPolygons *pPolygons, LPPOINT pPoint = NULL, LPSIZE pSize = NULL); void AddTarget(const TARGET_DESCRIPTION& td); void DrawFixedVideo( HDC hDC, RECT& rect, double scale ); public: HBITMAP GetBitmap() { return m_hBitmap; } private: LRESULT OnMouseMove(POINT& pt); LRESULT OnLButtonDown(POINT pt); LRESULT OnRButtonDown(POINT pt); void DrawNorth(); public: void DrawProgress( LPCTSTR pText, INT nSize ); HWND GetSafeHwnd() { return m_hWnd; } HWND GetIconSafeHwnd() { return m_hIconWnd; } private: double m_Scale; double m_Range; POINT m_OldEditPoint; SIZE m_Size; CPolygons* m_pPolygons; CPolygon* m_pCurPolygon; HCURSOR m_hCursorNormal; HCURSOR m_hCursorEdit; HBITMAP m_hBitmap; HBITMAP m_hBitmapScales[3]; HBITMAP m_hBitmapScalesOld; HFONT m_hFont; HDC m_hMemDC1; HDC m_hMemDC2; HWND m_hWnd; INT m_North; INT m_Type; bool m_bDebugMode; bool m_bEditorMode; bool m_bChanged; CProfile *m_pProfile; private: static LRESULT CALLBACK WndProc_(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); protected: LRESULT OnWmSize( HWND, WPARAM, LPSIZE ); LRESULT OnWmPaint( HWND, HDC ); LRESULT OnWmCreate( HWND, LPCREATESTRUCT ); LRESULT WndProc( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam ); private: HWND m_hIconWnd; }; inline bool CLocator::ZoneChanged() { bool bResult = m_bChanged; m_bChanged = FALSE; return bResult; } inline bool CLocator::Show(bool bShow) const { ::ShowWindow(m_hWnd, bShow ? SW_SHOW : SW_HIDE); ::UpdateWindow(m_hWnd); return true; } inline bool CLocator::HasScale(INT nScale) const { return m_hBitmapScales[nScale] != NULL; } inline HWND CLocator::GetSafeHwnd() const { return m_hWnd; } inline void CLocator::SetEditType(INT nType) { m_Type = nType; } inline void CLocator::SetDebugMode(bool fDebug) { m_bDebugMode = fDebug; } */ #endif