Orfeo Toolbox  3.16
otbImageWidgetActionHandler.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 #ifndef __otbImageWidgetActionHandler_h
19 #define __otbImageWidgetActionHandler_h
20 
21 #include "itkObject.h"
22 #include "itkObjectFactory.h"
23 
24 namespace otb
25 {
39  : public itk::Object
40 {
41 public:
47 
49  itkNewMacro(Self);
50 
52  itkTypeMacro(ImageWidgetActionHandler, Object);
53 
59  virtual bool HandleWidgetEvent(const std::string& itkNotUsed(widgetId), int itkNotUsed(event))
60  {
61  return false;
62  }
63 
70  virtual bool HandleWidgetMove(const std::string& itkNotUsed(widgetId), int itkNotUsed(x), int itkNotUsed(y))
71  {
72  return false;
73  }
74 
81  virtual bool HandleWidgetResize(const std::string& itkNotUsed(widgetId), int itkNotUsed(w), int itkNotUsed(h))
82  {
83  return false;
84  }
85 
87  itkSetMacro(IsActive, bool);
88  itkGetMacro(IsActive, bool);
89  itkBooleanMacro(IsActive);
90 
91 protected:
97  void PrintSelf(std::ostream& os, itk::Indent indent) const
98  {
99  Superclass::PrintSelf(os, indent);
100  }
101 
102 private:
103  ImageWidgetActionHandler(const Self&); // purposely not implemented
104  void operator =(const Self&); // purposely not implemented
105 
108 
109 }; // end class
110 } // end namespace otb
111 #endif

Generated at Sun Feb 3 2013 00:31:20 for Orfeo Toolbox with doxygen 1.8.1.1