Old fashion design for PC-104
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.
 
 
 
 
 

59 lines
1.4 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: LgUICamera.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of LgUICamera.cpp
//----------------------------------------------------------------------------
#include "stdafx.h"
#include "LgUICamera.h"
#include "LgUICameraVideoWnd.h"
#include "LgUICameraControlWnd.h"
#include "LgUICameraEngine.h"
CLgUICamera::CLgUICamera()
{
// initiate members
m_bControlAvailible = FALSE;
}
CLgUICamera::~CLgUICamera()
{
}
void CLgUICamera::OnUICameraVideo( BOOL bRun )
{
CLgUICameraEngine *pEngine = *this;
if( !pEngine )
return;
pEngine->OnVideoCameraStream( this, bRun );
}
void CLgUICamera::OnUICameraVideoSample( CLgImageDIB *pDIB )
{
CLgUICameraVideoWnd *pVideoWnd = GetVideoWnd();
if( !pVideoWnd )
return;
pVideoWnd->OnVideoStreamSample( pDIB );
}
void CLgUICamera::OnUICameraControl( BOOL bAvailible )
{
CLgUICameraControlWnd *pControlWnd = *this;
if( !pControlWnd )
return;
// remember for future use
m_bControlAvailible = bAvailible;
// notify control wnd about changes
pControlWnd->OnVideoCameraControl( this, bAvailible );
}