IGSTK
igstkAscensionTrackerTool.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Image Guided Surgery Software Toolkit
4  Module: $RCSfile: igstkAscensionTrackerTool.h,v $
5  Language: C++
6  Date: $Date: 2009-01-30 19:33:49 $
7  Version: $Revision: 1.1 $
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 #ifndef __igstkAscensionTrackerTool_h
18 #define __igstkAscensionTrackerTool_h
19 
20 #include "igstkTrackerTool.h"
21 
22 namespace igstk
23 {
38 {
39 public:
40 
43 
44 
45  igstkGetMacro( PortNumber, unsigned int );
46 
50  void RequestSetPortNumber( unsigned int portNumber );
51 
52 protected:
53 
56 
58  virtual void PrintSelf( std::ostream& os, ::itk::Indent indent ) const;
59 
60 private:
61 
62  AscensionTrackerTool(const Self&); //purposely not implemented
63  void operator=(const Self&); //purposely not implemented
64 
66  igstkDeclareStateMacro( Idle );
67  igstkDeclareStateMacro( PortNumberSpecified );
68 
70  igstkDeclareInputMacro( ValidPortNumber );
71  igstkDeclareInputMacro( InValidPortNumber );
72 
75  virtual bool CheckIfTrackerToolIsConfigured() const;
76 
78  void ReportInvalidPortNumberSpecifiedProcessing( );
79 
81  void ReportInvalidRequestProcessing();
82 
84  void SetPortNumberProcessing();
85 
86  unsigned int m_PortNumber;
87  unsigned int m_PortNumberToBeSet;
88 
89  bool m_TrackerToolConfigured;
90 
91 };
92 
93 
94 } // namespace igstk
95 
96 
97 #endif // __igstk_AscensionTrackerTool_h_
virtual void PrintSelf(std::ostream &os,::itk::Indent indent) const
Print object information.
#define igstkGetMacro(name, type)
Get built-in type.
Definition: igstkMacros.h:105
Base class for all the IGSTK classes.
Definition: igstkObject.h:40
Abstract superclass for concrete IGSTK TrackerTool classes.
void RequestSetPortNumber(unsigned int portNumber)
Request setting the port number.
A Ascension-specific TrackerTool class.
igstkStandardClassTraitsMacro(AscensionTrackerTool, TrackerTool) virtual unsigned int GetPortNumber()
Macro with standard traits declarations.