Hugin trunk 0.1
Loading...
Searching...
No Matches
wxPanoCommand.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
26#ifndef _WXPANOCOMMAND__H
27#define _WXPANOCOMMAND__H
28
30#include "PanoCommand.h"
31#include "hugin_shared.h"
33#include "base_wx/platform.h"
34
35namespace PanoCommand
36{
37
39 {
40
41 bool operator()(const std::string & file1, const std::string & file2)
42 {
43 // lets hope the operating system caches files stats.
45 };
46
47 };
48
51 {
52 public:
53 wxAddImagesCmd(HuginBase::Panorama & pano, const std::vector<std::string> & newfiles, const int preferredLensType=-1)
54 : PanoCommand(pano), files(newfiles), m_preferredLensType(preferredLensType)
55 { };
56 virtual bool processPanorama(HuginBase::Panorama& pano);
57 virtual std::string getName() const { return "add images"; };
58 private:
59 std::vector<std::string> files;
61 };
62
67 {
68 public:
69 wxLoadPTProjectCmd(HuginBase::Panorama & p, const std::string& filename, const std::string& prefix = "", const bool markAsOptimized = false, const bool clearDirty = true)
70 : PanoCommand(p), filename(filename), prefix(prefix), markAsOptimized(markAsOptimized)
71 {
72 m_clearDirty = clearDirty;
73 };
74 virtual bool processPanorama(HuginBase::Panorama& pano);
75 virtual std::string getName() const { return "load project"; };
76 private:
77 const std::string filename;
78 const std::string prefix;
79 const bool markAsOptimized;
80 };
81
86 {
87 public:
88 explicit wxNewProjectCmd(HuginBase::Panorama & p) : PanoCommand(p) { m_clearDirty = true; };
89 virtual bool processPanorama(HuginBase::Panorama& pano);
90 virtual std::string getName() const { return "new project"; };
91 };
92
97 {
98 public:
100 : PanoCommand(p), in(i)
101 { };
102 virtual bool processPanorama(HuginBase::Panorama& pano);
103 virtual std::string getName() const { return "apply template"; };
104 private:
105 std::istream & in;
106 };
107
110 {
111 public:
112 wxAddCtrlPointGridCmd(HuginBase::Panorama & p, unsigned int i1, unsigned int i2, double scale, double threshold)
113 : PanoCommand(p), img1(i1), img2(i2), dx(0), dy(0), scale(scale), cornerThreshold(threshold)
114 { }
115 virtual bool processPanorama(HuginBase::Panorama& pano);
116
117 virtual std::string getName() const { return "add control point"; };
118 private:
119 unsigned int img1, img2, dx, dy;
120 double scale;
122 };
123
125#ifdef HUGIN_HSI
127 {
128 public:
129 PythonScriptPanoCmd(HuginBase::Panorama & pano, const std::string & scriptFile)
130 : PanoCommand(pano), m_scriptFile(scriptFile)
131 { };
132 virtual bool processPanorama(HuginBase::Panorama& pano);
133 virtual std::string getName() const { return "python script"; };
134 private:
135 std::string m_scriptFile;
136 };
137#endif
138
139} // namespace PanoCommand
140
141#endif // _WXPANOCOMMAND__H
Utility calls into PanoTools using CPP interface.
Model for a panorama.
Definition Panorama.h:153
wxAddCtrlPointGridCmd(HuginBase::Panorama &p, unsigned int i1, unsigned int i2, double scale, double threshold)
virtual std::string getName() const
returns the name of the command
add image(s) to a panorama
virtual std::string getName() const
returns the name of the command
wxAddImagesCmd(HuginBase::Panorama &pano, const std::vector< std::string > &newfiles, const int preferredLensType=-1)
std::vector< std::string > files
apply a template to a panorama object
virtual std::string getName() const
returns the name of the command
wxApplyTemplateCmd(HuginBase::Panorama &p, std::istream &i)
dump the current project and load a new one.
wxLoadPTProjectCmd(HuginBase::Panorama &p, const std::string &filename, const std::string &prefix="", const bool markAsOptimized=false, const bool clearDirty=true)
virtual std::string getName() const
returns the name of the command
start a new project, reset options to values in preferences
virtual std::string getName() const
returns the name of the command
wxNewProjectCmd(HuginBase::Panorama &p)
implementation of huginApp Class
#define HUGIN_CONV_FILENAME
Definition platform.h:40
#define WXIMPEX
bool operator()(const std::string &file1, const std::string &file2)
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41