IGSTK

/build/buildd/igstk-4.2.0/Source/igstkAscensionTrackerTool.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Image Guided Surgery Software Toolkit
00004   Module:    $RCSfile: igstkAscensionTrackerTool.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-30 19:33:49 $
00007   Version:   $Revision: 1.1 $
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 #ifndef __igstkAscensionTrackerTool_h
00018 #define __igstkAscensionTrackerTool_h
00019 
00020 #include "igstkTrackerTool.h"
00021 
00022 namespace igstk
00023 {
00037 class AscensionTrackerTool : public TrackerTool
00038 {
00039 public:
00040 
00042   igstkStandardClassTraitsMacro( AscensionTrackerTool, TrackerTool )
00043 
00044   
00045   igstkGetMacro( PortNumber, unsigned int );
00046 
00050   void RequestSetPortNumber( unsigned int portNumber );
00051 
00052 protected:
00053 
00054   AscensionTrackerTool();
00055   ~AscensionTrackerTool();
00056 
00058   virtual void PrintSelf( std::ostream& os, ::itk::Indent indent ) const;
00059 
00060 private:
00061 
00062   AscensionTrackerTool(const Self&);    //purposely not implemented
00063   void operator=(const Self&);       //purposely not implemented
00064 
00066   igstkDeclareStateMacro( Idle );
00067   igstkDeclareStateMacro( PortNumberSpecified );
00068 
00070   igstkDeclareInputMacro( ValidPortNumber );
00071   igstkDeclareInputMacro( InValidPortNumber );
00072 
00075   virtual bool CheckIfTrackerToolIsConfigured() const;
00076 
00078   void ReportInvalidPortNumberSpecifiedProcessing( );
00079 
00081   void ReportInvalidRequestProcessing();
00082 
00084   void SetPortNumberProcessing();
00085 
00086   unsigned int    m_PortNumber;
00087   unsigned int    m_PortNumberToBeSet;
00088 
00089   bool            m_TrackerToolConfigured;
00090 
00091 };  
00092 
00093 
00094 } // namespace igstk
00095 
00096 
00097 #endif  // __igstk_AscensionTrackerTool_h_