VTK
vtkWin32VideoSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWin32VideoSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
33 #ifndef vtkWin32VideoSource_h
34 #define vtkWin32VideoSource_h
35 
36 #include "vtkIOVideoModule.h" // For export macro
37 #include "vtkVideoSource.h"
38 
39 class vtkWin32VideoSourceInternal;
40 
42 {
43 public:
44  static vtkWin32VideoSource *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49  void Record();
50 
52  void Play();
53 
55  void Stop();
56 
58  void Grab();
59 
61 
62  void SetFrameSize(int x, int y, int z);
63  virtual void SetFrameSize(int dim[3]) {
64  this->SetFrameSize(dim[0], dim[1], dim[2]); };
66 
68  void SetFrameRate(float rate);
69 
71  void SetOutputFormat(int format);
72 
74 
75  void SetPreview(int p);
76  vtkBooleanMacro(Preview,int);
77  vtkGetMacro(Preview,int);
79 
81  void VideoFormatDialog();
82 
84  void VideoSourceDialog();
85 
88  void Initialize();
89 
92 
94 
95  void LocalInternalGrab(void*);
96  void OnParentWndDestroy();
98 
99 protected:
102 
103  char WndClassName[16];
105  int Preview;
106 
107  vtkWin32VideoSourceInternal *Internal;
108 
109  void CheckBuffer();
110  void UnpackRasterLine(char *outptr, char *inptr,
111  int start, int count);
112 
113  void DoVFWFormatSetup();
114  void DoVFWFormatCheck();
115 
116 private:
117  vtkWin32VideoSource(const vtkWin32VideoSource&); // Not implemented.
118  void operator=(const vtkWin32VideoSource&); // Not implemented.
119 };
120 
121 #endif
122 
123 
124 
125 
126 
virtual void Stop()
Video-for-Windows video digitizer.
virtual void Initialize()
Superclass of video input devices for VTK.
#define VTKIOVIDEO_EXPORT
virtual void ReleaseSystemResources()
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void Record()
virtual void UnpackRasterLine(char *outPtr, char *rowPtr, int start, int count)
virtual void SetOutputFormat(int format)
static vtkVideoSource * New()
virtual void SetFrameSize(int dim[3])
virtual void SetFrameSize(int x, int y, int z)
vtkWin32VideoSourceInternal * Internal
virtual void Play()
virtual void Grab()
virtual void SetFrameRate(float rate)
void PrintSelf(ostream &os, vtkIndent indent)