#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. | |
| void | CalcCPDistance (Panorama *pano) |
| Get maximum CP distance for all images pairs containing the reference image. | |
| void | SetRefImage (Panorama *pano, unsigned int newRefImg) |
| Set new reference image. | |
| const unsigned int | GetRefImage () |
| Returns the reference image number. | |
Protected Member Functions | |
| void | OnMouseWheel (wxMouseEvent &e) |
| Mouse wheel handler to mimic wxChoice behavior. | |
| void | OnKeyDown (wxKeyEvent &e) |
| Key handler to mimic wxChoice behavior. | |
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 |
Definition at line 43 of file CPImagesComboBox.h.
|
|
Get maximum CP distance for all images pairs containing the reference image.
Definition at line 259 of file CPImagesComboBox.cpp. References CPConnection, CPCount, HuginBase::ControlPoint::error, HuginBase::Panorama::getCtrlPoint(), HuginBase::Panorama::getNrOfCtrlPoints(), HuginBase::ControlPoint::image1Nr, and HuginBase::ControlPoint::image2Nr. Referenced by CPEditorPanel::CreateNewPoint(), CPEditorPanel::OnCPEvent(), CPEditorPanel::OnDeleteButton(), CPEditorPanel::panoramaImagesChanged(), and SetRefImage(). |
|
|
Returns the reference image number.
Definition at line 60 of file CPImagesComboBox.h. |
|
|
Definition at line 133 of file CPImagesComboBox.cpp. References CPConnection, and refImage. |
|
|
Definition at line 122 of file CPImagesComboBox.cpp. Referenced by SelectNext(), and SelectPrev(). |
|
||||||||||||||||||||
|
Paint method for drawing text and indication bar of combo box.
Definition at line 139 of file CPImagesComboBox.cpp. References hugin_utils::ControlPointErrorColour(), CPConnection, and CPCount. |
|
|
Key handler to mimic wxChoice behavior.
Definition at line 53 of file CPImagesComboBox.cpp. References SelectNext(), and SelectPrev(). |
|
|
Mouse wheel handler to mimic wxChoice behavior.
Definition at line 36 of file CPImagesComboBox.cpp. |
|
|
Definition at line 100 of file CPImagesComboBox.cpp. References NotifyParent(). Referenced by OnKeyDown(). |
|
|
Definition at line 111 of file CPImagesComboBox.cpp. References NotifyParent(). Referenced by OnKeyDown(). |
|
||||||||||||
|
Set new reference image.
Definition at line 54 of file CPImagesComboBox.h. References CalcCPDistance(), and refImage. Referenced by CPEditorPanel::setLeftImage(), and CPEditorPanel::setRightImage(). |
|
|
Definition at line 71 of file CPImagesComboBox.h. Referenced by CalcCPDistance(), Init(), and OnDrawItem(). |
|
|
Definition at line 72 of file CPImagesComboBox.h. Referenced by CalcCPDistance(), and OnDrawItem(). |
|
|
Definition at line 70 of file CPImagesComboBox.h. Referenced by Init(), and SetRefImage(). |
1.3.9.1