32 #ifndef vtkVideoSource_h 33 #define vtkVideoSource_h 35 #include "vtkIOVideoModule.h" 54 virtual void Record();
72 virtual void Rewind();
78 virtual void FastForward();
84 virtual void Seek(
int n);
96 vtkGetMacro(Recording,
int);
104 vtkGetMacro(Playing,
int);
116 virtual void SetFrameSize(
int x,
int y,
int z);
118 this->SetFrameSize(dim[0], dim[1], dim[2]); };
119 vtkGetVector3Macro(FrameSize,
int);
126 virtual void SetFrameRate(
float rate);
127 vtkGetMacro(FrameRate,
float);
135 virtual void SetOutputFormat(
int format);
139 vtkGetMacro(OutputFormat,
int);
147 virtual void SetFrameBufferSize(
int FrameBufferSize);
148 vtkGetMacro(FrameBufferSize,
int);
158 vtkSetMacro(NumberOfOutputFrames,
int);
159 vtkGetMacro(NumberOfOutputFrames,
int);
180 this->SetClipRegion(r[0],r[1],r[2],r[3],r[4],r[5]); };
181 virtual void SetClipRegion(
int x0,
int x1,
int y0,
int y1,
int z0,
int z1);
182 vtkGetVector6Macro(ClipRegion,
int);
195 vtkSetVector6Macro(OutputWholeExtent,
int);
196 vtkGetVector6Macro(OutputWholeExtent,
int);
204 vtkSetVector3Macro(DataSpacing,
double);
205 vtkGetVector3Macro(DataSpacing,
double);
213 vtkSetVector3Macro(DataOrigin,
double);
214 vtkGetVector3Macro(DataOrigin,
double);
223 vtkSetMacro(Opacity,
float);
224 vtkGetMacro(Opacity,
float);
232 vtkGetMacro(FrameCount,
int);
233 vtkSetMacro(FrameCount,
int);
241 vtkGetMacro(FrameIndex,
int);
250 virtual double GetFrameTimeStamp(
int frame);
264 virtual void Initialize();
273 virtual void ReleaseSystemResources();
280 virtual void InternalGrab();
300 int OutputWholeExtent[6];
301 double DataSpacing[3];
302 double DataOrigin[3];
308 int FrameOutputExtent[6];
313 int LastOutputExtent[6];
349 int FrameBufferExtent[6];
369 virtual void UpdateFrameBuffer();
370 virtual void AdvanceFrameBuffer(
int n);
373 virtual void UnpackRasterLine(
char *outPtr,
char *rowPtr,
374 int start,
int count);
virtual int GetInitialized()
Initialize the hardware.
virtual void SetClipRegion(int r[6])
Set the clip rectangle for the frames.
void SetOutputFormatToRGB()
Set the output format.
A class for performing multithreaded execution.
int NumberOfScalarComponents
double * FrameBufferTimeStamps
Superclass of video input devices for VTK.
virtual void SetFrameSize(int dim[3])
Set the full-frame size.
void SetOutputFormatToRGBA()
Set the output format.
Timer support and logging.
Superclass for mapping scalar values to colors.
a simple class to control print indentation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
int FrameBufferBitsPerPixel
double GetStartTimeStamp()
And internal variable which marks the beginning of a Record session.
vtkMultiThreader * PlayerThreader
double GetFrameTimeStamp()
Get a time stamp in seconds (resolution of milliseconds) for the Output.
void SetOutputFormatToLuminance()
Set the output format.
Critical section locking class.
vtkCriticalSection * FrameBufferMutex
int OutputNeedsInitialization
Generic algorithm superclass for image algs.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetStartTimeStamp(double t)
And internal variable which marks the beginning of a Record session.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
int LastNumberOfScalarComponents
int FrameBufferRowAlignment