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

dox/Hybrid/vtkWin32VideoSource.h

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