Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkWin32VideoSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkWin32VideoSource.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00044 #ifndef __vtkWin32VideoSource_h
00045 #define __vtkWin32VideoSource_h
00046 
00047 #include "vtkVideoSource.h"
00048 
00049 class vtkWin32VideoSourceInternal;
00050 
00051 class VTK_HYBRID_EXPORT vtkWin32VideoSource : public vtkVideoSource
00052 {
00053 public:
00054   static vtkWin32VideoSource *New();
00055   vtkTypeRevisionMacro(vtkWin32VideoSource,vtkVideoSource);
00056   void PrintSelf(ostream& os, vtkIndent indent);   
00057 
00059   void Record();
00060 
00062   void Play();
00063 
00065   void Stop();
00066 
00068   void Grab();
00069  
00071   void SetFrameSize(int x, int y, int z);
00072   
00074   void SetFrameRate(float rate);
00075 
00077   void SetOutputFormat(int format);
00078 
00080 
00081   void SetPreview(int p);
00082   vtkBooleanMacro(Preview,int);
00083   vtkGetMacro(Preview,int);
00085 
00087   void VideoFormatDialog();
00088 
00090   void VideoSourceDialog();
00091 
00094   void Initialize();
00095 
00097   void ReleaseSystemResources();
00098 
00100 
00101   void InternalGrab(void*);
00102   void OnParentWndDestroy();
00104 
00105 protected:
00106   vtkWin32VideoSource();
00107   ~vtkWin32VideoSource();
00108 
00109   char WndClassName[16];
00110   int BitMapSize;
00111   int Preview;
00112 
00113   vtkWin32VideoSourceInternal *Internal;
00114 
00115   void CheckBuffer();
00116   void UnpackRasterLine(char *outptr, char *inptr, 
00117                         int start, int count);
00118 
00119   void DoVFWFormatSetup();
00120   void DoVFWFormatCheck();
00121 
00122 private:
00123   vtkWin32VideoSource(const vtkWin32VideoSource&);  // Not implemented.
00124   void operator=(const vtkWin32VideoSource&);  // Not implemented.
00125 };
00126 
00127 #endif
00128 
00129 
00130 
00131 
00132