TranslatePanorama.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00022 #ifndef _BASICALGORITHMS_TRANSLATEPANORAMA_H
00023 #define _BASICALGORITHMS_TRANSLATEPANORAMA_H
00024 
00025 #include <hugin_shared.h>
00026 #include <algorithms/PanoramaAlgorithm.h>
00027 #include <panodata/PanoramaData.h>
00028 
00029 
00030 namespace HuginBase {
00031     
00032     
00033 class IMPEX TranslatePanorama : public PanoramaAlgorithm
00034 {
00035 
00036     public:
00038         explicit TranslatePanorama(PanoramaData& panorama, const double x = 0, const double y = 0, const double z = 0)
00039          : PanoramaAlgorithm(panorama), o_x(x), o_y(y), o_z(z)
00040         {};
00041         
00043         virtual ~TranslatePanorama() {};
00044           
00045         
00046     public:
00048         static void translatePano(PanoramaData& panorama, const double x, const double y, const double z);
00049         
00050         
00051     public:
00053         virtual bool modifiesPanoramaData() const
00054             { return true; }
00055             
00057         virtual bool runAlgorithm()
00058         {
00059             translatePano(o_panorama, o_x, o_y, o_z);
00060             return true; // let's hope so.
00061         }
00062 
00063         
00064     protected:
00065         double o_x;
00066         double o_y;
00067         double o_z;
00068 };
00069 
00070 
00071 } // namespace
00072 #endif

Generated on 3 Sep 2015 for Hugintrunk by  doxygen 1.4.7