24#ifndef _PREVIEWPANEL_H
25#define _PREVIEWPANEL_H
struct to hold a image state for stitching
this handler class will receive change events from the Panorama.
class to cache remapped images, loaded from the hugin small image cache.
virtual wxObject * DoCreateResource()
virtual bool CanHandle(wxXmlNode *node)
A preview panel that renders the pictures using the panotools library.
HuginBase::Panorama * pano
the model
SmallRemappedImageCache m_remapCache
void mouse2erect(int xm, int ym, double &xd, double &yd)
void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
notifies about changes to images
void Init(PreviewFrame *parent, HuginBase::Panorama *pano)
virtual ~PreviewPanel()
dtor.
HuginBase::Nona::RemappedPanoImage< vigra::BRGBImage, vigra::BImage > RemappedImage
PreviewFrame * parentWindow
void OnMouse(wxMouseEvent &e)
vigra::Diff2D m_panoImgSize
void DrawOutline(const std::vector< hugin_utils::FDiff2D > &points, wxDC &dc, int offX, int offY)
HuginBase::PTools::Transform * m_pano2erect
void panoramaChanged(HuginBase::Panorama &pano)
Notification about a Panorama change.
void OnUpdatePreview(wxCommandEvent &e)
HuginBase::UIntSet m_dirtyImgs
void DrawPreview(wxDC &dc)
void mousePressRMBEvent(wxMouseEvent &e)
void OnPaint(wxPaintEvent &event)
void OnResize(wxSizeEvent &e)
recalculate panorama to fit the panel
void SetAutoUpdate(bool enabled)
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 SetBlendMode(BlendMode b)
HuginBase::PanoramaOptions opts
void mousePressLMBEvent(wxMouseEvent &e)
void mapPreviewImage(unsigned int imgNr)
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.