IGSTK
igstkOpenIGTLinkVideoImagerTool.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Image Guided Surgery Software Toolkit
4  Module: $RCSfile: igstkOpenIGTLinkVideoImagerTool.h,v $
5  Language: C++
6  Date: $Date: 2009-06-18 18:40:55 $
7  Version: $Revision: 1.1 $
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 __igstkOpenIGTLinkVideoImagerTool_h
19 #define __igstkOpenIGTLinkVideoImagerTool_h
20 
21 #include "igstkVideoImagerTool.h"
22 
23 
24 namespace igstk
25 {
26 
27 class OpenIGTLinkVideoImager;
28 
42 {
43 public:
44 
47 
48 
49  igstkGetStringMacro( VideoImagerToolName );
50 
52  void RequestSetVideoImagerToolName( const std::string &);
53 
54 protected:
55 
58 
60  virtual void PrintSelf( std::ostream& os, ::itk::Indent indent ) const;
61 
62 private:
63  OpenIGTLinkVideoImagerTool(const Self&); //purposely not implemented
64  void operator=(const Self&); //purposely not implemented
65 
67  igstkDeclareStateMacro( Idle );
68  igstkDeclareStateMacro( VideoImagerToolNameSpecified );
69 
71  igstkDeclareInputMacro( ValidVideoImagerToolName );
72  igstkDeclareInputMacro( InValidVideoImagerToolName );
73 
76  virtual bool CheckIfVideoImagerToolIsConfigured() const;
77 
79  void ReportInvalidVideoImagerToolNameSpecifiedProcessing( );
80 
82  void ReportInvalidRequestProcessing();
83 
85  void SetVideoImagerToolNameProcessing();
86 
87  std::string m_VideoImagerToolName;
88  std::string m_VideoImagerToolNameToBeSet;
89 
90  bool m_VideoImagerToolConfigured;
91 
92 };
93 
94 } // namespace igstk
95 
96 
97 #endif // __igstk_OpenIGTLinkVideoImagerTool_h_