PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusUsSimulatorVideoSource.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 __vtkPlusUsSimulatorVideoSource_h
8 #define __vtkPlusUsSimulatorVideoSource_h
9 
10 #include "vtkPlusDataCollectionExport.h"
11 
12 #include "vtkPlusUsDevice.h"
13 #include "vtkPlusUsSimulatorAlgo.h"
14 
15 class vtkPlusDataBuffer;
16 
17 class vtkPlusDataCollectionExport vtkPlusUsSimulatorVideoSource;
18 
24 class vtkPlusDataCollectionExport vtkPlusUsSimulatorVideoSource : public vtkPlusUsDevice
25 {
26 public:
29  virtual void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
30 
32  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* config);
33 
35  vtkGetObjectMacro(UsSimulator, vtkPlusUsSimulatorAlgo);
36 
38  virtual PlusStatus NotifyConfigured();
39 
40  virtual bool IsTracker() const { return false; }
41 
42 protected:
44  vtkSetObjectMacro(UsSimulator, vtkPlusUsSimulatorAlgo);
45 
48 
49 protected:
54 
56  virtual PlusStatus InternalConnect();
57 
60 
62  virtual PlusStatus InternalUpdate();
63 
64 protected:
67 
68  /* Timestamp of the last tracking item that has been processed already */
70 
71  /* Output to different logs depending on the status of the grace period */
72  vtkPlusLogger::LogLevelType GracePeriodLogLevel;
73 
74 private:
75  static vtkPlusUsSimulatorVideoSource* Instance;
77  void operator=(const vtkPlusUsSimulatorVideoSource&); // Not implemented.
78 };
79 
80 #endif
virtual PlusStatus InternalConnect()
igsioStatus PlusStatus
Definition: PlusCommon.h:40
#define VTK_OVERRIDE
Definition: PlusCommon.h:49
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkPlusUsDevice * New()
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
Class for providing VTK video input interface from simulated ultrasound.
Class that simulates ultrasound images from multiple surface models.
class vtkPlusDataCollectionExport vtkPlusUsSimulatorVideoSource
virtual PlusStatus InternalApplyImagingParameterChange()
virtual PlusStatus NotifyConfigured()
virtual PlusStatus InternalDisconnect()
Abstract interface for ultrasound video devices.
virtual PlusStatus InternalUpdate()
vtkPlusLogger::LogLevelType GracePeriodLogLevel