CPListFrame Class Reference

List all control points of this project. More...

#include <CPListFrame.h>

Inheritance diagram for CPListFrame:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CPListFrame (MainFrame *parent, PT::Panorama &pano)
 ctor.
virtual ~CPListFrame ()
 dtor.
void panoramaImagesChanged (PT::Panorama &pano, const PT::UIntSet &imgNr)
void DeleteSelected ()
 Delete the selected points.
void SelectAll ()
 Select all points.

Private Member Functions

void SortList ()
void SetCPItem (int i, const PT::ControlPoint &p)
void OnCPListSelectionChanged (wxListEvent &e)
void OnCPListHeaderClick (wxListEvent &e)
void OnDeleteButton (wxCommandEvent &e)
void OnFineTuneButton (wxCommandEvent &e)
void OnSelectButton (wxCommandEvent &e)
void updateList ()
void OnColumnWidthChange (wxListEvent &e)
void OnClose (wxCloseEvent &event)
std::string makePairId (unsigned int id1, unsigned int id2)
 DECLARE_EVENT_TABLE ()

Private Attributes

MainFramem_mainFrame
PT::Panoramam_pano
wxListCtrl * m_list
bool m_verbose
int m_sortCol
bool m_sortAscend
bool m_freeze
std::map< std::string, int > m_localIds

Detailed Description

List all control points of this project.

useful to jump to a specific point, or see which point are bad

Definition at line 33 of file CPListFrame.h.


Constructor & Destructor Documentation

CPListFrame::CPListFrame MainFrame parent,
PT::Panorama pano
 

ctor.

CPListFrame::~CPListFrame  )  [virtual]
 

dtor.

Definition at line 356 of file CPListFrame.cpp.

References DEBUG_DEBUG, DEBUG_TRACE, m_list, m_pano, HuginBase::Panorama::removeObserver(), and StoreFramePosition().


Member Function Documentation

CPListFrame::DECLARE_EVENT_TABLE  )  [private]
 

void CPListFrame::DeleteSelected  ) 
 

Delete the selected points.

Definition at line 684 of file CPListFrame.cpp.

References CommandHistory::addCommand(), DEBUG_DEBUG, GlobalCmdHist::getInstance(), m_list, m_mainFrame, m_pano, and MainFrame::ShowCtrlPoint().

Referenced by OnDeleteButton(), and DelKeyHandler::OnKey().

std::string CPListFrame::makePairId unsigned int  id1,
unsigned int  id2
[private]
 

Definition at line 762 of file CPListFrame.cpp.

Referenced by SetCPItem().

void CPListFrame::OnClose wxCloseEvent &  event  )  [private]
 

Definition at line 592 of file CPListFrame.cpp.

References DEBUG_DEBUG, m_mainFrame, and MainFrame::OnCPListFrameClosed().

void CPListFrame::OnColumnWidthChange wxListEvent &  e  )  [private]
 

Definition at line 738 of file CPListFrame.cpp.

References m_list.

void CPListFrame::OnCPListHeaderClick wxListEvent &  e  )  [private]
 

Definition at line 578 of file CPListFrame.cpp.

References m_sortAscend, m_sortCol, and SortList().

void CPListFrame::OnCPListSelectionChanged wxListEvent &  e  )  [private]
 

Definition at line 745 of file CPListFrame.cpp.

References DEBUG_DEBUG, DEBUG_TRACE, m_list, m_mainFrame, and MainFrame::ShowCtrlPoint().

void CPListFrame::OnDeleteButton wxCommandEvent &  e  )  [private]
 

Definition at line 600 of file CPListFrame.cpp.

References DeleteSelected().

void CPListFrame::OnFineTuneButton wxCommandEvent &  e  )  [private]
 

Definition at line 732 of file CPListFrame.cpp.

References DEBUG_WARN.

void CPListFrame::OnSelectButton wxCommandEvent &  e  )  [private]
 

Definition at line 613 of file CPListFrame.cpp.

References DEBUG_DEBUG, hugin_utils::doubleTowxString(), HuginBase::Panorama::getCtrlPoints(), m_freeze, m_list, m_pano, str2double(), and threshold().

void CPListFrame::panoramaImagesChanged PT::Panorama pano,
const PT::UIntSet imgNr
 

Definition at line 379 of file CPListFrame.cpp.

References DEBUG_TRACE, HuginBase::Panorama::getCtrlPoints(), m_list, and updateList().

void CPListFrame::SelectAll  ) 
 

Select all points.

Definition at line 723 of file CPListFrame.cpp.

References m_list.

Referenced by DelKeyHandler::OnKey().

void CPListFrame::SetCPItem int  i,
const PT::ControlPoint &  p
[private]
 

Definition at line 421 of file CPListFrame.cpp.

References DEBUG_ASSERT, DEBUG_INFO, HuginBase::ControlPoint::error, HuginBase::ControlPoint::image1Nr, HuginBase::ControlPoint::image2Nr, m_list, m_localIds, makePairId(), HuginBase::ControlPoint::mode, HuginBase::ControlPoint::x1, HuginBase::ControlPoint::x2, HuginBase::ControlPoint::y1, and HuginBase::ControlPoint::y2.

Referenced by updateList().

void CPListFrame::SortList  )  [private]
 

Definition at line 511 of file CPListFrame.cpp.

References compareCPNr(), compareCPNrGreater(), compareError(), compareErrorGreater(), compareImg1Nr(), compareImg1NrGreater(), compareImg2Nr(), compareImg2NrGreater(), compareMode(), compareModeGreater(), DEBUG_DEBUG, DEBUG_ERROR, DEBUG_TRACE, m_list, and m_sortCol.

Referenced by OnCPListHeaderClick(), and updateList().

void CPListFrame::updateList  )  [private]
 

Definition at line 472 of file CPListFrame.cpp.

References HuginBase::Panorama::getCtrlPoints(), m_list, m_localIds, m_pano, m_sortAscend, m_sortCol, SetCPItem(), and SortList().

Referenced by panoramaImagesChanged().


Member Data Documentation

bool CPListFrame::m_freeze [private]
 

Definition at line 83 of file CPListFrame.h.

Referenced by OnSelectButton().

wxListCtrl* CPListFrame::m_list [private]
 

Definition at line 72 of file CPListFrame.h.

Referenced by DeleteSelected(), OnColumnWidthChange(), OnCPListSelectionChanged(), OnSelectButton(), panoramaImagesChanged(), SelectAll(), SetCPItem(), SortList(), updateList(), and ~CPListFrame().

std::map<std::string, int> CPListFrame::m_localIds [private]
 

Definition at line 85 of file CPListFrame.h.

Referenced by SetCPItem(), and updateList().

MainFrame* CPListFrame::m_mainFrame [private]
 

Definition at line 70 of file CPListFrame.h.

Referenced by DeleteSelected(), OnClose(), and OnCPListSelectionChanged().

PT::Panorama& CPListFrame::m_pano [private]
 

Definition at line 71 of file CPListFrame.h.

Referenced by DeleteSelected(), OnSelectButton(), updateList(), and ~CPListFrame().

bool CPListFrame::m_sortAscend [private]
 

Definition at line 80 of file CPListFrame.h.

Referenced by OnCPListHeaderClick(), and updateList().

int CPListFrame::m_sortCol [private]
 

Definition at line 78 of file CPListFrame.h.

Referenced by OnCPListHeaderClick(), SortList(), and updateList().

bool CPListFrame::m_verbose [private]
 

Definition at line 75 of file CPListFrame.h.


The documentation for this class was generated from the following files:
Generated on Thu Apr 17 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1