PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusIntersonArraySDKCxxVideoSource.h
Go to the documentation of this file.
1 /*=Plus=header=begin======================================================
2  Program: Plus
3  Copyright (c) Laboratory for Percutaneous Surgery. All rights reserved.
4  See License.txt for details.
5 =========================================================Plus=header=end*/
6 
7 #ifndef __vtkPlusIntersonArraySDKCxxVideoSource_h
8 #define __vtkPlusIntersonArraySDKCxxVideoSource_h
9 
10 #include "vtkPlusDataCollectionExport.h"
11 
12 #include "vtkPlusDevice.h"
13 #include "vtkPlusUSImagingParameters.h"
14 
15 class vtkPlusDataCollectionExport vtkPlusIntersonArraySDKCxxVideoSource;
16 
36 class vtkPlusDataCollectionExport vtkPlusIntersonArraySDKCxxVideoSource : public vtkPlusDevice
37 {
38 public:
41  virtual void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42 
43  virtual bool IsTracker() const { return false; }
44 
46  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* config);
48  virtual PlusStatus WriteConfiguration(vtkXMLDataElement* config);
49 
51  virtual PlusStatus NotifyConfigured();
52 
53  virtual std::string GetSdkVersion();
54 
55  /* Set the desired probe frequency in MHz. */
56  PlusStatus SetProbeFrequencyMhz(double aFreq);
57 
58  /* Set the gain in percent. Used for on board B-mode generation. */
59  PlusStatus SetDynRangeDb(double dynRangeDb);
60 
61  /* Set the excitation pulse voltage in volts. */
62  PlusStatus SetPulseVoltage(unsigned char voltage);
63  vtkGetMacro(PulseVoltage, unsigned char);
64 
65  typedef unsigned char BmodePixelType;
66  typedef short RfPixelType;
67 
68 protected:
73 
75  virtual PlusStatus InternalConnect();
76 
79 
82 
85 
87  virtual PlusStatus InternalUpdate();
88 
89  // For internal storage of additional variables (to minimize the number of included headers)
90  class vtkInternal;
91  vtkInternal* Internal;
92 
94 
95  unsigned char PulseVoltage;
96 
97 private:
99  void operator=(const vtkPlusIntersonArraySDKCxxVideoSource&); // Not implemented.
100 
101  static void __stdcall vtkPlusIntersonArraySDKCxxVideoSource::NewBmodeImageCallback(BmodePixelType* buffer, void* clientData);
102  static void __stdcall vtkPlusIntersonArraySDKCxxVideoSource::NewRfImageCallback(RfPixelType* buffer, void* clientData);
103  PlusStatus AddBmodeFrameToBuffer(BmodePixelType* buffer, void* clientData);
104  PlusStatus AddRfFrameToBuffer(RfPixelType* buffer, void* clientData);
105 };
106 
107 #endif
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual PlusStatus InternalStopRecording()
PhidgetRCServo_Voltage voltage
Definition: phidget22.h:3331
Abstract interface for tracker and video devices.
Definition: vtkPlusDevice.h:60
This class is used to store a configuration of the imaging parameters of an ultrasound video device....
virtual PlusStatus InternalConnect()
igsioStatus PlusStatus
Definition: PlusCommon.h:40
Class for acquiring ultrasound images from Interson Array USB ultrasound systems with C++ Wrapped SDK...
virtual std::string GetSdkVersion()
#define VTK_OVERRIDE
Definition: PlusCommon.h:49
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
class vtkPlusDataCollectionExport vtkPlusIntersonArraySDKCxxVideoSource
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *)
virtual PlusStatus InternalStartRecording()
virtual PlusStatus NotifyConfigured()
virtual PlusStatus InternalDisconnect()
virtual PlusStatus InternalUpdate()
static vtkPlusDevice * New()