00001 /* 00002 * AtmoInput.h: abstract class for retrieving precalculated image data from 00003 * different sources in the live view mode 00004 * 00005 * 00006 * See the README.txt file for copyright information and how to reach the author(s). 00007 * 00008 * $Id$ 00009 */ 00010 #ifndef _AtmoInput_h_ 00011 #define _AtmoInput_h_ 00012 00013 #include "AtmoDefs.h" 00014 #include "AtmoDynData.h" 00015 00016 /* 00017 basic definition of an AtmoLight data/image source ... 00018 */ 00019 class CAtmoInput { 00020 00021 protected: 00022 tColorPacket m_ColorPacket; 00023 volatile ATMO_BOOL m_FrameArrived; 00024 CAtmoDynData *m_pAtmoDynData; 00025 00026 public: 00027 CAtmoInput(CAtmoDynData *pAtmoDynData); 00028 virtual ~CAtmoInput(void); 00029 00030 // Opens the input-device. 00031 // Returns true if the input-device was opened successfully. 00032 virtual ATMO_BOOL Open(void) { return ATMO_FALSE; } 00033 00034 // Closes the input-device. 00035 // Returns true if the input-device was closed successfully. 00036 virtual ATMO_BOOL Close(void) { return ATMO_FALSE; } 00037 00038 // Returns the calculated tColorPacket for further processing (e.g. filtering). 00039 virtual tColorPacket GetColorPacket(void) { return m_ColorPacket; } 00040 00041 // wait for the arrival of the next frame...(to come in sync again) 00042 virtual void WaitForNextFrame(DWORD timeout); 00043 }; 00044 00045 #endif
1.5.1