IGSTK
|
00001 /*========================================================================= 00002 00003 Program: Image Guided Surgery Software Toolkit 00004 Module: $RCSfile: igstkAscension3DGTrackerTool.h,v $ 00005 Language: C++ 00006 Date: $Date: 2011-02-07 15:33:08 $ 00007 Version: $Revision: 1.2 $ 00008 00009 Copyright (c) ISC Insight Software Consortium. All rights reserved. 00010 See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef __igstkAscension3DGTrackerTool_h 00019 #define __igstkAscension3DGTrackerTool_h 00020 00021 #include "igstkTrackerTool.h" 00022 00023 namespace igstk 00024 { 00038 class Ascension3DGTrackerTool : public TrackerTool 00039 { 00040 public: 00041 00043 igstkStandardClassTraitsMacro( Ascension3DGTrackerTool, TrackerTool ) 00044 00045 00046 igstkGetMacro( PortNumber, unsigned int ); 00047 00049 void RequestSetPortNumber( unsigned int portNumber ); 00050 00051 protected: 00052 00053 Ascension3DGTrackerTool(); 00054 ~Ascension3DGTrackerTool(); 00055 00057 virtual void PrintSelf( std::ostream& os, ::itk::Indent indent ) const; 00058 00059 private: 00060 00061 Ascension3DGTrackerTool(const Self&); //purposely not implemented 00062 void operator=(const Self&); //purposely not implemented 00063 00065 igstkDeclareStateMacro( Idle ); 00066 igstkDeclareStateMacro( PortNumberSpecified ); 00067 00069 igstkDeclareInputMacro( ValidPortNumber ); 00070 igstkDeclareInputMacro( InValidPortNumber ); 00071 00074 virtual bool CheckIfTrackerToolIsConfigured() const; 00075 00077 void ReportInvalidPortNumberSpecifiedProcessing( ); 00078 00080 void ReportInvalidRequestProcessing(); 00081 00083 void SetPortNumberProcessing(); 00084 00085 unsigned int m_PortNumber; 00086 unsigned int m_PortNumberToBeSet; 00087 00088 bool m_TrackerToolConfigured; 00089 00090 }; 00091 00092 } // namespace igstk 00093 00094 00095 #endif // __igstk_Ascension3DGTrackerTool_h_