 |
VTK
9.1.0
|
Go to the documentation of this file.
32 #ifndef vtkVideoSource_h
33 #define vtkVideoSource_h
35 #include "vtkIOVideoModule.h"
97 vtkGetMacro(Recording,
int);
105 vtkGetMacro(Playing,
int);
119 vtkGetVector3Macro(FrameSize,
int);
127 vtkGetMacro(FrameRate,
float);
139 vtkGetMacro(OutputFormat,
int);
148 vtkGetMacro(FrameBufferSize,
int);
158 vtkSetMacro(NumberOfOutputFrames,
int);
159 vtkGetMacro(NumberOfOutputFrames,
int);
181 vtkGetVector6Macro(ClipRegion,
int);
194 vtkSetVector6Macro(OutputWholeExtent,
int);
195 vtkGetVector6Macro(OutputWholeExtent,
int);
203 vtkSetVector3Macro(DataSpacing,
double);
204 vtkGetVector3Macro(DataSpacing,
double);
212 vtkSetVector3Macro(DataOrigin,
double);
213 vtkGetVector3Macro(DataOrigin,
double);
222 vtkSetMacro(Opacity,
float);
223 vtkGetMacro(Opacity,
float);
231 vtkGetMacro(FrameCount,
int);
232 vtkSetMacro(FrameCount,
int);
240 vtkGetMacro(FrameIndex,
int);
299 int OutputWholeExtent[6];
300 double DataSpacing[3];
301 double DataOrigin[3];
307 int FrameOutputExtent[6];
312 int LastOutputExtent[6];
348 int FrameBufferExtent[6];
virtual void Play()
Play through the 'tape' sequentially at the specified frame rate.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
These methods can be overridden in subclasses.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMultiThreader * PlayerThreader
void SetStartTimeStamp(double t)
And internal variable which marks the beginning of a Record session.
virtual void Rewind()
Rewind to the frame with the earliest timestamp.
virtual void InternalGrab()
The internal function which actually does the grab.
double GetStartTimeStamp()
And internal variable which marks the beginning of a Record session.
Generic algorithm superclass for image algs.
virtual void UnpackRasterLine(char *outPtr, char *rowPtr, int start, int count)
These methods can be overridden in subclasses.
virtual void Stop()
Stop recording or playing.
A class for performing multithreaded execution.
virtual void SetFrameBufferSize(int FrameBufferSize)
Set size of the frame buffer, i.e.
virtual void ReleaseSystemResources()
Release the video driver.
a simple class to control print indentation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkVideoSource * New()
virtual void SetOutputFormat(int format)
Set the output format.
int NumberOfScalarComponents
Superclass for mapping scalar values to colors.
virtual void Grab()
Grab a single video frame.
double GetFrameTimeStamp()
Get a time stamp in seconds (resolution of milliseconds) for the Output.
int FrameBufferBitsPerPixel
void SetOutputFormatToLuminance()
Set the output format.
virtual void AdvanceFrameBuffer(int n)
These methods can be overridden in subclasses.
void SetOutputFormatToRGBA()
Set the output format.
int OutputNeedsInitialization
virtual void Seek(int n)
Seek forwards or backwards by the specified number of frames (positive is forward,...
virtual void SetClipRegion(int x0, int x1, int y0, int y1, int z0, int z1)
Set the clip rectangle for the frames.
Timer support and logging.
virtual void FastForward()
FastForward to the last frame that was recorded (i.e.
virtual void SetFrameRate(float rate)
Request a particular frame rate (default 30 frames per second).
virtual void SetFrameSize(int x, int y, int z)
Set the full-frame size.
std::mutex FrameBufferMutex
virtual void Record()
Record incoming video at the specified FrameRate.
virtual int GetInitialized()
Initialize the hardware.
int FrameBufferRowAlignment
int LastNumberOfScalarComponents
double * FrameBufferTimeStamps
~vtkVideoSource() override
virtual void SetFrameSize(int dim[3])
Set the full-frame size.
virtual double GetFrameTimeStamp(int frame)
Get a time stamp in seconds (resolution of milliseconds) for a video frame.
virtual void Initialize()
Initialize the hardware.
virtual void SetClipRegion(int r[6])
Set the clip rectangle for the frames.
virtual void UpdateFrameBuffer()
These methods can be overridden in subclasses.
void SetOutputFormatToRGB()
Set the output format.
Superclass of video input devices for VTK.