Hugintrunk
0.1
|
#include <hugin_math.h>
Public Member Functions | |
TDiff2D () | |
TDiff2D (T x, T y) | |
TDiff2D (const vigra::Diff2D &d) | |
bool | operator== (TDiff2D rhs) const |
bool | operator!= (TDiff2D rhs) const |
TDiff2D | operator+ (TDiff2D rhs) const |
TDiff2D | operator- (TDiff2D rhs) const |
TDiff2D & | operator*= (double val) |
TDiff2D | operator* (double val) |
vigra::Diff2D | toDiff2D () const |
T | squareDistance (TDiff2D< T > other) const |
Return square of the distance to another point. More... | |
T | squareLength () const |
Return the square of the length of the vector. More... | |
Public Attributes | |
double | x |
double | y |
Definition at line 82 of file hugin_math.h.
|
inline |
Definition at line 84 of file hugin_math.h.
Referenced by hugin_utils::TDiff2D< T >::operator+(), and hugin_utils::TDiff2D< T >::operator-().
|
inline |
Definition at line 87 of file hugin_math.h.
|
inline |
Definition at line 90 of file hugin_math.h.
|
inline |
Definition at line 99 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 121 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 114 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 104 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::TDiff2D(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 109 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::TDiff2D(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Definition at line 94 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
|
inline |
Return square of the distance to another point.
Definition at line 135 of file hugin_math.h.
Referenced by HuginBase::clip_insideCircle(), DisplayedControlPoint::DrawLineSegment(), HuginBase::generateArc(), and GreatCircleArc::LineSegment::squareDistance().
|
inline |
Return the square of the length of the vector.
Definition at line 141 of file hugin_math.h.
References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by HuginBase::angle_between(), HuginBase::clip_getIntersectionCircle(), PreviewCameraTool::MouseMoveEvent(), and sortByDistance().
|
inline |
Definition at line 129 of file hugin_math.h.
References hugin_utils::roundi(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by CPEditorPanel::estimateAndAddOtherPoint(), CPEditorPanel::FineTuneNewPoint(), CPEditorPanel::NewPointChange(), CPEditorPanel::PointFineTune(), vigra_ext::PointFineTune(), HuginBase::AllPointSampler::sampleAllPanoPoints(), and HuginBase::RandomPointSampler::sampleRandomPanoPoints().
double hugin_utils::TDiff2D< T >::x |
Definition at line 146 of file hugin_math.h.
Referenced by AddGeometricControlPoint(), PreviewEditCPTool::AddLineCP(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::addToVariableMap(), HuginBase::angle_between(), PreviewColorPickerTool::CalcCorrection(), HuginBase::SrcPanoImage::calcFocalLength(), HuginBase::CalculateFOV::calcFOV(), HuginBase::SrcPanoImage::calcHFOV(), HuginBase::Photometric::ResponseTransform< VTIn >::calcVigFactor(), PreviewCameraTool::ChangeZoomLevel(), DisplayedControlPoint::CheckSelection(), vigra_ext::circularCrop(), HuginBase::clip_getIntersection(), HuginBase::clip_getIntersectionCircle(), HuginBase::clip_isSide(), MeshManager::MeshInfo::Coord3D::Coord3D(), vigra_ext::correlateImage(), vigra_ext::correlateImageFast(), CPEvent::CPEvent(), createCtrlPoints(), CPEditorPanel::CreateNewPoint(), GreatCircleArc::LineSegment::doGL(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), CPEditorPanel::estimateAndAddOtherPoint(), HuginBase::estimateImageAlpha(), CPEditorPanel::EstimatePoint(), PreviewEditCPTool::FindCPInRect(), HuginBase::MaskPolygon::FindPointNearPos(), FineTuneInterestPoints(), CPEditorPanel::FineTuneNewPoint(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::CalculateFitPanorama::fitPano(), HuginBase::generateArc(), MeshManager::PanosphereOverviewMeshInfo::GetCoord3D(), MeshManager::PlaneOverviewMeshInfo::GetCoord3D(), HuginBase::Exiv2Helper::getCropFactor(), HuginLines::GetFootpoint(), ToolHelper::GetImagesUnderPos(), CPImageCtrl::GetMagBitmap(), PreviewEditCPTool::GetSelectedROI(), DragTool::getTranslationShift(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::getValueFromVariable(), HuginBase::PanoramaOptions::getVFOV(), HuginBase::MaskPolygon::getWindingNumber(), HuginBase::Nona::SpaceTransform::InitRadialCorrect(), CPImageCtrl::invScale(), MaskImageCtrl::invtransform(), HuginBase::MaskPolygon::isInside(), HuginBase::SrcPanoImage::isInside(), DisplayedControlPoint::isOccupiedPos(), loadPoints(), loadPointsC(), CPEditorPanel::LocalFineTunePoint(), main(), PanosphereOverviewCameraTool::MouseButtonEvent(), PreviewEditCPTool::MouseButtonEvent(), DragTool::MouseButtonEvent(), PanosphereOverviewCameraTool::MouseMoveEvent(), DragTool::MouseMoveEvent(), HuginBase::MaskPolygon::movePointBy(), HuginBase::MaskPolygon::movePointTo(), CPEditorPanel::NewPointChange(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), CPImageCtrl::OnDraw(), MainFrame::OnFineTuneAll(), CPImageCtrl::OnKey(), MaskImageCtrl::OnLeftMouseUp(), HFOVDialog::OnLoadLensParameters(), MaskImageCtrl::OnRightMouseUp(), hugin_utils::TDiff2D< T >::operator!=(), hugin_utils::TDiff2D< T >::operator*(), hugin_utils::TDiff2D< T >::operator*=(), hugin_utils::TDiff2D< T >::operator+(), hugin_utils::TDiff2D< T >::operator-(), operator/(), hugin_utils::TDiff2D< T >::operator==(), CPEditorPanel::PointFineTune(), vigra_ext::PointFineTune(), PointFineTuneProjectionAware(), vigra_ext::radialVigCorrection(), PreviewEditCPTool::ReallyAfterDrawImagesEvent(), PreviewDragTool::ReallyAfterDrawImagesEvent(), GLPreviewRenderer::Resize(), HuginBase::MaskPolygon::rotate90(), CPImageCtrl::roundP(), HuginBase::AllPointSampler::sampleAllPanoPoints(), HuginBase::RandomPointSampler::sampleRandomPanoPoints(), CPImageCtrl::scale(), MaskImageCtrl::SelectPointsInsideMouseRect(), CPImageCtrl::setNewPoint(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::setValueFromVariable(), DisplayedControlPoint::ShiftControlPoint(), CPImageCtrl::showPosition(), HuginBase::SmartOptimise::smartOptimize(), GreatCircleArc::LineSegment::squareDistance(), hugin_utils::TDiff2D< T >::squareLength(), DisplayedControlPoint::StartLineControlPoint(), vigra_ext::subpixelMaxima(), hugin_utils::TDiff2D< T >::toDiff2D(), HuginBase::Nona::SpaceTransform::transform(), MaskImageCtrl::transform(), HuginBase::PTools::Transform::transform(), HuginBase::Nona::SpaceTransform::transformImgCoord(), HuginBase::PTools::Transform::transformImgCoord(), vigra_ext::RotateTransform::transformImgCoord(), PreviewCameraTool::UpdateCenter(), DisplayedControlPoint::UpdateControlPoint(), MaskImageCtrl::UpdateCrop(), ImagesTreeCtrl::UpdateGroupText(), and ImagesTreeCtrl::UpdateImageText().
double hugin_utils::TDiff2D< T >::y |
Definition at line 146 of file hugin_math.h.
Referenced by AddGeometricControlPoint(), PreviewEditCPTool::AddLineCP(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::addToVariableMap(), HuginBase::angle_between(), HuginBase::SrcPanoImage::applyEXIFValues(), PreviewColorPickerTool::CalcCorrection(), HuginBase::CalculateFOV::calcFOV(), HuginBase::Photometric::ResponseTransform< VTIn >::calcVigFactor(), PreviewCameraTool::ChangeZoomLevel(), DisplayedControlPoint::CheckSelection(), vigra_ext::circularCrop(), HuginBase::clip_getIntersection(), HuginBase::clip_getIntersectionCircle(), HuginBase::clip_isSide(), MeshManager::MeshInfo::Coord3D::Coord3D(), vigra_ext::correlateImage(), vigra_ext::correlateImageFast(), CPEvent::CPEvent(), createCtrlPoints(), CPEditorPanel::CreateNewPoint(), GreatCircleArc::LineSegment::doGL(), DisplayedControlPoint::Draw(), DisplayedControlPoint::DrawLine(), CPEditorPanel::estimateAndAddOtherPoint(), HuginBase::estimateImageAlpha(), CPEditorPanel::EstimatePoint(), PreviewEditCPTool::FindCPInRect(), HuginBase::MaskPolygon::FindPointNearPos(), FineTuneInterestPoints(), CPEditorPanel::FineTuneNewPoint(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::CalculateFitPanorama::fitPano(), HuginBase::generateArc(), MeshManager::PanosphereOverviewMeshInfo::GetCoord3D(), MeshManager::PlaneOverviewMeshInfo::GetCoord3D(), HuginBase::Exiv2Helper::getCropFactor(), HuginLines::GetFootpoint(), ToolHelper::GetImagesUnderPos(), CPImageCtrl::GetMagBitmap(), PreviewEditCPTool::GetSelectedROI(), DragTool::getTranslationShift(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::getValueFromVariable(), HuginBase::PanoramaOptions::getVFOV(), HuginBase::MaskPolygon::getWindingNumber(), HuginBase::Nona::SpaceTransform::InitRadialCorrect(), CPImageCtrl::invScale(), MaskImageCtrl::invtransform(), HuginBase::MaskPolygon::isInside(), HuginBase::SrcPanoImage::isInside(), DisplayedControlPoint::isOccupiedPos(), loadPoints(), loadPointsC(), CPEditorPanel::LocalFineTunePoint(), main(), PanosphereOverviewCameraTool::MouseButtonEvent(), PreviewEditCPTool::MouseButtonEvent(), DragTool::MouseButtonEvent(), PanosphereOverviewCameraTool::MouseMoveEvent(), DragTool::MouseMoveEvent(), HuginBase::MaskPolygon::movePointBy(), HuginBase::MaskPolygon::movePointTo(), CPEditorPanel::NewPointChange(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), CPImageCtrl::OnDraw(), MainFrame::OnFineTuneAll(), CPImageCtrl::OnKey(), MaskImageCtrl::OnLeftMouseUp(), HFOVDialog::OnLoadLensParameters(), MaskImageCtrl::OnRightMouseUp(), hugin_utils::TDiff2D< T >::operator!=(), hugin_utils::TDiff2D< T >::operator*(), hugin_utils::TDiff2D< T >::operator*=(), hugin_utils::TDiff2D< T >::operator+(), hugin_utils::TDiff2D< T >::operator-(), operator/(), hugin_utils::TDiff2D< T >::operator==(), CPEditorPanel::PointFineTune(), vigra_ext::PointFineTune(), PointFineTuneProjectionAware(), vigra_ext::radialVigCorrection(), PreviewEditCPTool::ReallyAfterDrawImagesEvent(), PreviewDragTool::ReallyAfterDrawImagesEvent(), GLPreviewRenderer::Resize(), HuginBase::MaskPolygon::rotate90(), CPImageCtrl::roundP(), HuginBase::AllPointSampler::sampleAllPanoPoints(), HuginBase::RandomPointSampler::sampleRandomPanoPoints(), CPImageCtrl::scale(), MaskImageCtrl::SelectPointsInsideMouseRect(), CPImageCtrl::setNewPoint(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::setValueFromVariable(), HuginBase::PanoramaOptions::setVFOV(), DisplayedControlPoint::ShiftControlPoint(), CPImageCtrl::showPosition(), GreatCircleArc::LineSegment::squareDistance(), hugin_utils::TDiff2D< T >::squareLength(), DisplayedControlPoint::StartLineControlPoint(), vigra_ext::subpixelMaxima(), hugin_utils::TDiff2D< T >::toDiff2D(), HuginBase::Nona::SpaceTransform::transform(), MaskImageCtrl::transform(), HuginBase::PTools::Transform::transform(), HuginBase::Nona::SpaceTransform::transformImgCoord(), HuginBase::PTools::Transform::transformImgCoord(), vigra_ext::RotateTransform::transformImgCoord(), PreviewCameraTool::UpdateCenter(), DisplayedControlPoint::UpdateControlPoint(), MaskImageCtrl::UpdateCrop(), ImagesTreeCtrl::UpdateGroupText(), and ImagesTreeCtrl::UpdateImageText().