//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: SensorDC.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of SensorDC.h //---------------------------------------------------------------------------- // SensorDC.h: interface for the CSensorDC class. // ////////////////////////////////////////////////////////////////////// #ifndef __SENSOR__DC__H__INCLUDED__ #define __SENSOR__DC__H__INCLUDED__ #include "Sensor.h" #include "DirectInputSet.h" #include "ObjectFactory.h" using namespace OFNS; class CSensorDC : public CSensor { public: CSensorDC(); virtual ~CSensorDC(); public: virtual void Reset(); void AddBitPos( CLgDPoint& pos ); CLgDPoint *GetBitPos( int nBit ) { return (m_nBitPos > nBit) ? &m_pBitPos[ nBit ] : NULL; } int GetBitPosCount() { return m_nBitPos; } CLgMemoryDC* GetBG() { return m_pBG; } void SetBG( CLgMemoryDC* pBG ) { m_pBG = pBG; } void CheckState(); void SetPTZ( double pan, double tilt, double zoom ); public: CDirectInputSet& GetSensorInputSet() { return m_SensorInputSet; } protected: virtual void OnCommand( INT nCommand, BOOL bOn ); private: // CDirectInput **m_ppInput; // int m_nInput; int m_nBitPos; CLgDPoint *m_pBitPos; CLgMemoryDC *m_pBG; struct PTZ { double pan; double tilt; double zoom; }m_PTZ; private: CDirectInputSet m_SensorInputSet; }; #endif