VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkWin32VideoSource Class Reference

Video-for-Windows video digitizer. More...

#include <vtkWin32VideoSource.h>

Inheritance diagram for vtkWin32VideoSource:
Inheritance graph
[legend]
Collaboration diagram for vtkWin32VideoSource:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkVideoSource Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkWin32VideoSourceNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void Record ()
void Play ()
void Stop ()
void Grab ()
void SetFrameRate (float rate)
void SetOutputFormat (int format)
void VideoFormatDialog ()
void VideoSourceDialog ()
void Initialize ()
void ReleaseSystemResources ()
void SetFrameSize (int x, int y, int z)
virtual void SetFrameSize (int dim[3])
void SetPreview (int p)
virtual void PreviewOn ()
virtual void PreviewOff ()
virtual int GetPreview ()
void LocalInternalGrab (void *)
void OnParentWndDestroy ()

Static Public Member Functions

static vtkWin32VideoSourceNew ()
static int IsTypeOf (const char *type)
static vtkWin32VideoSourceSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkWin32VideoSource ()
 ~vtkWin32VideoSource ()
void CheckBuffer ()
void UnpackRasterLine (char *outptr, char *inptr, int start, int count)
void DoVFWFormatSetup ()
void DoVFWFormatCheck ()

Protected Attributes

char WndClassName [16]
int BitMapSize
int Preview
vtkWin32VideoSourceInternal * Internal

Detailed Description

Video-for-Windows video digitizer.

vtkWin32VideoSource grabs frames or streaming video from a Video for Windows compatible device on the Win32 platform.

Warning:
With some capture cards, if this class is leaked and ReleaseSystemResources is not called, you may have to reboot before you can capture again. vtkVideoSource used to keep a global list and delete the video sources if your program leaked, due to exit crashes that was removed.
See also:
vtkVideoSource vtkMILVideoSource
Tests:
vtkWin32VideoSource (Tests)

Definition at line 41 of file vtkWin32VideoSource.h.


Member Typedef Documentation

Reimplemented from vtkVideoSource.

Definition at line 45 of file vtkWin32VideoSource.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkVideoSource.

static int vtkWin32VideoSource::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkVideoSource.

virtual int vtkWin32VideoSource::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkVideoSource.

Reimplemented from vtkVideoSource.

virtual vtkObjectBase* vtkWin32VideoSource::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkVideoSource.

Reimplemented from vtkVideoSource.

void vtkWin32VideoSource::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkVideoSource.

void vtkWin32VideoSource::Record ( ) [virtual]

Standard VCR functionality: Record incoming video.

Reimplemented from vtkVideoSource.

void vtkWin32VideoSource::Play ( ) [virtual]

Standard VCR functionality: Play recorded video.

Reimplemented from vtkVideoSource.

void vtkWin32VideoSource::Stop ( ) [virtual]

Standard VCR functionality: Stop recording or playing.

Reimplemented from vtkVideoSource.

void vtkWin32VideoSource::Grab ( ) [virtual]

Grab a single video frame.

Reimplemented from vtkVideoSource.

void vtkWin32VideoSource::SetFrameSize ( int  x,
int  y,
int  z 
) [virtual]

Request a particular frame size (set the third value to 1).

Reimplemented from vtkVideoSource.

virtual void vtkWin32VideoSource::SetFrameSize ( int  dim[3]) [inline, virtual]

Request a particular frame size (set the third value to 1).

Reimplemented from vtkVideoSource.

Definition at line 63 of file vtkWin32VideoSource.h.

void vtkWin32VideoSource::SetFrameRate ( float  rate) [virtual]

Request a particular frame rate (default 30 frames per second).

Reimplemented from vtkVideoSource.

void vtkWin32VideoSource::SetOutputFormat ( int  format) [virtual]

Request a particular output format (default: VTK_RGB).

Reimplemented from vtkVideoSource.

Turn on/off the preview (overlay) window.

virtual void vtkWin32VideoSource::PreviewOn ( ) [virtual]

Turn on/off the preview (overlay) window.

virtual void vtkWin32VideoSource::PreviewOff ( ) [virtual]

Turn on/off the preview (overlay) window.

virtual int vtkWin32VideoSource::GetPreview ( ) [virtual]

Turn on/off the preview (overlay) window.

Bring up a modal dialog box for video format selection.

Bring up a modal dialog box for video input selection.

void vtkWin32VideoSource::Initialize ( ) [virtual]

Initialize the driver (this is called automatically when the first grab is done).

Reimplemented from vtkVideoSource.

Free the driver (this is called automatically inside the destructor).

Reimplemented from vtkVideoSource.

For internal use only

For internal use only

void vtkWin32VideoSource::CheckBuffer ( ) [protected]
void vtkWin32VideoSource::UnpackRasterLine ( char *  outPtr,
char *  rowPtr,
int  start,
int  count 
) [protected, virtual]

These methods can be overridden in subclasses

Reimplemented from vtkVideoSource.


Member Data Documentation

char vtkWin32VideoSource::WndClassName[16] [protected]

Definition at line 103 of file vtkWin32VideoSource.h.

Definition at line 104 of file vtkWin32VideoSource.h.

Definition at line 105 of file vtkWin32VideoSource.h.

vtkWin32VideoSourceInternal* vtkWin32VideoSource::Internal [protected]

Definition at line 107 of file vtkWin32VideoSource.h.


The documentation for this class was generated from the following file: