30#include "wx/msw/wrapwin.h"
54 if(e.GetWheelRotation()<0)
70 switch (e.GetKeyCode()){
114 int index=std::min<int>(GetSelection()+
step,GetCount()-1);
115 if(index!=GetSelection())
125 int index=std::max<int>(GetSelection()-
step,0);
126 if(index!=GetSelection())
139 ne.SetEventObject(
this);
141 ne.SetInt(GetSelection());
209 x=std::max<wxCoord>(5,x);
258 MyPen.SetColour(
dc.GetTextForeground());
276 CPCount.resize(this->GetCount(),0);
300 : wxOwnerDrawnComboBoxXmlHandler()
311 GetPosition(), GetSize(),
Definition of CPImagesComboBox and CPImagesComboBoxXmlHandler class.
xrc handler for CPImagesComboBox
virtual wxObject * DoCreateResource()
Create CPImagesComboBox from resource.
virtual bool CanHandle(wxXmlNode *node)
Internal use to identify right xml handler.
Owner Drawn ComboBox for showing connected images on CP tab.
void SelectPrev(int step=1)
void SelectNext(int step=1)
std::vector< double > CPConnection
bool Create(wxWindow *parent, wxWindowID id, const wxString &value, const wxPoint &pos, const wxSize &size, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxASCII_STR(wxComboBoxNameStr))
create control, bind events
std::vector< unsigned int > CPCount
void CalcCPDistance(HuginBase::Panorama *pano)
Get maximum CP distance for all images pairs containing the reference image
void OnMouseWheel(wxMouseEvent &e)
Mouse wheel handler to mimic wxChoice behavior
void OnKeyDown(wxKeyEvent &e)
Key handler to mimic wxChoice behavior
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
represents a control point
const ControlPoint & getCtrlPoint(std::size_t nr) const
get a control point, counting starts with 0
std::size_t getNrOfCtrlPoints() const
number of control points
void ControlPointErrorColour(const double cperr, double &r, double &g, double &b)
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.