Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
CPImagesComboBox Class Reference

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

#include <CPImagesComboBox.h>

Inheritance diagram for CPImagesComboBox:
Inheritance graph

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
 

Detailed Description

Owner Drawn ComboBox for showing connected images on CP tab.

Definition at line 38 of file CPImagesComboBox.h.

Member Function Documentation

void CPImagesComboBox::CalcCPDistance ( HuginBase::Panorama pano)
const unsigned int CPImagesComboBox::GetRefImage ( )
inline

Returns the reference image number.

Definition at line 55 of file CPImagesComboBox.h.

References refImage.

void CPImagesComboBox::Init ( )
private

Definition at line 138 of file CPImagesComboBox.cpp.

References CPConnection, and refImage.

void CPImagesComboBox::NotifyParent ( )
private

Definition at line 127 of file CPImagesComboBox.cpp.

Referenced by SelectNext(), and SelectPrev().

void CPImagesComboBox::OnDrawItem ( wxDC &  dc,
const wxRect &  rect,
int  item,
int   WXUNUSEDflags 
) const
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.

void CPImagesComboBox::OnKeyDown ( wxKeyEvent &  e)
protected

Key handler to mimic wxChoice behavior.

Definition at line 58 of file CPImagesComboBox.cpp.

References SelectNext(), and SelectPrev().

void CPImagesComboBox::OnMouseWheel ( wxMouseEvent &  e)
protected

Mouse wheel handler to mimic wxChoice behavior.

Definition at line 41 of file CPImagesComboBox.cpp.

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

Definition at line 105 of file CPImagesComboBox.cpp.

References NotifyParent().

Referenced by OnKeyDown().

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

Definition at line 116 of file CPImagesComboBox.cpp.

References NotifyParent().

Referenced by OnKeyDown().

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

Set new reference image.

Definition at line 49 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 66 of file CPImagesComboBox.h.

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

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

Definition at line 67 of file CPImagesComboBox.h.

Referenced by CalcCPDistance(), and OnDrawItem().

unsigned int CPImagesComboBox::refImage
private

Definition at line 65 of file CPImagesComboBox.h.

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


The documentation for this class was generated from the following files: