15 #ifndef __vtkPlusSONIXPORTAVIDEOSOURCE_H__ 16 #define __vtkPlusSONIXPORTAVIDEOSOURCE_H__ 18 #include "PlusConfigure.h" 19 #include "vtkPlusDataCollectionExport.h" 26 #if (PLUS_ULTRASONIX_SDK_MAJOR_VERSION < 6) 83 void PrintSelf(ostream& os, vtkIndent indent);
114 vtkSetStringMacro(PortaProbeName);
115 vtkGetStringMacro(PortaProbeName);
118 vtkSetStringMacro(PortaSettingPath);
119 vtkGetStringMacro(PortaSettingPath);
122 vtkSetStringMacro(PortaFirmwarePath);
123 vtkGetStringMacro(PortaFirmwarePath);
126 vtkSetStringMacro(PortaLUTPath);
127 vtkGetStringMacro(PortaLUTPath);
130 vtkSetMacro(Usm,
int);
132 vtkGetMacro(Usm,
int);
135 vtkSetMacro(Pci,
int);
137 vtkGetMacro(Pci,
int);
140 vtkSetStringMacro(PortaLicensePath);
141 vtkGetStringMacro(PortaLicensePath);
164 PlusStatus SetFramePerVolume(
int aFramePerVolume);
166 PlusStatus GetFramePerVolume(
int& aFramePerVolume);
169 PlusStatus SetStepPerFrame(
int aStepPerFrame);
171 PlusStatus GetStepPerFrame(
int& aStepPerFrame);
174 PlusStatus SetMotorRotationRangeDeg(
double fovDeg);
176 PlusStatus GetMotorRotationRangeDeg(
double& fovDeg);
178 vtkSetMacro(ImagingMode,
int);
179 vtkGetMacro(ImagingMode,
int);
181 vtkSetMacro(PortaBModeWidth,
int);
182 vtkGetMacro(PortaBModeWidth,
int);
184 vtkSetMacro(PortaBModeHeight,
int);
185 vtkGetMacro(PortaBModeHeight,
int);
188 void SetPortaCineSize(
int size);
191 int GetPortaFrameRate();
194 vtkSetMacro(AutoClipEnabled,
bool);
195 vtkGetMacro(AutoClipEnabled,
bool);
218 std::string GetLastPortaError();
246 double CurrentPixelSpacingMm[2];
247 int CurrentTransducerOriginPixels[2];
252 PlusStatus AddFrameToBuffer(
void* param,
int id,
bool motorRotationCcw,
int motorStepCount);
255 PlusStatus SetParamValue(
char* paramId,
int paramValue,
int& validatedParamValue);
257 PlusStatus GetParamValue(
char* paramId,
int& paramValue,
int& validatedParamValue);
266 #if (PLUS_ULTRASONIX_SDK_MAJOR_VERSION < 5) || (PLUS_ULTRASONIX_SDK_MAJOR_VERSION == 5 && PLUS_ULTRASONIX_SDK_MINOR_VERSION < 7) 268 static bool vtkPlusSonixPortaVideoSourceNewFrameCallback(
void* param,
int id);
269 #elif (PLUS_ULTRASONIX_SDK_MAJOR_VERSION < 6) 271 static bool vtkPlusSonixPortaVideoSourceNewFrameCallback(
void* param,
int id,
int header);
273 static int vtkPlusSonixPortaVideoSourceNewFrameCallback(
void* param,
int id,
int header);
280 PlusStatus vtkPlusSonixPortaVideoSource::UpdateSonixPortaParams();
283 std::string GetMotorToMotorRotatedTransform(
double MotorAngle);
290 int PortaBModeHeight;
293 char* PortaProbeName;
296 char* PortaSettingPath;
299 char* PortaFirmwarePath;
305 char* PortaLicensePath;
314 double MotorRotationRangeDeg;
320 probeInfo* ProbeInformation;
323 double MotorRotationPerStepDeg;
326 double MotorRotationStartAngleDeg;
329 bool FirstCallToAddFrameToBuffer;
335 int FrameIndexInVolume;
338 bool LastRotationCcw;
340 unsigned char* ImageBuffer;
343 #endif // of __vtkPlusSONIXPORTAVIDEOSOURCE_H__ virtual PlusStatus InternalStopRecording()
Abstract interface for tracker and video devices.
virtual PlusStatus InternalConnect()
Class that cleans up (deletes singleton instance of) vtkPlusSonixPortaVideoSource when destroyed.
class vtkPlusDataCollectionExport vtkPlusSonixPortaVideoSource
bool ImageGeometryChanged
virtual std::string GetSdkVersion()
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *)
Class providing VTK video input interface for SonixRP.
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual PlusStatus InternalStartRecording()
static vtkPlusUsDevice * New()
virtual bool IsTracker() const
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
virtual PlusStatus NotifyConfigured()
virtual PlusStatus InternalDisconnect()
Abstract interface for ultrasound video devices.