IGSTK
igstkInfiniTrackTrackerTool.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Image Guided Surgery Software Toolkit
4  Module: $RCSfile: igstkInfiniTrackTrackerTool.h,v $
5  Language: C++
6  Date: $Date: 2011-01-18 21:40:16 $
7  Version: $Revision: 1.3 $
8 
9  Copyright (c) ISC Insight Software Consortium. All rights reserved.
10  See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 
18 
19 #ifndef __igstkInfiniTrackTrackerTool_h
20 #define __igstkInfiniTrackTrackerTool_h
21 
22 #ifdef _MSC_VER
23 #pragma warning ( disable : 4018 )
24 //Warning about: identifier was truncated to '255' characters in the debug
25 //information (MVC6.0 Debug)
26 #pragma warning( disable : 4284 )
27 #endif
28 
29 #include "igstkTrackerTool.h"
30 
31 
32 namespace igstk
33 {
34 
35 class igstkInfiniTrackTracker;
36 
52 {
53 
54 public:
55 
58 
59 
60  igstkGetStringMacro (MarkerName);
61 
63  void RequestSetMarkerName (const std::string & markerName);
64 
65 protected:
66 
69 
71  virtual ~InfiniTrackTrackerTool();
72 
74  virtual void PrintSelf( std::ostream& os, ::itk::Indent indent ) const;
75 
76 private:
77  InfiniTrackTrackerTool(const Self&); //purposely not implemented
78  void operator=(const Self&); //purposely not implemented
79 
83  virtual bool CheckIfTrackerToolIsConfigured () const;
84 
86  void ReportInvalidMarkerNameSpecifiedProcessing ();
87 
89  void ReportInvalidRequestProcessing ();
90 
92  void SetMarkerNameProcessing ();
93 
95  igstkDeclareStateMacro (Idle);
96  igstkDeclareStateMacro (MarkerNameSpecified);
97 
99  igstkDeclareInputMacro (ValidMarkerName);
100  igstkDeclareInputMacro (InValidMarkerName);
101 
103  std::string m_MarkerName;
104  std::string m_MarkerNameToBeSet;
105 
107  bool m_TrackerToolConfigured;
108 
109 };
110 
111 } // namespace igstk
112 
113 
114 #endif // __igstk_InfiniTrackTrackerTool_h_