PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusFakeTracker.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 __vtkPlusFakeTracker_h
8 #define __vtkPlusFakeTracker_h
9 
10 #include "vtkPlusDataCollectionExport.h"
11 
12 #include "vtkPlusDevice.h"
13 #include "vtkIGSIOTransformRepository.h"
14 #include "vtkIGSIOTrackedFrameList.h"
15 #include "vtkPoints.h"
16 
19 {
27 };
28 
29 class vtkTransform;
30 
41 class vtkPlusDataCollectionExport vtkPlusFakeTracker : public vtkPlusDevice
42 {
43 public:
44  static vtkPlusFakeTracker *New();
46 
49 
52 
54  PlusStatus Probe();
55 
57  virtual PlusStatus ReadConfiguration(vtkXMLDataElement* config);
58 
60  void SetMode(FakeTrackerMode);
61 
62  virtual bool IsTracker() const { return true; }
63 
65  vtkSetMacro(Counter, int);
66 
68  vtkSetObjectMacro(TransformRepository, vtkIGSIOTransformRepository);
70  vtkGetObjectMacro(TransformRepository, vtkIGSIOTransformRepository);
71 
73  vtkGetObjectMacro(PhantomLandmarks, vtkPoints);
74 
75 protected:
77  vtkSetObjectMacro(PhantomLandmarks, vtkPoints);
78 
79 protected:
82 
85 
88 
91 
92 protected:
94  unsigned long Frame;
95 
97  vtkTransform *InternalTransform;
98 
101 
103  vtkIGSIOTransformRepository* TransformRepository;
104 
107 
109  int Counter;
110 
115  vtkPoints* PhantomLandmarks;
116 };
117 
118 
119 #endif
virtual PlusStatus InternalStopRecording()
Abstract interface for tracker and video devices.
Definition: vtkPlusDevice.h:60
vtkPoints * PhantomLandmarks
vtkTransform * InternalTransform
virtual PlusStatus InternalConnect()
igsioStatus PlusStatus
Definition: PlusCommon.h:40
Represents a fake tracking system as a simulator.
virtual PlusStatus Probe()
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
FakeTrackerMode Mode
FakeTrackerMode
virtual PlusStatus InternalStartRecording()
vtkIGSIOTransformRepository * TransformRepository
virtual bool IsTracker() const
virtual PlusStatus InternalDisconnect()
virtual PlusStatus InternalUpdate()
static vtkPlusDevice * New()