PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusMicrochipTracker.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 __vtkPlusMicrochipTracker_h
8 #define __vtkPlusMicrochipTracker_h
9 
10 #include "vtkPlusDataCollectionExport.h"
11 
13 
20 class vtkPlusDataCollectionExport vtkPlusMicrochipTracker : public vtkPlusGenericSerialDevice
21 {
22 public:
23 
24  static vtkPlusMicrochipTracker *New();
26 
29 
32 
39 
40  virtual bool IsTracker() const { return true; }
41 
42 protected:
43 
45  PlusStatus ParseMessage(std::string& textReceived, double* rotationQuat);
46 
49 
50 private: // Functions.
51 
53  void operator=( const vtkPlusMicrochipTracker& );
54 
55  vtkPlusDataSource* OrientationSensorTool;
56  // Store the last transform so that we can put the last value in the buffer if there is no update received from the sensor
57  vtkMatrix4x4* OrientationSensorToTracker;
58 
59 private: // Variables.
60 
61 };
62 
63 #endif
igsioStatus PlusStatus
Definition: PlusCommon.h:40
Interface for acquiring data from a Microchip MM7150 motion module.
virtual bool IsTracker() const
Generic interface for communicating with a serial device.
static vtkPlusGenericSerialDevice * New()
Interface to a 3D positioning tool, video source, or generalized data stream.