~ubuntu-branches/ubuntu/lucid/igstk/lucid

« back to all changes in this revision

Viewing changes to Examples/VideoFrameGrabberAndViewerWebcam/main.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Dominique Belhachemi
  • Date: 2009-10-07 17:35:43 UTC
  • mfrom: (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091007173543-69eyhyjrh0bfoqe5
Tags: 4.2.0-2
* Fixed link issue (Closes: #549799)
* switch to quilt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*=========================================================================
 
2
 
 
3
  Program:   Image Guided Surgery Software Toolkit
 
4
  Module:    $RCSfile: main.cxx,v $
 
5
  Language:  C++
 
6
  Date:      $Date: 2009-06-18 18:40:55 $
 
7
  Version:   $Revision: 1.1 $
 
8
 
 
9
  Copyright (c) ISC  Insight Software Consortium.  All rights reserved.
 
10
  See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
 
11
 
 
12
     This software is distributed WITHOUT ANY WARRANTY; without even
 
13
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 
14
     PURPOSE.  See the above copyright notices for more information.
 
15
 
 
16
=========================================================================*/
 
17
#if defined(_MSC_VER)
 
18
// Warning about: identifier was truncated to '255' characters
 
19
// in the debug information (MVC6.0 Debug)
 
20
#pragma warning( disable : 4284 )
 
21
#endif
 
22
 
 
23
#include "VideoFrameGrabberAndViewerWebcamWin.h"
 
24
 
 
25
int main(int, char** )
 
26
{
 
27
 
 
28
  igstk::RealTimeClock::Initialize();
 
29
 
 
30
  igstk::VideoFrameGrabberAndViewerWebcamWin * application = 
 
31
                                 new igstk::VideoFrameGrabberAndViewerWebcamWin;
 
32
 
 
33
  while( !application->HasQuitted() )
 
34
  {
 
35
    Fl::wait(0.001);
 
36
    igstk::PulseGenerator::CheckTimeouts();
 
37
  }
 
38
 
 
39
  application->mainWindow->hide();
 
40
 
 
41
  delete application;
 
42
 
 
43
  return EXIT_SUCCESS;
 
44
}