16 #ifndef __vtkPlusSonixVideoSource_h 17 #define __vtkPlusSonixVideoSource_h 19 #include "PlusConfigure.h" 21 #include "vtkPlusDataCollectionExport.h" 53 class Plus_uTGC :
public uTGC
57 std::vector<int> toVector();
59 void fromVector(
const std::vector<int> input);
61 std::string toString(
char separator =
' ');
63 void fromString(
const std::string& input,
char separator =
' ');
81 vtkSetStringMacro(SonixIP);
83 vtkGetStringMacro(SonixIP);
86 PlusStatus SetFrequencyDevice(
double aFrequency);
88 PlusStatus GetFrequencyDevice(
double& aFrequency);
116 PlusStatus SetTimeGainCompensationDevice(
int tgc[8]);
118 PlusStatus SetTimeGainCompensationDevice(
const Plus_uTGC& tgc);
120 PlusStatus GetTimeGainCompensationDevice(
int tgc[8]);
122 PlusStatus GetTimeGainCompensationDevice(Plus_uTGC& tgc);
125 PlusStatus GetSoundVelocityDevice(
float& soundVelocity);
127 PlusStatus SetSoundVelocityDevice(
float _arg);
130 PlusStatus SetCompressionStatus(
int aCompressionStatus);
132 PlusStatus GetCompressionStatus(
int& aCompressionStatus);
160 PlusStatus SetAcquisitionDataTypeDevice(
int aAcquisitionDataType);
162 PlusStatus GetAcquisitionDataTypeDevice(
int& acquisitionDataType);
204 vtkSetMacro(ConnectionSetupDelayMs,
int);
206 vtkGetMacro(ConnectionSetupDelayMs,
int);
211 vtkSetMacro(SharedMemoryStatus,
int);
213 vtkGetMacro(SharedMemoryStatus,
int);
216 PlusStatus GetDisplayedFrameRateDevice(
int& aFrameRate);
219 PlusStatus SetRFDecimationDevice(
int decimation);
222 PlusStatus SetPPFilterDevice(
int filterIndex);
225 PlusStatus SetFrameRateLimitDevice(
int frLimit);
228 PlusStatus PrintListOfImagingParametersFromDevice();
236 vtkSetMacro(AutoClipEnabled,
bool);
237 vtkGetMacro(AutoClipEnabled,
bool);
240 vtkSetMacro(ImageGeometryOutputEnabled,
bool);
241 vtkGetMacro(ImageGeometryOutputEnabled,
bool);
260 std::string GetLastUlteriusError();
274 RF_ACQ_CHRF_ONLY = 3,
275 RF_ACQ_B_AND_CHRF = 4
278 PlusStatus SetRfAcquisitionModeDevice(RfAcquisitionModeType
mode);
280 PlusStatus GetRfAcquisitionModeDevice(RfAcquisitionModeType&
mode);
283 PlusStatus AddFrameToBuffer(
void*
data,
int type,
int sz,
bool cine,
int frmnum);
285 PlusStatus SetParamValueDevice(
char* paramId,
int paramValue,
int& validatedParamValue);
286 PlusStatus SetParamValueDevice(
char* paramId, Plus_uTGC& paramValue, Plus_uTGC& validatedParamValue);
287 PlusStatus GetParamValueDevice(
char* paramId,
int& paramValue,
int& validatedParamValue);
288 PlusStatus GetParamValueDevice(
char* paramId, Plus_uTGC& paramValue, Plus_uTGC& validatedParamValue);
290 bool HasDataType( uData aValue );
291 bool WantDataType( uData aValue );
292 PlusStatus ConfigureVideoSource( uData aValue );
298 virtual PlusStatus GetRequestedImagingDataTypeFromSources(
int& requestedImagingDataType);
301 void UpdateImagingParametersFromDevice();
337 static bool vtkPlusSonixVideoSourceNewFrameCallback(
void*
data,
int type,
int sz,
bool cine,
int frmnum);
338 static bool vtkPlusSonixVideoSourceParamCallback(
void* paramId,
int ptX,
int ptY);
virtual PlusStatus InternalStopRecording()
virtual PlusStatus InternalConnect()
RfAcquisitionModeType
Defines RF acquisition mode types (0=B only, 1=RF only, 2=B and RF, 3=ChRF, 4=B and ChRF)
RfAcquisitionModeType RfAcquisitionMode
virtual std::string GetSdkVersion()
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *)
std::map< std::string, bool > ChangedImagingParameters
bool ImageGeometryOutputEnabled
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual PlusStatus InternalStartRecording()
static vtkPlusUsDevice * New()
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
virtual bool IsTracker() const
VTK interface for video input from Ultrasonix machine.
virtual PlusStatus InternalApplyImagingParameterChange()
virtual PlusStatus NotifyConfigured()
virtual PlusStatus InternalDisconnect()
Abstract interface for ultrasound video devices.
bool ImageGeometryChanged
bool ImagingParameterChanged
int ConnectionSetupDelayMs