HuginBase::ControlPoint Class Reference

represents a control point More...

#include <ControlPoint.h>

List of all members.

Public Types

 X_Y = 0
 evaluate x,y
 X
 evaluate x, points are on a vertical line
 Y
 evaluate y, points are on a horizontal line
enum  OptimizeMode { X_Y = 0, X, Y }
 minimize x,y or both. More...

Public Member Functions

 ControlPoint ()
 ControlPoint (unsigned int img1, double sX, double sY, unsigned int img2, double dX, double dY, int mode=X_Y)
bool operator== (const ControlPoint &o) const
const std::stringgetModeName (OptimizeMode mode) const
const std::string getCPString () const
 returns string which contains all features of a control point used for detecting duplicate control points in the string the image numbers are sorted ascending to cover also mirrored control points
void mirror ()
 swap (image1Nr,x1,y1) with (image2Nr,x2,y2)

Public Attributes

unsigned int image1Nr
unsigned int image2Nr
double x1
double y1
double x2
double y2
double error
int mode

Static Public Attributes

static std::string modeNames [] = { "x_y", "x", "y" }


Detailed Description

represents a control point

Definition at line 38 of file ControlPoint.h.


Member Enumeration Documentation

enum HuginBase::ControlPoint::OptimizeMode

minimize x,y or both.

higher numbers mean multiple line control points

Enumerator:
X_Y  evaluate x,y
X  evaluate x, points are on a vertical line
Y  evaluate y, points are on a horizontal line

Definition at line 45 of file ControlPoint.h.


Constructor & Destructor Documentation

HuginBase::ControlPoint::ControlPoint (  )  [inline]

Definition at line 54 of file ControlPoint.h.

HuginBase::ControlPoint::ControlPoint ( unsigned int  img1,
double  sX,
double  sY,
unsigned int  img2,
double  dX,
double  dY,
int  mode = X_Y 
) [inline]

Definition at line 65 of file ControlPoint.h.


Member Function Documentation

const std::string HuginBase::ControlPoint::getCPString (  )  const

returns string which contains all features of a control point used for detecting duplicate control points in the string the image numbers are sorted ascending to cover also mirrored control points

Definition at line 59 of file ControlPoint.cpp.

References image1Nr, image2Nr, mode, modeNames, x1, x2, y1, and y2.

const std::string & HuginBase::ControlPoint::getModeName ( OptimizeMode  mode  )  const

Definition at line 54 of file ControlPoint.cpp.

References modeNames.

void HuginBase::ControlPoint::mirror (  ) 

swap (image1Nr,x1,y1) with (image2Nr,x2,y2)

Definition at line 42 of file ControlPoint.cpp.

References image1Nr, image2Nr, x1, x2, y1, and y2.

bool HuginBase::ControlPoint::operator== ( const ControlPoint o  )  const

Definition at line 31 of file ControlPoint.cpp.

References error, image1Nr, image2Nr, mode, x1, x2, y1, and y2.


Member Data Documentation

double HuginBase::ControlPoint::error

Definition at line 108 of file ControlPoint.h.

Referenced by HuginLines::_getVerticalLines(), compareError(), compareErrorGreater(), createCtrlPoints(), createCtrlPointsOld(), operator==(), optGetError(), and HuginLines::SortByError().

unsigned int HuginBase::ControlPoint::image1Nr

Definition at line 104 of file ControlPoint.h.

Referenced by HuginLines::_getVerticalLines(), HuginBase::PTOptEstimator::agree(), compareImg1Nr(), compareImg1NrGreater(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::DisplayedControlPoint(), getCPString(), mirror(), CPEditorPanel::OnCPEvent(), operator==(), CPEditorPanel::ShowControlPoint(), DisplayedControlPoint::StartLineControlPoint(), and PreviewLayoutLinesTool::updateLineInformation().

unsigned int HuginBase::ControlPoint::image2Nr

Definition at line 105 of file ControlPoint.h.

Referenced by HuginLines::_getVerticalLines(), compareImg2Nr(), compareImg2NrGreater(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::DisplayedControlPoint(), getCPString(), mirror(), CPEditorPanel::OnCPEvent(), operator==(), CPEditorPanel::ShowControlPoint(), and DisplayedControlPoint::StartLineControlPoint().

int HuginBase::ControlPoint::mode

Definition at line 109 of file ControlPoint.h.

Referenced by compareMode(), compareModeGreater(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::DisplayedControlPoint(), DisplayedControlPoint::Draw(), getCPString(), CPEditorPanel::OnCPEvent(), operator==(), HuginBase::PTOptEstimator::PTOptEstimator(), CPEditorPanel::SelectLocalPoint(), DisplayedControlPoint::StartLineControlPoint(), and CPEditorPanel::UpdateDisplay().

std::string HuginBase::ControlPoint::modeNames = { "x_y", "x", "y" } [static]

Definition at line 113 of file ControlPoint.h.

Referenced by getCPString(), and getModeName().

double HuginBase::ControlPoint::x1

Definition at line 106 of file ControlPoint.h.

Referenced by HuginBase::PTOptEstimator::agree(), createCtrlPoints(), createCtrlPointsOld(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), operator==(), CPEditorPanel::SelectLocalPoint(), DisplayedControlPoint::ShiftControlPoint(), DisplayedControlPoint::StartLineControlPoint(), DisplayedControlPoint::UpdateControlPoint(), DisplayedControlPoint::UpdateControlPointX(), and CPEditorPanel::UpdateDisplay().

double HuginBase::ControlPoint::x2

Definition at line 107 of file ControlPoint.h.

Referenced by HuginBase::PTOptEstimator::agree(), DisplayedControlPoint::CheckSelection(), createCtrlPoints(), createCtrlPointsOld(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), operator==(), CPEditorPanel::SelectLocalPoint(), DisplayedControlPoint::ShiftControlPoint(), DisplayedControlPoint::StartLineControlPoint(), DisplayedControlPoint::UpdateControlPoint(), DisplayedControlPoint::UpdateControlPointX(), and CPEditorPanel::UpdateDisplay().

double HuginBase::ControlPoint::y1

Definition at line 106 of file ControlPoint.h.

Referenced by HuginBase::PTOptEstimator::agree(), createCtrlPoints(), createCtrlPointsOld(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), operator==(), CPEditorPanel::SelectLocalPoint(), DisplayedControlPoint::ShiftControlPoint(), DisplayedControlPoint::StartLineControlPoint(), DisplayedControlPoint::UpdateControlPoint(), DisplayedControlPoint::UpdateControlPointY(), and CPEditorPanel::UpdateDisplay().

double HuginBase::ControlPoint::y2

Definition at line 107 of file ControlPoint.h.

Referenced by HuginBase::PTOptEstimator::agree(), DisplayedControlPoint::CheckSelection(), createCtrlPoints(), createCtrlPointsOld(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), operator==(), CPEditorPanel::SelectLocalPoint(), DisplayedControlPoint::ShiftControlPoint(), DisplayedControlPoint::StartLineControlPoint(), DisplayedControlPoint::UpdateControlPoint(), DisplayedControlPoint::UpdateControlPointY(), and CPEditorPanel::UpdateDisplay().


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