IGSTK

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

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Image Guided Surgery Software Toolkit
00004   Module:    $RCSfile: igstkOpenIGTLinkVideoImagerTool.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-06-18 18:40:55 $
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 
00018 #ifndef __igstkOpenIGTLinkVideoImagerTool_h
00019 #define __igstkOpenIGTLinkVideoImagerTool_h
00020 
00021 #include "igstkVideoImagerTool.h"
00022 
00023 
00024 namespace igstk
00025 {
00026 
00027 class OpenIGTLinkVideoImager;
00028 
00041 class OpenIGTLinkVideoImagerTool : public VideoImagerTool
00042 {
00043 public:
00044 
00046   igstkStandardClassTraitsMacro( OpenIGTLinkVideoImagerTool, VideoImagerTool )
00047 
00048   
00049   igstkGetStringMacro( VideoImagerToolName );
00050 
00052   void RequestSetVideoImagerToolName( const std::string &);
00053 
00054 protected:
00055 
00056   OpenIGTLinkVideoImagerTool();
00057   virtual ~OpenIGTLinkVideoImagerTool();
00058 
00060   virtual void PrintSelf( std::ostream& os, ::itk::Indent indent ) const;
00061 
00062 private:
00063   OpenIGTLinkVideoImagerTool(const Self&);   //purposely not implemented
00064   void operator=(const Self&);       //purposely not implemented
00065 
00067   igstkDeclareStateMacro( Idle );
00068   igstkDeclareStateMacro( VideoImagerToolNameSpecified );
00069 
00071   igstkDeclareInputMacro( ValidVideoImagerToolName );
00072   igstkDeclareInputMacro( InValidVideoImagerToolName );
00073 
00076   virtual bool CheckIfVideoImagerToolIsConfigured() const;
00077 
00079   void ReportInvalidVideoImagerToolNameSpecifiedProcessing( );
00080 
00082   void ReportInvalidRequestProcessing();
00083 
00085   void SetVideoImagerToolNameProcessing();
00086 
00087   std::string     m_VideoImagerToolName;
00088   std::string     m_VideoImagerToolNameToBeSet;
00089 
00090   bool            m_VideoImagerToolConfigured;
00091 
00092 };
00093 
00094 } // namespace igstk
00095 
00096 
00097 #endif  // __igstk_OpenIGTLinkVideoImagerTool_h_