Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
CPListFrame.cpp File Reference

implementation of CPListFrame Class More...

#include "hugin_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/config_defaults.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.

Macros

#define CompareStruct(VAR, TYPESUFFIX, OP)
 
#define CompareStruct(VAR1, VAR2, TYPESUFFIX, OP)
 
#define CompareStruct(VAR, TYPESUFFIX, OP)
 

Functions

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

Detailed Description

implementation of CPListFrame Class

Author
Pablo d'Angelo pablo.nosp@m..dan.nosp@m.gelo@.nosp@m.web..nosp@m.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.

Macro Definition Documentation

#define CompareStruct (   VAR,
  TYPESUFFIX,
  OP 
)
Value:
struct Compare##TYPESUFFIX\
{\
bool operator()(const CPListItem& item1, const CPListItem& item2)\
{\
return item1.VAR OP item2.VAR;\
};\
};
helper class for virtual listview control
Definition: CPListFrame.h:33
options wxIntPtr item2

Definition at line 276 of file CPListFrame.cpp.

#define CompareStruct (   VAR1,
  VAR2,
  TYPESUFFIX,
  OP 
)
Value:
struct Compare##TYPESUFFIX\
{\
explicit Compare##TYPESUFFIX(const HuginBase::CPVector& cps) : m_cps(cps) {};\
bool operator()(const CPListItem& item1, const CPListItem& item2)\
{\
return m_cps[item1.globalIndex].VAR1 * 1e4 + m_cps[item1.globalIndex].VAR2 + item1.localNumber * 1.0 / m_cps.size() OP\
m_cps[item2.globalIndex].VAR1 * 1e4 + m_cps[item2.globalIndex].VAR2 + item2.localNumber * 1.0 / m_cps.size();\
}\
private:\
const HuginBase::CPVector& m_cps;\
};
helper class for virtual listview control
Definition: CPListFrame.h:33
options wxIntPtr item2
std::vector< ControlPoint > CPVector
Definition: ControlPoint.h:99

Definition at line 276 of file CPListFrame.cpp.

#define CompareStruct (   VAR,
  TYPESUFFIX,
  OP 
)
Value:
struct Compare##TYPESUFFIX\
{\
explicit Compare##TYPESUFFIX(const HuginBase::CPVector& cps) : m_cps(cps) {};\
bool operator()(const CPListItem& item1, const CPListItem& item2)\
{\
return m_cps[item1.globalIndex].VAR OP m_cps[item2.globalIndex].VAR;\
}\
private:\
const HuginBase::CPVector& m_cps;\
};
helper class for virtual listview control
Definition: CPListFrame.h:33
options wxIntPtr item2
std::vector< ControlPoint > CPVector
Definition: ControlPoint.h:99

Definition at line 276 of file CPListFrame.cpp.

Function Documentation

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

Definition at line 53 of file CPListFrame.cpp.

Referenced by CPListCtrl::UpdateInternalCPList().