9 #ifndef __vtkPlusBkProFocusOemVideoSource_h 10 #define __vtkPlusBkProFocusOemVideoSource_h 12 #include "vtkPlusDataCollectionExport.h" 42 vtkSetMacro(ScannerAddress, std::string);
45 vtkGetMacro(ScannerAddress, std::string);
48 vtkSetMacro(OemPort,
unsigned short);
54 vtkSetMacro(ContinuousStreamingEnabled,
bool);
60 vtkGetMacro(ContinuousStreamingEnabled,
bool);
66 vtkBooleanMacro(ContinuousStreamingEnabled,
bool);
69 vtkSetMacro(ColorEnabled,
bool);
72 vtkGetMacro(ColorEnabled,
bool);
75 vtkBooleanMacro(ColorEnabled,
bool);
78 vtkSetMacro(OfflineTesting,
bool);
81 vtkGetMacro(OfflineTesting,
bool);
84 vtkBooleanMacro(OfflineTesting,
bool);
87 vtkSetStringMacro(OfflineTestingFilePath);
90 vtkGetStringMacro(OfflineTestingFilePath);
101 double StartLineX_m, StartLineY_m, StartLineAngle_rad, StartDepth_m, StopLineX_m,
StopLineY_m, StopLineAngle_rad, StopDepth_m;
108 IGTLIO_PROBE_TYPE probeTypePortA, probeTypePortB, probeTypePortC,
probeTypePortM;
146 std::vector<char> removeSpecialCharacters(std::vector<char> inMessage);
155 int addAdditionalBinaryDataToImageUntilEOTReached(
char&
character, std::vector<char>& rawMessage);
161 std::string AddSpecialCharacters(std::string query);
182 void ParseImageSize(std::istringstream& replyStream);
183 void ParseGeometryScanarea(std::istringstream& replyStream);
184 void ParseGeometryPixel(std::istringstream& replyStream);
185 void ParseGeometryUsGrabFrame(std::istringstream& replyStream);
186 void ParseGeometryTissue(std::istringstream& replyStream);
187 void ParseGain(std::istringstream& replyStream);
188 void ParseTransducerList(std::istringstream& replyStream);
189 void ParseTransducerData(std::istringstream& replyStream);
191 PlusStatus DecodePngImage(
unsigned char* pngBuffer,
unsigned int pngBufferSize, vtkImageData* decodedImage);
216 bool IsSectorProbe();
219 double CalculateWidthInRadians();
222 double CalculateDepthMm();
228 double GetStartDepth();
231 double GetStopDepth();
234 double GetStartLineX();
237 double GetStartLineY();
240 double GetStopLineX();
243 double GetStopLineY();
246 double GetStartLineAngle();
249 double GetStopLineAngle();
252 double GetSpacingX();
255 double GetSpacingY();
264 std::string ReadBufferIntoString();
267 std::string RemoveQuotationMarks(std::string inString);
269 void SetProbeTypeForPort(std::string
port, std::string probeTypeString);
virtual PlusStatus InternalStopRecording()
PhidgetLCD_Font const char * character
Abstract interface for tracker and video devices.
Class for acquiring ultrasound images from BK ultrasound systems through the OEM interface.
virtual PlusStatus InternalConnect()
std::string ScannerAddress
bool ContinuousStreamingEnabled
char * OfflineTestingFilePath
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *)
virtual std::vector< double > CalculateAngles()
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual PlusStatus InternalStartRecording()
virtual std::vector< double > CalculateOrigin()
static vtkPlusUsDevice * New()
virtual std::vector< double > CalculateBoundingBox()
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
igsioFieldMapType FrameFields
Container to hold calculated field values.
virtual bool IsTracker() const
std::array< unsigned int, 2 > UltrasoundWindowSize
static const char * KEY_DEPTH
static const char * KEY_GAIN
virtual std::vector< double > CalculateDepths()
virtual double CalculateLinearWidth()
virtual PlusStatus NotifyConfigured()
virtual PlusStatus InternalDisconnect()
Abstract interface for ultrasound video devices.
IGTLIO_PROBE_TYPE probeTypePortM
int grabFramePixelTop_pix
virtual PlusStatus InternalUpdate()
virtual IGTLIO_PROBE_TYPE GetProbeType()