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:
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 
72 
74 
75  void SetPreview(int p);
76  vtkBooleanMacro(Preview,int);
77  vtkGetMacro(Preview,int);
79 
82 
85 
88  void Initialize();
89 
92 
94 
95  void LocalInternalGrab(void*);
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 
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 
vtkWin32VideoSource::~vtkWin32VideoSource
~vtkWin32VideoSource()
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkWin32VideoSource::BitMapSize
int BitMapSize
Definition: vtkWin32VideoSource.h:104
vtkgl::count
GLuint GLuint GLsizei count
Definition: vtkgl.h:11315
vtkWin32VideoSource::vtkWin32VideoSource
vtkWin32VideoSource()
vtkWin32VideoSource::SetPreview
void SetPreview(int p)
VTKIOVIDEO_EXPORT
#define VTKIOVIDEO_EXPORT
Definition: vtkIOVideoModule.h:15
vtkWin32VideoSource::SetOutputFormat
void SetOutputFormat(int format)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkVideoSource.h
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkWin32VideoSource::SetFrameSize
virtual void SetFrameSize(int dim[3])
Definition: vtkWin32VideoSource.h:63
vtkWin32VideoSource::DoVFWFormatSetup
void DoVFWFormatSetup()
vtkWin32VideoSource::Play
void Play()
vtkWin32VideoSource::Record
void Record()
vtkWin32VideoSource::Grab
void Grab()
vtkWin32VideoSource::DoVFWFormatCheck
void DoVFWFormatCheck()
vtkWin32VideoSource::OnParentWndDestroy
void OnParentWndDestroy()
vtkWin32VideoSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkWin32VideoSource::UnpackRasterLine
void UnpackRasterLine(char *outptr, char *inptr, int start, int count)
vtkWin32VideoSource::SetFrameRate
void SetFrameRate(float rate)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkgl::start
GLuint start
Definition: vtkgl.h:11315
vtkWin32VideoSource::New
static vtkWin32VideoSource * New()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkWin32VideoSource::Internal
vtkWin32VideoSourceInternal * Internal
Definition: vtkWin32VideoSource.h:107
vtkWin32VideoSource::Preview
int Preview
Definition: vtkWin32VideoSource.h:105
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkVideoSource::SetFrameSize
virtual void SetFrameSize(int x, int y, int z)
vtkWin32VideoSource
Video-for-Windows video digitizer.
Definition: vtkWin32VideoSource.h:42
vtkIOVideoModule.h
vtkWin32VideoSource::VideoSourceDialog
void VideoSourceDialog()
vtkWin32VideoSource::CheckBuffer
void CheckBuffer()
vtkgl::p
GLfloat GLfloat p
Definition: vtkgl.h:15717
vtkWin32VideoSource::LocalInternalGrab
void LocalInternalGrab(void *)
vtkWin32VideoSource::Stop
void Stop()
vtkWin32VideoSource::VideoFormatDialog
void VideoFormatDialog()
vtkWin32VideoSource::ReleaseSystemResources
void ReleaseSystemResources()
vtkgl::format
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: vtkgl.h:11316
vtkWin32VideoSource::Initialize
void Initialize()
vtkWin32VideoSource::SetFrameSize
void SetFrameSize(int x, int y, int z)
vtkVideoSource
Superclass of video input devices for VTK.
Definition: vtkVideoSource.h:43