24 #ifndef _PREVIEWPANEL_H
25 #define _PREVIEWPANEL_H
49 bool Create(wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL,
const wxString& name = wxT(
"panel"));
85 void OnDraw(wxPaintEvent & event);
91 void DrawOutline(
const std::vector<hugin_utils::FDiff2D> & points, wxDC & dc,
int offX,
int offY);
93 void mouse2erect(
int xm,
int ym,
double &xd,
double & yd);
125 DECLARE_EVENT_TABLE()
136 virtual wxObject *DoCreateResource();
137 virtual bool CanHandle(wxXmlNode *node);
140 #endif // _PREVIEWPANEL_H
HuginBase::UIntSet m_dirtyImgs
PreviewFrame * parentWindow
HuginBase::PanoramaOptions opts
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel"))
void mapPreviewImage(unsigned int imgNr)
class to cache remapped images, loaded from the hugin small image cache.
virtual ~PreviewPanel()
dtor.
void OnUpdatePreview(wxCommandEvent &e)
void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
notifies about changes to images
std::set< unsigned int > UIntSet
void mouse2erect(int xm, int ym, double &xd, double &yd)
void Init(PreviewFrame *parent, HuginBase::Panorama *pano)
void mousePressLMBEvent(wxMouseEvent &e)
void mousePressRMBEvent(wxMouseEvent &e)
HuginBase::Panorama * pano
the model
void SetAutoUpdate(bool enabled)
void DrawOutline(const std::vector< hugin_utils::FDiff2D > &points, wxDC &dc, int offX, int offY)
void OnResize(wxSizeEvent &e)
recalculate panorama to fit the panel
void SetBlendMode(BlendMode b)
void OnMouse(wxMouseEvent &e)
SmallRemappedImageCache m_remapCache
HuginBase::PTools::Transform * m_pano2erect
this handler class will receive change events from the Panorama.
HuginBase::Nona::RemappedPanoImage< vigra::BRGBImage, vigra::BImage > RemappedImage
void OnDraw(wxPaintEvent &event)
A preview panel that renders the pictures using the panotools library.
void panoramaChanged(HuginBase::Panorama &pano)
Notification about a Panorama change.
struct to hold a image state for stitching
void DrawPreview(wxDC &dc)
vigra::Diff2D m_panoImgSize