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.
62 lines
1.7 KiB
62 lines
1.7 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: VideoDevice.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of VideoDevice.h
|
|
//----------------------------------------------------------------------------
|
|
// VideoDevice.h: interface for the CVideoDevice class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_VIDEODEVICE_H__DE11F0C8_0596_4D96_9123_4CE8B0134F01__INCLUDED_)
|
|
#define AFX_VIDEODEVICE_H__DE11F0C8_0596_4D96_9123_4CE8B0134F01__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "VideoPin.h"
|
|
|
|
class CSensorArray;
|
|
|
|
class CVideoDevice
|
|
{
|
|
friend class CVideoPin;
|
|
public:
|
|
CVideoDevice();
|
|
virtual ~CVideoDevice();
|
|
|
|
public:
|
|
void SetSensorArray( CSensorArray *pSensorArray ) { m_pSensorArray = pSensorArray; }
|
|
|
|
public:
|
|
virtual void SetIOCount( int nInput, int nOutput );
|
|
virtual void Destroy();
|
|
|
|
public:
|
|
CVideoPin *GetOutput( int nIndex ){ return ( m_nOutput > nIndex ) ? &m_pOutput[ nIndex ] : NULL; }
|
|
CVideoPin *GetInput( int nIndex ){ return ( m_nInput > nIndex ) ? &m_pInput[ nIndex ] : NULL; }
|
|
int GetOutputCount() { return m_nOutput; }
|
|
int GetInputCount() { return m_nInput; }
|
|
|
|
protected:
|
|
virtual BOOL ForceConnection( int nInput, int nOutput ) { return FALSE; }
|
|
|
|
protected:
|
|
CVideoPin *m_pInput;
|
|
CVideoPin *m_pOutput;
|
|
int m_nInput;
|
|
int m_nOutput;
|
|
|
|
protected:
|
|
CSensorArray *m_pSensorArray;
|
|
};
|
|
|
|
#endif
|