Hugintrunk
0.1
|
Owner Drawn ComboBox for showing connected images on CP tab. More...
#include <CPImagesComboBox.h>
Public Member Functions | |
virtual void | OnDrawItem (wxDC &dc, const wxRect &rect, int item, int WXUNUSED(flags)) const |
Paint method for drawing text and indication bar of combo box. More... | |
void | CalcCPDistance (HuginBase::Panorama *pano) |
Get maximum CP distance for all images pairs containing the reference image. More... | |
void | SetRefImage (HuginBase::Panorama *pano, unsigned int newRefImg) |
Set new reference image. More... | |
const unsigned int | GetRefImage () |
Returns the reference image number. More... | |
Protected Member Functions | |
void | OnMouseWheel (wxMouseEvent &e) |
Mouse wheel handler to mimic wxChoice behavior. More... | |
void | OnKeyDown (wxKeyEvent &e) |
Key handler to mimic wxChoice behavior. More... | |
Private Member Functions | |
void | Init () |
void | SelectNext (int step=1) |
void | SelectPrev (int step=1) |
void | NotifyParent () |
Private Attributes | |
unsigned int | refImage |
std::vector< double > | CPConnection |
std::vector< unsigned int > | CPCount |
Owner Drawn ComboBox for showing connected images on CP tab.
Definition at line 38 of file CPImagesComboBox.h.
void CPImagesComboBox::CalcCPDistance | ( | HuginBase::Panorama * | pano | ) |
Get maximum CP distance for all images pairs containing the reference image.
Definition at line 264 of file CPImagesComboBox.cpp.
References CPConnection, CPCount, HuginBase::ControlPoint::error, HuginBase::Panorama::getCtrlPoint(), HuginBase::Panorama::getNrOfCtrlPoints(), HuginBase::ControlPoint::image1Nr, HuginBase::ControlPoint::image2Nr, and refImage.
Referenced by CPEditorPanel::CreateNewPoint(), CPEditorPanel::OnCPEvent(), CPEditorPanel::OnDeleteButton(), CPEditorPanel::panoramaImagesChanged(), and SetRefImage().
|
inline |
Returns the reference image number.
Definition at line 55 of file CPImagesComboBox.h.
References refImage.
|
private |
Definition at line 138 of file CPImagesComboBox.cpp.
References CPConnection, and refImage.
|
private |
Definition at line 127 of file CPImagesComboBox.cpp.
Referenced by SelectNext(), and SelectPrev().
|
virtual |
Paint method for drawing text and indication bar of combo box.
Definition at line 144 of file CPImagesComboBox.cpp.
References hugin_utils::ControlPointErrorColour(), CPConnection, CPCount, and vigra_ext::EMoR::h.
|
protected |
Key handler to mimic wxChoice behavior.
Definition at line 58 of file CPImagesComboBox.cpp.
References SelectNext(), and SelectPrev().
|
protected |
Mouse wheel handler to mimic wxChoice behavior.
Definition at line 41 of file CPImagesComboBox.cpp.
|
private |
Definition at line 105 of file CPImagesComboBox.cpp.
References NotifyParent().
Referenced by OnKeyDown().
|
private |
Definition at line 116 of file CPImagesComboBox.cpp.
References NotifyParent().
Referenced by OnKeyDown().
|
inline |
Set new reference image.
Definition at line 49 of file CPImagesComboBox.h.
References CalcCPDistance(), and refImage.
Referenced by CPEditorPanel::setLeftImage(), and CPEditorPanel::setRightImage().
|
private |
Definition at line 66 of file CPImagesComboBox.h.
Referenced by CalcCPDistance(), Init(), and OnDrawItem().
|
private |
Definition at line 67 of file CPImagesComboBox.h.
Referenced by CalcCPDistance(), and OnDrawItem().
|
private |
Definition at line 65 of file CPImagesComboBox.h.
Referenced by CalcCPDistance(), GetRefImage(), Init(), and SetRefImage().