Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RotatePanorama.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
26 #ifndef _BASICALGORITHMS_ROTATEPANORAMA_H
27 #define _BASICALGORITHMS_ROTATEPANORAMA_H
28 
29 #include <hugin_shared.h>
31 
32 #include <panodata/PanoramaData.h>
33 
34 
35 namespace HuginBase {
36 
37 
39 {
40 
41  public:
43  RotatePanorama(PanoramaData& panorama, const Matrix3& transformMat)
44  : PanoramaAlgorithm(panorama), o_transformMat(transformMat)
45  {};
46 
48  RotatePanorama(PanoramaData& panorama, double yaw, double pitch, double roll);
49 
51  virtual ~RotatePanorama() {};
52 
53 
54  public:
56  static void rotatePano(PanoramaData& panorama, const Matrix3& transformMat);
57 
58 
59  public:
61  virtual bool modifiesPanoramaData() const
62  { return true; }
63 
65  virtual bool runAlgorithm()
66  {
67  rotatePano(o_panorama, o_transformMat);
68  return true; // let's hope so.
69  }
70 
71 
72  protected:
74 };
75 
76 
77 } // namespace
78 #endif
general : Matrix3 is a class for handling 3x3 Matrix manipulation.
Definition: Matrix3.h:37
RotatePanorama(PanoramaData &panorama, const Matrix3 &transformMat)
virtual bool modifiesPanoramaData() const
returns true if the algorithm changes the PanoramaData.
Model for a panorama.
Definition: PanoramaData.h:81
#define IMPEX
Definition: hugin_shared.h:39
virtual bool runAlgorithm()
implementation of the algorithm.