#include <PreviewPanel.h>
Inheritance diagram for PreviewPanel:

Public Types | |
| enum | BlendMode { BLEND_COPY, BLEND_DIFFERENCE } |
Public Member Functions | |
| PreviewPanel () | |
| ctor. | |
| 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 | Init (PreviewFrame *parent, PT::Panorama *pano) |
| virtual | ~PreviewPanel () |
| dtor. | |
| void | panoramaChanged (PT::Panorama &pano) |
| void | panoramaImagesChanged (PT::Panorama &pano, const PT::UIntSet &imgNr) |
| void | SetAutoUpdate (bool enabled) |
| void | ForceUpdate () |
| void | SetBlendMode (BlendMode b) |
Private Types | |
| typedef PT::RemappedPanoImage< vigra::BRGBImage, vigra::BImage > | RemappedImage |
Private Member Functions | |
| void | DrawPreview (wxDC &dc) |
| void | updatePreview () |
| void | mapPreviewImage (unsigned int imgNr) |
| void | OnResize (wxSizeEvent &e) |
| recalculate panorama to fit the panel | |
| void | OnDraw (wxPaintEvent &event) |
| void | OnMouse (wxMouseEvent &e) |
| void | mousePressRMBEvent (wxMouseEvent &e) |
| void | mousePressLMBEvent (wxMouseEvent &e) |
| void | OnUpdatePreview (wxCommandEvent &e) |
| void | DrawOutline (const std::vector< hugin_utils::FDiff2D > &points, wxDC &dc, int offX, int offY) |
| void | mouse2erect (int xm, int ym, double &xd, double &yd) |
Private Attributes | |
| PT::Panorama * | pano |
| the model | |
| bool | m_autoPreview |
| vigra::Diff2D | m_panoImgSize |
| wxBitmap * | m_panoBitmap |
| PT::UIntSet | m_dirtyImgs |
| PT::PanoramaOptions | opts |
| PTools::Transform * | m_pano2erect |
| SmallRemappedImageCache | m_remapCache |
| BlendMode | m_blendMode |
| PreviewFrame * | parentWindow |
| wxCursor * | m_cursor |
| bool | m_state_rendering |
| bool | m_rerender |
| bool | m_imgsDirty |
Lets hope this works out fine..
Definition at line 40 of file PreviewPanel.h.
|
|
Definition at line 42 of file PreviewPanel.h. |
|
|
Definition at line 69 of file PreviewPanel.h. |
|
|
ctor.
Definition at line 68 of file PreviewPanel.cpp. |
|
|
dtor.
Definition at line 109 of file PreviewPanel.cpp. References DEBUG_TRACE, vigra_ext::ThreadManager::get(), pano, and HuginBase::Panorama::removeObserver(). |
|
||||||||||||||||||||||||||||
|
Definition at line 77 of file PreviewPanel.cpp. References DEBUG_DEBUG, DEBUG_TRACE, huginApp::Get(), huginApp::GetXRCPath(), m_cursor, and m_state_rendering. |
|
||||||||||||||||||||
|
Definition at line 802 of file PreviewPanel.cpp. References m_panoImgSize, and hugin_utils::roundi(). Referenced by DrawPreview(). |
|
|
Definition at line 528 of file PreviewPanel.cpp. References DEBUG_DEBUG, DEBUG_TRACE, DrawOutline(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::getROI(), HuginBase::PanoramaOptions::getSize(), m_panoBitmap, m_panoImgSize, celeste::min(), and pano. Referenced by OnDraw(), and updatePreview(). |
|
|
Definition at line 213 of file PreviewPanel.cpp. References updatePreview(). Referenced by mousePressLMBEvent(), mousePressRMBEvent(), PreviewFrame::OnAutoPreviewToggle(), PreviewFrame::OnFullScreen(), OnResize(), PreviewFrame::OnUpdate(), panoramaChanged(), and PreviewFrame::updatePano(). |
|
||||||||||||
|
Definition at line 101 of file PreviewPanel.cpp. References HuginBase::Panorama::addObserver(), pano, and parentWindow. |
|
|
|
|
||||||||||||||||||||
|
Definition at line 783 of file PreviewPanel.cpp. References m_pano2erect, and m_panoImgSize. Referenced by mousePressLMBEvent(), mousePressRMBEvent(), and OnMouse(). |
|
|
Definition at line 701 of file PreviewPanel.cpp. References CommandHistory::addCommand(), DEBUG_DEBUG, DEG_TO_RAD, ForceUpdate(), GlobalCmdHist::getInstance(), Matrix3::GetRotationPT(), mouse2erect(), pano, RAD_TO_DEG, and Matrix3::SetRotationPT(). |
|
|
Definition at line 729 of file PreviewPanel.cpp. References CommandHistory::addCommand(), DEBUG_DEBUG, DEG_TO_RAD, ForceUpdate(), GlobalCmdHist::getInstance(), mouse2erect(), pano, and RAD_TO_DEG. |
|
|
Definition at line 682 of file PreviewPanel.cpp. References DrawPreview(). |
|
|
Definition at line 755 of file PreviewPanel.cpp. References mouse2erect(), and parentWindow. |
|
|
recalculate panorama to fit the panel
Definition at line 688 of file PreviewPanel.cpp. References DEBUG_TRACE, ForceUpdate(), m_panoImgSize, and m_remapCache. |
|
|
|
|
|
||||||||||||
|
Definition at line 173 of file PreviewPanel.cpp. References DEBUG_TRACE, and m_imgsDirty. |
|
|
Definition at line 218 of file PreviewPanel.cpp. References m_autoPreview, and updatePreview(). Referenced by PreviewFrame::OnAutoPreviewToggle(). |
|
|
Definition at line 207 of file PreviewPanel.cpp. References m_blendMode, and updatePreview(). Referenced by PreviewFrame::OnBlendChoice(). |
|
|
|
Definition at line 98 of file PreviewPanel.h. Referenced by panoramaChanged(), and SetAutoUpdate(). |
|
|
Definition at line 116 of file PreviewPanel.h. Referenced by SetBlendMode(). |
|
|
Definition at line 119 of file PreviewPanel.h. Referenced by Create(). |
|
|
Definition at line 105 of file PreviewPanel.h. |
|
|
Definition at line 123 of file PreviewPanel.h. Referenced by panoramaChanged(), and panoramaImagesChanged(). |
|
|
Definition at line 111 of file PreviewPanel.h. Referenced by mouse2erect(), and updatePreview(). |
|
|
Definition at line 102 of file PreviewPanel.h. Referenced by DrawPreview(), and updatePreview(). |
|
|
Definition at line 100 of file PreviewPanel.h. Referenced by DrawOutline(), DrawPreview(), mouse2erect(), OnResize(), and updatePreview(). |
|
|
Definition at line 114 of file PreviewPanel.h. Referenced by OnResize(), panoramaChanged(), and updatePreview(). |
|
|
Definition at line 122 of file PreviewPanel.h. Referenced by updatePreview(). |
|
|
Definition at line 121 of file PreviewPanel.h. Referenced by Create(), and updatePreview(). |
|
|
Definition at line 108 of file PreviewPanel.h. Referenced by panoramaChanged(), and updatePreview(). |
|
|
the model
Definition at line 96 of file PreviewPanel.h. Referenced by DrawPreview(), Init(), mousePressLMBEvent(), mousePressRMBEvent(), updatePreview(), and ~PreviewPanel(). |
|
|
Definition at line 118 of file PreviewPanel.h. Referenced by Init(), OnMouse(), and updatePreview(). |
1.3.9.1