PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusReadTrackedSignals.h
Go to the documentation of this file.
1 
7 #ifndef __vtkPlusReadTrackedSignals_h
8 #define __vtkPlusReadTrackedSignals_h
9 
10 #include "vtkPlusCalibrationExport.h"
11 
12 #include <deque>
13 #include "vtkObject.h"
14 
15 //class vtkIGSIOTrackedFrameList;
16 
22 class vtkPlusCalibrationExport vtkPlusReadTrackedSignals : public vtkObject
23 {
24 public:
25  static vtkPlusReadTrackedSignals* New();
26  vtkTypeMacro(vtkPlusReadTrackedSignals, vtkObject);
27  virtual void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
28 
30  void SetTrackerFrames(vtkIGSIOTrackedFrameList* trackerFrames);
31 
33  void SetSignalTimeRange(double rangeMin, double rangeMax);
34 
36  void SetProbeToReferenceTransformName(const std::string& probeToReferenceTransformName);
37 
42  PlusStatus Update();
43 
45  void GetTimestamps(std::deque<double>& timestamps);
46 
47  void GetSignalStylusRef(std::deque<double>& signalComponent);
48  void GetSignalStylusTipRef(std::deque<double>& signalComponent);
49  void GetSignalZ(std::deque<double>& signalComponent);
50  void GetSignalStylusTipSpeed(std::deque<double>& signalComponent);
51 
52  PlusStatus ReadConfiguration(vtkXMLDataElement* aConfig);
53  vtkGetStringMacro(ObjectMarkerCoordinateFrame);
54  vtkGetStringMacro(ReferenceCoordinateFrame);
55  vtkGetStringMacro(ObjectPivotPointCoordinateFrame);
56 
57 protected:
59  virtual ~vtkPlusReadTrackedSignals();
60 
61  vtkSetStringMacro(ObjectMarkerCoordinateFrame);
62  vtkSetStringMacro(ReferenceCoordinateFrame);
63  vtkSetStringMacro(ObjectPivotPointCoordinateFrame);
64 
65  PlusStatus VerifyInputFrames();
66  PlusStatus ComputeTrackerPositionMetric();
67 
68  vtkIGSIOTrackedFrameList* m_TrackerFrames;
69 
76 
77  vtkSmartPointer<vtkMatrix4x4> StylusTipToStylusTransform;
78 
79  std::deque<double> m_SignalTimestamps;
80  std::deque<double> m_SignalStylusRef;
81  std::deque<double> m_SignalStylusTipRef;
82  std::deque<double> m_SignalStylusTipSpeed;
83 
86 
87 private:
89  void operator=(const vtkPlusReadTrackedSignals&);
90 };
91 
92 #endif // __vtkPlusReadTrackedSignals_h
std::deque< double > m_SignalStylusRef
std::deque< double > m_SignalStylusTipSpeed
igsioStatus PlusStatus
Definition: PlusCommon.h:40
#define VTK_OVERRIDE
Definition: PlusCommon.h:49
vtkSmartPointer< vtkMatrix4x4 > StylusTipToStylusTransform
vtkIGSIOTrackedFrameList * m_TrackerFrames
std::deque< double > m_SignalTimestamps
Extract the motion component along the the principal axis of the motion. Used for computing a positio...
std::deque< double > m_SignalStylusTipRef