66 #ifndef __vtkSonixVideoSource_h
67 #define __vtkSonixVideoSource_h
70 #include <vtkVideoSource.h>
103 void PrintSelf(ostream& os, vtkIndent indent);
129 virtual void Record();
146 void SetOutputFormat(
int format);
155 void SetSonixIP(
const char *SonixIP);
162 vtkGetMacro(Frequency,
int);
163 vtkSetMacro(Frequency,
int);
168 vtkGetMacro(Depth,
int);
169 vtkSetMacro(Depth,
int);
174 vtkGetMacro(FrameRate,
float);
175 vtkSetMacro(FrameRate,
float);
186 vtkGetMacro(AcquisitionDataType,
int);
187 vtkSetMacro(AcquisitionDataType,
int);
196 bool getFreezeState();
201 void ReleaseSystemResources();
205 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
211 void setDebugOutput(
bool debug);
212 void setSonixConnectionDelay(
int delay);
213 void setUseSharedMemory(
bool useSharedMemory);
219 int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
232 void UnpackRasterLine(
char *outptr,
char *inptr,
233 int start,
int count);
235 void DoFormatSetup();
236 void calculateSpacingAndOrigin();
237 void UpdateFrameBufferExtent(uROI roi);
238 void ResetFrameBufferExtent();
242 void LocalInternalGrab(
void * data,
int type,
int sz,
bool cine,
int frmnum);
255 int max(
int a,
int b){
if(a > b)
return a;
else return b;};
256 int min(
int a,
int b){
if(a < b)
return a;
else return b;};
262 static bool vtkSonixVideoSourceNewFrameCallback(
void * data,
int type,
int sz,
bool cine,
int frmnum);
266 void waitForSonixWindow();