HuginBase::ControlPoint Class Reference

represents a control point More...

#include <ControlPoint.h>

List of all members.

Public Types

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

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

Enumeration values:
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, 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.

Referenced by CPEditorPanel::FineTuneSelectedPoint(), HuginBase::Panorama::getCtrlPointsVectorForImage(), and CPEditorPanel::OnTextPointChange().

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(), PreviewControlPointTool::AfterDrawImagesEvent(), CPImagesComboBox::CalcCPDistance(), compareError(), compareErrorGreater(), createCtrlPointsOld(), operator==(), optGetError(), CPListFrame::SetCPItem(), HuginLines::SortByError(), CPEditorPanel::UpdateDisplay(), and PreviewLayoutLinesTool::updateLineInformation().

unsigned int HuginBase::ControlPoint::image1Nr
 

Definition at line 104 of file ControlPoint.h.

Referenced by HuginLines::_getVerticalLines(), PreviewControlPointTool::AfterDrawImagesEvent(), HuginBase::PTOptEstimator::agree(), CPImagesComboBox::CalcCPDistance(), compareImg1Nr(), compareImg1NrGreater(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::DisplayedControlPoint(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::getCPinMasks(), getCPString(), HuginBase::Panorama::getCtrlPointsVectorForImage(), mirror(), CPEditorPanel::OnCPEvent(), CPEditorPanel::OnTextPointChange(), operator==(), optGetError(), CPListFrame::SetCPItem(), CPEditorPanel::ShowControlPoint(), DisplayedControlPoint::StartLineControlPoint(), and PreviewLayoutLinesTool::updateLineInformation().

unsigned int HuginBase::ControlPoint::image2Nr
 

Definition at line 105 of file ControlPoint.h.

Referenced by HuginLines::_getVerticalLines(), PreviewControlPointTool::AfterDrawImagesEvent(), CPImagesComboBox::CalcCPDistance(), compareImg2Nr(), compareImg2NrGreater(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::DisplayedControlPoint(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::getCPinMasks(), getCPString(), HuginBase::Panorama::getCtrlPointsVectorForImage(), mirror(), CPEditorPanel::OnCPEvent(), CPEditorPanel::OnTextPointChange(), operator==(), optGetError(), CPListFrame::SetCPItem(), CPEditorPanel::ShowControlPoint(), DisplayedControlPoint::StartLineControlPoint(), and PreviewLayoutLinesTool::updateLineInformation().

int HuginBase::ControlPoint::mode
 

Definition at line 109 of file ControlPoint.h.

Referenced by HuginLines::_getVerticalLines(), PreviewControlPointTool::AfterDrawImagesEvent(), compareMode(), compareModeGreater(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::DisplayedControlPoint(), DisplayedControlPoint::Draw(), HuginBase::getCPinMasks(), PanoOperation::CleanControlPointsOperation::GetInternalCommand(), CPEditorPanel::OnCPEvent(), CPEditorPanel::OnTextPointChange(), operator==(), HuginBase::PTOptEstimator::PTOptEstimator(), CPEditorPanel::SelectLocalPoint(), CPListFrame::SetCPItem(), DisplayedControlPoint::StartLineControlPoint(), and CPEditorPanel::UpdateDisplay().

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

Definition at line 52 of file ControlPoint.cpp.

Referenced by getCPString(), and getModeName().

double HuginBase::ControlPoint::x1
 

Definition at line 106 of file ControlPoint.h.

Referenced by HuginLines::_getVerticalLines(), PreviewControlPointTool::AfterDrawImagesEvent(), HuginBase::PTOptEstimator::agree(), createCtrlPointsOld(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), CPEditorPanel::FineTuneSelectedPoint(), celeste::getCelesteControlPoints(), HuginBase::getCPinMasks(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), CPEditorPanel::OnTextPointChange(), operator==(), optGetError(), CPEditorPanel::SelectLocalPoint(), CPListFrame::SetCPItem(), 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 HuginLines::_getVerticalLines(), PreviewControlPointTool::AfterDrawImagesEvent(), HuginBase::PTOptEstimator::agree(), DisplayedControlPoint::CheckSelection(), createCtrlPointsOld(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::getCPinMasks(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), CPEditorPanel::OnTextPointChange(), operator==(), optGetError(), CPEditorPanel::SelectLocalPoint(), CPListFrame::SetCPItem(), 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 HuginLines::_getVerticalLines(), PreviewControlPointTool::AfterDrawImagesEvent(), HuginBase::PTOptEstimator::agree(), createCtrlPointsOld(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), CPEditorPanel::FineTuneSelectedPoint(), celeste::getCelesteControlPoints(), HuginBase::getCPinMasks(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), CPEditorPanel::OnTextPointChange(), operator==(), optGetError(), CPEditorPanel::SelectLocalPoint(), CPListFrame::SetCPItem(), 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 HuginLines::_getVerticalLines(), PreviewControlPointTool::AfterDrawImagesEvent(), HuginBase::PTOptEstimator::agree(), DisplayedControlPoint::CheckSelection(), createCtrlPointsOld(), CPEditorPanel::CreateNewPoint(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), DisplayedControlPoint::DrawLineSegment(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::getCPinMasks(), getCPString(), DisplayedControlPoint::GetPos(), DisplayedControlPoint::isOccupiedPos(), mirror(), CPEditorPanel::OnCPEvent(), CPEditorPanel::OnTextPointChange(), operator==(), optGetError(), CPEditorPanel::SelectLocalPoint(), CPListFrame::SetCPItem(), DisplayedControlPoint::ShiftControlPoint(), DisplayedControlPoint::StartLineControlPoint(), DisplayedControlPoint::UpdateControlPoint(), DisplayedControlPoint::UpdateControlPointY(), and CPEditorPanel::UpdateDisplay().


The documentation for this class was generated from the following files:
Generated on Sat Apr 19 01:25:51 2014 for Hugintrunk by  doxygen 1.3.9.1