PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusTelemedVideoSource.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 __vtkPlusTelemedVideoSource_h
8 #define __vtkPlusTelemedVideoSource_h
9 
10 #include "TelemedUltrasound.h"
11 #include "vtkPlusDataCollectionExport.h"
12 #include "vtkPlusUsDevice.h"
13 
14 class vtkImageImport;
16 
28 class vtkPlusDataCollectionExport vtkPlusTelemedVideoSource : public vtkPlusUsDevice
29 {
30 public:
33  virtual void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
34 
36  PlusStatus ReadConfiguration(vtkXMLDataElement* config);
38  PlusStatus WriteConfiguration(vtkXMLDataElement* config);
39 
41  PlusStatus FreezeDevice(bool freeze);
42 
44  bool IsTracker() const {return false;}
45 
48 
50  vtkSetMacro(ProbeId, int);
51  vtkGetMacro(ProbeId, int);
52 
54  PlusStatus SetFrequencyMhz(double aFrequencyMhz);
56  PlusStatus GetFrequencyMhz(double& aFrequencyMhz);
57 
59  PlusStatus SetDepthMm(double aDepthMm);
61  PlusStatus GetDepthMm(double& aDepthMm);
62 
64  PlusStatus SetGainPercent(double aGainPercent);
66  PlusStatus GetGainPercent(double& aGainPercent);
67 
69  PlusStatus SetDynRangeDb(double aDynamicRange);
71  PlusStatus GetDynRangeDb(double& aDynamicRange);
72 
74  PlusStatus SetPowerDb(double aPowerDb);
76  PlusStatus GetPowerDb(double& aPowerDb);
77 
79  PlusStatus SetFocusDepthPercent(double aFocusDepthPercent);
81  PlusStatus GetFocusDepthPercent(double& aFocusDepthPercent);
82 
84  virtual PlusStatus NotifyConfigured();
85 
86  virtual std::string GetSdkVersion();
87 
89  virtual PlusStatus SetFrameSize(const FrameSizeType& frameSize);
90 
95 
96 protected:
101 
106 
109 
110  igsioVideoFrame UncompressedVideoFrame;
111 
112  FrameSizeType FrameSize;
113 
114  int ProbeId;
115  double FrequencyMhz;
116  double DepthMm;
117  double GainPercent;
118  double DynRangeDb;
119  double PowerDb;
121 
122 private:
123  vtkImageImport* importer;
124 };
125 
126 #endif // __vtkPlusTelemedVideoSource_h
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
virtual std::string GetSdkVersion()
#define VTK_OVERRIDE
Definition: PlusCommon.h:49
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *)
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkPlusUsDevice * New()
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
virtual PlusStatus InternalApplyImagingParameterChange()
virtual PlusStatus NotifyConfigured()
virtual PlusStatus InternalDisconnect()
Abstract interface for ultrasound video devices.
virtual PlusStatus InternalUpdate()
Class for interfacing the device manager class, and the PLUS library. The devices are Telemed ultraso...