Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages
hugin_base/algorithms/nona/CenterHorizontally.h
Go to the documentation of this file.00001 // -*- c-basic-offset: 4 -*- 00026 #ifndef _CENTERHORIZONTALLY_H 00027 #define _CENTERHORIZONTALLY_H 00028 00029 #include <hugin_shared.h> 00030 #include <algorithm/PanoramaAlgorithm.h> 00031 00032 00033 00034 namespace HuginBase { 00035 00036 00037 class IMPEX CenterHorizontally : public PanoramaAlgorithm 00038 { 00039 00040 public: 00042 CenterHorizontally(PanoramaData& panorama) 00043 : PanoramaAlgorithm(panorama) 00044 {}; 00045 00047 virtual ~CenterHorizontally() 00048 {}; 00049 00050 00051 public: 00053 virtual bool modifiesPanoramaData() const 00054 { return true; } 00055 00057 virtual bool runAlgorithm() 00058 { 00059 centerHorizontically(o_panorama); 00060 return true; // let's hope so. 00061 } 00062 00063 00064 public: 00066 static void centerHorizontically(PanoramaData& panorama); 00067 00068 }; 00069 00070 00071 } // namespace 00072 #endif
1.3.9.1