31 #ifndef vtkVideoSource_h
32 #define vtkVideoSource_h
51 virtual void Record();
64 virtual void Rewind();
68 virtual void FastForward();
72 virtual void Seek(
int n);
80 vtkGetMacro(Recording,
int);
86 vtkGetMacro(Playing,
int);
95 virtual void SetFrameSize(
int x,
int y,
int z);
97 this->SetFrameSize(dim[0], dim[1], dim[2]); };
98 vtkGetVector3Macro(FrameSize,
int);
103 virtual void SetFrameRate(
float rate);
104 vtkGetMacro(FrameRate,
float);
110 virtual void SetOutputFormat(
int format);
114 vtkGetMacro(OutputFormat,
int);
120 virtual void SetFrameBufferSize(
int FrameBufferSize);
121 vtkGetMacro(FrameBufferSize,
int);
128 vtkSetMacro(NumberOfOutputFrames,
int);
129 vtkGetMacro(NumberOfOutputFrames,
int);
135 vtkBooleanMacro(AutoAdvance,
int);
136 vtkSetMacro(AutoAdvance,
int)
137 vtkGetMacro(AutoAdvance,
int);
145 virtual
void SetClipRegion(
int r[6]) {
146 this->SetClipRegion(r[0],r[1],r[2],r[3],r[4],r[5]); };
147 virtual void SetClipRegion(
int x0,
int x1,
int y0,
int y1,
int z0,
int z1);
148 vtkGetVector6Macro(ClipRegion,
int);
159 vtkSetVector6Macro(OutputWholeExtent,
int);
160 vtkGetVector6Macro(OutputWholeExtent,
int);
165 vtkSetVector3Macro(DataSpacing,
double);
166 vtkGetVector3Macro(DataSpacing,
double);
172 vtkSetVector3Macro(DataOrigin,
double);
173 vtkGetVector3Macro(DataOrigin,
double);
180 vtkSetMacro(Opacity,
float);
181 vtkGetMacro(Opacity,
float);
187 vtkGetMacro(FrameCount,
int);
188 vtkSetMacro(FrameCount,
int);
194 vtkGetMacro(FrameIndex,
int);
201 virtual double GetFrameTimeStamp(
int frame);
211 virtual void Initialize();
217 virtual void ReleaseSystemResources();
222 virtual void InternalGrab();
240 int OutputWholeExtent[6];
241 double DataSpacing[3];
242 double DataOrigin[3];
248 int FrameOutputExtent[6];
253 int LastOutputExtent[6];
289 int FrameBufferExtent[6];
298 virtual void UpdateFrameBuffer();
299 virtual void AdvanceFrameBuffer(
int n);
302 virtual void UnpackRasterLine(
char *outPtr,
char *rowPtr,
303 int start,
int count);
virtual int GetInitialized()
void SetOutputFormatToRGB()
A class for performing multithreaded execution.
int NumberOfScalarComponents
double * FrameBufferTimeStamps
Superclass of video input devices for VTK.
virtual void SetFrameSize(int dim[3])
void SetOutputFormatToRGBA()
#define VTKIOVIDEO_EXPORT
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)
int FrameBufferBitsPerPixel
double GetStartTimeStamp()
vtkMultiThreader * PlayerThreader
double GetFrameTimeStamp()
void SetOutputFormatToLuminance()
Critical section locking class.
vtkCriticalSection * FrameBufferMutex
int OutputNeedsInitialization
Generic algorithm superclass for image algs.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
void SetStartTimeStamp(double t)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int LastNumberOfScalarComponents
int FrameBufferRowAlignment