|
Hugin trunk 0.1
|
List all control points of this project. More...
#include <CPListFrame.h>

Public Member Functions | |
| CPListCtrl () | |
| ~CPListCtrl () | |
| bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_REPORT|wxLC_VIRTUAL, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxListCtrlNameStr) |
| void | Init (HuginBase::Panorama *pano) |
| virtual void | panoramaChanged (HuginBase::Panorama &pano) |
| Notification about a Panorama change. | |
| virtual void | panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &changed) |
| notifies about changes to images | |
| void | DeleteSelected () |
| Delete the selected points. | |
| void | SelectDistanceThreshold (double threshold) |
| select all cp with the given error bigger than the threshold | |
| void | SelectAll () |
| select all items | |
Public Member Functions inherited from HuginBase::PanoramaObserver | |
| virtual | ~PanoramaObserver () |
Protected Member Functions | |
| virtual wxString | OnGetItemText (long item, long column) const |
| create labels for virtual list control | |
| virtual int | OnGetItemImage (long item) const |
| show no images | |
| void | OnCPListSelectionChanged (wxListEvent &e) |
| selection event handler | |
| void | OnCPListHeaderClick (wxListEvent &e) |
| sort criterium changed | |
| void | OnColumnWidthChange (wxListEvent &e) |
| column width changed | |
| void | OnChar (wxKeyEvent &e) |
| handle keystrokes | |
Private Member Functions | |
| void | UpdateInternalCPList () |
| void | SortInternalList (bool isAscending) |
Private Attributes | |
| HuginBase::Panorama * | m_pano |
| int | m_sortCol |
| bool | m_sortAscend |
| bool | m_onlyActiveImages = false |
| std::vector< CPListItem > | m_internalCPList |
| std::map< std::string, int > | m_localIds |
List all control points of this project.
useful to jump to a specific point, or see which point are bad
Definition at line 43 of file CPListFrame.h.
| CPListCtrl::CPListCtrl | ( | ) |
Definition at line 65 of file CPListFrame.cpp.
References m_sortAscend, and m_sortCol.
| CPListCtrl::~CPListCtrl | ( | ) |
Definition at line 71 of file CPListFrame.cpp.
References m_pano, m_sortAscend, m_sortCol, HuginBase::Panorama::removeObserver(), and threshold().
| bool CPListCtrl::Create | ( | wxWindow * | parent, |
| wxWindowID | id = wxID_ANY, |
||
| const wxPoint & | pos = wxDefaultPosition, |
||
| const wxSize & | size = wxDefaultSize, |
||
| long | style = wxLC_REPORT | wxLC_VIRTUAL, |
||
| const wxValidator & | validator = wxDefaultValidator, |
||
| const wxString & | name = wxListCtrlNameStr |
||
| ) |
Definition at line 83 of file CPListFrame.cpp.
References MainFrame::Get(), m_sortAscend, m_sortCol, OnChar(), OnColumnWidthChange(), OnCPListHeaderClick(), OnCPListSelectionChanged(), and threshold().
| void CPListCtrl::DeleteSelected | ( | ) |
Delete the selected points.
Definition at line 402 of file CPListFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), DEBUG_DEBUG, MainFrame::Get(), PanoCommand::GlobalCmdHist::getInstance(), m_internalCPList, m_pano, MainFrame::ShowCtrlPoint(), and threshold().
Referenced by OnChar(), and CPListFrame::OnDeleteButton().
| void CPListCtrl::Init | ( | HuginBase::Panorama * | pano | ) |
Definition at line 123 of file CPListFrame.cpp.
References HuginBase::Panorama::addObserver(), m_pano, and panoramaChanged().
Referenced by CPListFrame::CPListFrame().
|
protected |
handle keystrokes
Definition at line 465 of file CPListFrame.cpp.
References DeleteSelected(), SelectAll(), and threshold().
Referenced by Create().
|
protected |
column width changed
Definition at line 396 of file CPListFrame.cpp.
References threshold().
Referenced by Create().
|
protected |
sort criterium changed
Definition at line 379 of file CPListFrame.cpp.
References m_sortAscend, m_sortCol, SortInternalList(), and threshold().
Referenced by Create().
|
protected |
selection event handler
Definition at line 368 of file CPListFrame.cpp.
References MainFrame::Get(), m_internalCPList, MainFrame::ShowCtrlPoint(), and threshold().
Referenced by Create().
show no images
Definition at line 177 of file CPListFrame.cpp.
create labels for virtual list control
Definition at line 130 of file CPListFrame.cpp.
References HuginBase::Panorama::getCtrlPoint(), m_internalCPList, m_pano, threshold(), HuginBase::ControlPoint::X, HuginBase::ControlPoint::X_Y, and HuginBase::ControlPoint::Y.
|
virtual |
Notification about a Panorama change.
This function will always be called, even when the change could be handled by panoramaImageAdded() or other notify functions.
This allows lazy observers to just listen to panoramaChanged().
Implements HuginBase::PanoramaObserver.
Definition at line 182 of file CPListFrame.cpp.
References MainFrame::Get(), MainFrame::GetOptimizeOnlyActiveImages(), MainFrame::IsShowingCorrelation(), m_internalCPList, m_onlyActiveImages, threshold(), and UpdateInternalCPList().
Referenced by Init().
|
inlinevirtual |
notifies about changes to images
Images might have been added/removed. to find out how many images are still there, use Panorama::getNrOfImages.
| pano | the panorama object that changed |
| changed | set of changed images |
Implements HuginBase::PanoramaObserver.
Definition at line 58 of file CPListFrame.h.
| void CPListCtrl::SelectAll | ( | ) |
select all items
Definition at line 457 of file CPListFrame.cpp.
References m_internalCPList, and threshold().
Referenced by OnChar().
select all cp with the given error bigger than the threshold
Definition at line 440 of file CPListFrame.cpp.
References HuginBase::Panorama::getCtrlPoints(), m_internalCPList, m_pano, and threshold().
Referenced by CPListFrame::OnSelectButton().
Definition at line 292 of file CPListFrame.cpp.
References HuginBase::Panorama::getCtrlPoints(), m_internalCPList, m_pano, m_sortAscend, m_sortCol, and threshold().
Referenced by OnCPListHeaderClick(), and UpdateInternalCPList().
|
private |
Definition at line 205 of file CPListFrame.cpp.
References HuginBase::Panorama::getActiveImages(), HuginBase::Panorama::getCtrlPoints(), CPListItem::globalIndex, m_internalCPList, m_localIds, m_onlyActiveImages, m_pano, makePairId(), set_contains(), SortInternalList(), and threshold().
Referenced by panoramaChanged().
|
private |
Definition at line 87 of file CPListFrame.h.
Referenced by DeleteSelected(), OnCPListSelectionChanged(), OnGetItemText(), panoramaChanged(), SelectAll(), SelectDistanceThreshold(), SortInternalList(), and UpdateInternalCPList().
|
private |
Definition at line 88 of file CPListFrame.h.
Referenced by UpdateInternalCPList().
Definition at line 86 of file CPListFrame.h.
Referenced by panoramaChanged(), and UpdateInternalCPList().
|
private |
Definition at line 82 of file CPListFrame.h.
Referenced by DeleteSelected(), Init(), OnGetItemText(), SelectDistanceThreshold(), SortInternalList(), UpdateInternalCPList(), and ~CPListCtrl().
|
private |
Definition at line 85 of file CPListFrame.h.
Referenced by CPListCtrl(), Create(), OnCPListHeaderClick(), SortInternalList(), and ~CPListCtrl().
|
private |
Definition at line 84 of file CPListFrame.h.
Referenced by CPListCtrl(), Create(), OnCPListHeaderClick(), SortInternalList(), and ~CPListCtrl().