PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusThorLabsVideoSource.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 __vtkPlusThorLabsVideoSource_h
8 #define __vtkPlusThorLabsVideoSource_h
9 
10 #include "vtkPlusDataCollectionExport.h"
11 
12 #include "vtkPlusDevice.h"
13 
14 class vtkPlusThorLabsVideoSourceInternal;
15 
22 class vtkPlusDataCollectionExport vtkPlusThorLabsVideoSource : public vtkPlusDevice
23 {
24 public:
27  virtual void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
28 
30  virtual PlusStatus NotifyConfigured();
31 
32  virtual bool IsTracker() const { return false; }
33 
38  vtkSetStringMacro(InstrumentName);
40  vtkGetStringMacro(InstrumentName);
41 
43  PlusStatus ReadConfiguration(vtkXMLDataElement* config) override;
44 
46  PlusStatus WriteConfiguration(vtkXMLDataElement* config) override;
47 
48  /*
49  Sensor integration time. Longer time makes the sensor more sensitive and
50  reduces the measurement noise, at the cost of increased acquisition time
51  and higher chance of saturation at higher intensities. optional.png
52  Default = "0.05"
53  */
54  vtkSetMacro(IntegrationTimeSec, double);
55  vtkGetMacro(IntegrationTimeSec, double);
56 
57 protected:
58 
63 
65  virtual PlusStatus InternalConnect();
66 
69 
72 
75 
81  virtual PlusStatus InternalUpdate();
82 
84 
87 
88  vtkPlusThorLabsVideoSourceInternal *Internal;
89 
91  PlusStatus UpdateFrameBuffer();
92 
93 private:
94  vtkPlusThorLabsVideoSource(const vtkPlusThorLabsVideoSource&); // Not implemented.
95  void operator=(const vtkPlusThorLabsVideoSource&); // Not implemented.
96 };
97 
98 #endif
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual PlusStatus InternalStopRecording()
Abstract interface for tracker and video devices.
Definition: vtkPlusDevice.h:60
virtual PlusStatus InternalConnect()
vtkPlusThorLabsVideoSourceInternal * Internal
igsioStatus PlusStatus
Definition: PlusCommon.h:40
#define VTK_OVERRIDE
Definition: PlusCommon.h:49
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *)
virtual PlusStatus InternalStartRecording()
virtual PlusStatus NotifyConfigured()
virtual PlusStatus InternalDisconnect()
ThorLabs compact spectrometer.
virtual PlusStatus InternalUpdate()
static vtkPlusDevice * New()