CPImagesComboBox Class Reference

Owner Drawn ComboBox for showing connected images on CP tab. More...

#include <CPImagesComboBox.h>

List of all members.

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


Detailed Description

Owner Drawn ComboBox for showing connected images on CP tab.

Definition at line 43 of file CPImagesComboBox.h.


Member Function Documentation

void CPImagesComboBox::CalcCPDistance ( Panorama pano  ) 

Get maximum CP distance for all images pairs containing the reference image.

Definition at line 259 of file CPImagesComboBox.cpp.

References CPConnection, CPCount, HuginBase::Panorama::getCtrlPoint(), HuginBase::Panorama::getNrOfCtrlPoints(), and refImage.

Referenced by CPEditorPanel::CreateNewPoint(), CPEditorPanel::OnCPEvent(), CPEditorPanel::OnDeleteButton(), and SetRefImage().

const unsigned int CPImagesComboBox::GetRefImage (  )  [inline]

Returns the reference image number.

Definition at line 60 of file CPImagesComboBox.h.

References refImage.

void CPImagesComboBox::Init (  )  [private]

Definition at line 133 of file CPImagesComboBox.cpp.

References CPConnection, and refImage.

void CPImagesComboBox::NotifyParent (  )  [private]

Definition at line 122 of file CPImagesComboBox.cpp.

Referenced by SelectNext(), and SelectPrev().

void CPImagesComboBox::OnDrawItem ( wxDC &  dc,
const wxRect &  rect,
int  item,
int   WXUNUSED(flags) 
) const [virtual]

Paint method for drawing text and indication bar of combo box.

Definition at line 139 of file CPImagesComboBox.cpp.

References hugin_utils::ControlPointErrorColour(), CPConnection, CPCount, and vigra_ext::EMoR::h.

void CPImagesComboBox::OnKeyDown ( wxKeyEvent &  e  )  [protected]

Key handler to mimic wxChoice behavior.

Definition at line 53 of file CPImagesComboBox.cpp.

References SelectNext(), and SelectPrev().

void CPImagesComboBox::OnMouseWheel ( wxMouseEvent &  e  )  [protected]

Mouse wheel handler to mimic wxChoice behavior.

Definition at line 36 of file CPImagesComboBox.cpp.

void CPImagesComboBox::SelectNext ( int  step = 1  )  [private]

Definition at line 100 of file CPImagesComboBox.cpp.

References NotifyParent().

Referenced by OnKeyDown().

void CPImagesComboBox::SelectPrev ( int  step = 1  )  [private]

Definition at line 111 of file CPImagesComboBox.cpp.

References NotifyParent().

Referenced by OnKeyDown().

void CPImagesComboBox::SetRefImage ( Panorama pano,
unsigned int  newRefImg 
) [inline]

Set new reference image.

Definition at line 54 of file CPImagesComboBox.h.

References CalcCPDistance(), and refImage.

Referenced by CPEditorPanel::setLeftImage(), and CPEditorPanel::setRightImage().


Member Data Documentation

std::vector<double> CPImagesComboBox::CPConnection [private]

Definition at line 71 of file CPImagesComboBox.h.

Referenced by CalcCPDistance(), Init(), and OnDrawItem().

std::vector<unsigned int> CPImagesComboBox::CPCount [private]

Definition at line 72 of file CPImagesComboBox.h.

Referenced by CalcCPDistance(), and OnDrawItem().

unsigned int CPImagesComboBox::refImage [private]

Definition at line 70 of file CPImagesComboBox.h.

Referenced by CalcCPDistance(), GetRefImage(), Init(), and SetRefImage().


The documentation for this class was generated from the following files:
Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7