00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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&);
00062 void operator=(const Self&);
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 }
00093
00094
00095 #endif // __igstk_Ascension3DGTrackerTool_h_