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

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgUICamera.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of LgUICamera.cpp
  13. //----------------------------------------------------------------------------
  14. #include "stdafx.h"
  15. #include "LgUICamera.h"
  16. #include "LgUICameraVideoWnd.h"
  17. #include "LgUICameraControlWnd.h"
  18. #include "LgUICameraEngine.h"
  19. CLgUICamera::CLgUICamera()
  20. {
  21. // initiate members
  22. m_bControlAvailible = FALSE;
  23. }
  24. CLgUICamera::~CLgUICamera()
  25. {
  26. }
  27. void CLgUICamera::OnUICameraVideo( BOOL bRun )
  28. {
  29. CLgUICameraEngine *pEngine = *this;
  30. if( !pEngine )
  31. return;
  32. pEngine->OnVideoCameraStream( this, bRun );
  33. }
  34. void CLgUICamera::OnUICameraVideoSample( CLgImageDIB *pDIB )
  35. {
  36. CLgUICameraVideoWnd *pVideoWnd = GetVideoWnd();
  37. if( !pVideoWnd )
  38. return;
  39. pVideoWnd->OnVideoStreamSample( pDIB );
  40. }
  41. void CLgUICamera::OnUICameraControl( BOOL bAvailible )
  42. {
  43. CLgUICameraControlWnd *pControlWnd = *this;
  44. if( !pControlWnd )
  45. return;
  46. // remember for future use
  47. m_bControlAvailible = bAvailible;
  48. // notify control wnd about changes
  49. pControlWnd->OnVideoCameraControl( this, bAvailible );
  50. }