IGSTK
igstkAscension3DGTrackerTool.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Image Guided Surgery Software Toolkit
4  Module: $RCSfile: igstkAscension3DGTrackerTool.h,v $
5  Language: C++
6  Date: $Date: 2011-02-07 15:33:08 $
7  Version: $Revision: 1.2 $
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 #ifndef __igstkAscension3DGTrackerTool_h
19 #define __igstkAscension3DGTrackerTool_h
20 
21 #include "igstkTrackerTool.h"
22 
23 namespace igstk
24 {
39 {
40 public:
41 
44 
45 
46  igstkGetMacro( PortNumber, unsigned int );
47 
49  void RequestSetPortNumber( unsigned int portNumber );
50 
51 protected:
52 
55 
57  virtual void PrintSelf( std::ostream& os, ::itk::Indent indent ) const;
58 
59 private:
60 
61  Ascension3DGTrackerTool(const Self&); //purposely not implemented
62  void operator=(const Self&); //purposely not implemented
63 
65  igstkDeclareStateMacro( Idle );
66  igstkDeclareStateMacro( PortNumberSpecified );
67 
69  igstkDeclareInputMacro( ValidPortNumber );
70  igstkDeclareInputMacro( InValidPortNumber );
71 
74  virtual bool CheckIfTrackerToolIsConfigured() const;
75 
77  void ReportInvalidPortNumberSpecifiedProcessing( );
78 
80  void ReportInvalidRequestProcessing();
81 
83  void SetPortNumberProcessing();
84 
85  unsigned int m_PortNumber;
86  unsigned int m_PortNumberToBeSet;
87 
88  bool m_TrackerToolConfigured;
89 
90 };
91 
92 } // namespace igstk
93 
94 
95 #endif // __igstk_Ascension3DGTrackerTool_h_
#define igstkGetMacro(name, type)
Get built-in type.
Definition: igstkMacros.h:105
virtual void PrintSelf(std::ostream &os,::itk::Indent indent) const
Print object information.
Base class for all the IGSTK classes.
Definition: igstkObject.h:40
Ascension specific TrackerTool class for the 3D Guidance family of trackers.
Abstract superclass for concrete IGSTK TrackerTool classes.
void RequestSetPortNumber(unsigned int portNumber)
Request setting the port number.
igstkStandardClassTraitsMacro(Ascension3DGTrackerTool, TrackerTool) virtual unsigned int GetPortNumber()
Macro with standard traits declarations.