Hugin trunk 0.1
Loading...
Searching...
No Matches
OptimizePhotometricPanel.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
8/* This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This software is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this software. If not, see
20 * <http://www.gnu.org/licenses/>.
21 *
22 */
23
24#ifndef _OPTIMIZE_PHOTO_PANEL_H
25#define _OPTIMIZE_PHOTO_PANEL_H
26
27#include <panodata/Panorama.h>
29#include "GuiLevel.h"
30
31class ImagesTreeCtrl;
32
38{
39
40
41public:
43
44 bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = "panel");
45
46 void Init(HuginBase::Panorama * pano);
47
49
51 virtual void panoramaChanged(HuginBase::Panorama & pano);
53 virtual void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet & imgNr);
54
56 void OnOptimizeButton(wxCommandEvent & e);
59 void SetOnlyActiveImages(const bool onlyActive);
60
61protected:
62
63 void OnClose(wxCloseEvent& e);
64 void OnReset(wxCommandEvent& e);
66 void OnCheckOnlyActiveImages(wxCommandEvent &e);
67
68 void runOptimizer(const HuginBase::UIntSet & img);
69
71
74
76
77private:
79};
80
82class OptimizePhotometricPanelXmlHandler : public wxXmlResourceHandler
83{
85
86public:
88 virtual wxObject *DoCreateResource();
89 virtual bool CanHandle(wxXmlNode *node);
90};
91
92#endif // _OPTIMIZE_PHOTO_PANEL_H
declaration of helper for work with different GuiLevels
GuiLevel
Definition GuiLevel.h:32
Somewhere to specify what variables belong to what.
this handler class will receive change events from the Panorama.
Model for a panorama.
Definition Panorama.h:153
the main images tree control, used on images and optimizer tabs
Definition ImagesTree.h:37
void runOptimizer(const HuginBase::UIntSet &img)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
void Init(HuginBase::Panorama *pano)
virtual void panoramaChanged(HuginBase::Panorama &pano)
receives notification about panorama changes
void OnCheckOnlyActiveImages(wxCommandEvent &e)
handle "only active images" checkbox
void SetGuiLevel(GuiLevel newGuiLevel)
virtual void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
receives notification about panorama changes
void SetOnlyActiveImages(const bool onlyActive)
for external setting of "only active image" checkbox
void OnOptimizeButton(wxCommandEvent &e)
run the optimizer
std::set< unsigned int > UIntSet
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