CPListFrame.cpp File Reference

implementation of CPListFrame Class More...

#include <config.h>
#include "panoinc_WX.h"
#include "panoinc.h"
#include <algorithm>
#include <utility>
#include <functional>
#include "base_wx/wxPlatform.h"
#include "hugin/CPListFrame.h"
#include "hugin/MainFrame.h"
#include "base_wx/CommandHistory.h"
#include "base_wx/PanoCommand.h"
#include "hugin/huginApp.h"
#include "hugin_base/panotools/PanoToolsUtils.h"
#include "algorithms/basic/CalculateCPStatistics.h"

Include dependency graph for CPListFrame.cpp:

Go to the source code of this file.

Defines

#define CompareStruct(VAR)
#define CompareStruct(VAR)
#define CompareStruct(VAR)
#define CompareStruct(VAR)
#define WXK_CONTROL_A   1

Functions

std::string makePairId (unsigned int id1, unsigned int id2)
 CompareStruct (globalIndex) CompareStruct(localNumber) CompareStruct(globalIndex) CompareStruct(localNumber) CompareStruct(image1Nr) CompareStruct(image2Nr) CompareStruct(mode) CompareStruct(error) CompareStruct(image1Nr) CompareStruct(image2Nr) CompareStruct(mode) CompareStruct(error) void CPListCtrl
 EVT_BUTTON (XRCID("cp_list_delete"), CPListFrame::OnDeleteButton) EVT_BUTTON(XRCID("cp_list_select")


Detailed Description

implementation of CPListFrame Class

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$Id$

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this software. If not, see <http://www.gnu.org/licenses/>.

Definition in file CPListFrame.cpp.


Define Documentation

#define CompareStruct ( VAR   ) 

Value:

struct Compare##VAR##Greater\
{\
    explicit Compare##VAR##Greater(const HuginBase::CPVector& cps) : m_cps(cps) {};\
    bool operator()(const CPListItem& item1, const CPListItem& item2)\
    {\
         return m_cps[item1.globalIndex].VAR > m_cps[item2.globalIndex].VAR; \
    }\
private:\
    const HuginBase::CPVector& m_cps;\
};

Definition at line 211 of file CPListFrame.cpp.

#define CompareStruct ( VAR   ) 

Value:

struct Compare##VAR\
{\
    explicit Compare##VAR(const HuginBase::CPVector& cps) : m_cps(cps) {};\
    bool operator()(const CPListItem& item1, const CPListItem& item2)\
    {\
         return m_cps[item1.globalIndex].VAR < m_cps[item2.globalIndex].VAR; \
    }\
private:\
    const HuginBase::CPVector& m_cps;\
};

Definition at line 211 of file CPListFrame.cpp.

#define CompareStruct ( VAR   ) 

Value:

struct Compare##VAR##Greater\
{\
    bool operator()(const CPListItem& item1, const CPListItem& item2)\
    {\
        return item1.VAR > item2.VAR;\
    };\
};

Definition at line 211 of file CPListFrame.cpp.

#define CompareStruct ( VAR   ) 

Value:

struct Compare##VAR\
{\
    bool operator()(const CPListItem& item1, const CPListItem& item2)\
    {\
        return item1.VAR < item2.VAR;\
    };\
};

Definition at line 211 of file CPListFrame.cpp.

#define WXK_CONTROL_A   1

Definition at line 442 of file CPListFrame.cpp.

Referenced by CPListCtrl::OnChar().


Function Documentation

CompareStruct ( globalIndex   ) 

Definition at line 219 of file CPListFrame.cpp.

References HuginBase::Panorama::getCtrlPoints(), CPListCtrl::m_internalCPList, CPListCtrl::m_pano, CPListCtrl::m_sortAscend, and CPListCtrl::m_sortCol.

EVT_BUTTON ( XRCID("cp_list_delete")  ,
CPListFrame::OnDeleteButton   
)

std::string makePairId ( unsigned int  id1,
unsigned int  id2 
)

Definition at line 56 of file CPListFrame.cpp.

Referenced by CPListCtrl::UpdateInternalCPList().


Generated on 30 Aug 2015 for Hugintrunk by  doxygen 1.4.7