Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
hugin_utils::TDiff2D< T > Struct Template Reference

#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)
 
TDiff2D operator- (TDiff2D rhs) const
 
TDiff2Doperator*= (double val)
 
TDiff2D operator* (double val) const
 
double operator* (TDiff2D val) const
 
vigra::Diff2D toDiff2D () const
 
squareDistance (TDiff2D< T > other) const
 Return square of the distance to another point.
 
squareLength () const
 Return the square of the length of the vector.
 

Public Attributes

double x
 
double y
 

Detailed Description

template<class T>
struct hugin_utils::TDiff2D< T >

Definition at line 82 of file hugin_math.h.

Constructor & Destructor Documentation

◆ TDiff2D() [1/3]

template<class T >
hugin_utils::TDiff2D< T >::TDiff2D ( )
inline

◆ TDiff2D() [2/3]

template<class T >
hugin_utils::TDiff2D< T >::TDiff2D ( x,
y 
)
inline

Definition at line 87 of file hugin_math.h.

◆ TDiff2D() [3/3]

template<class T >
hugin_utils::TDiff2D< T >::TDiff2D ( const vigra::Diff2D &  d)
inline

Definition at line 90 of file hugin_math.h.

Member Function Documentation

◆ operator!=()

template<class T >
bool hugin_utils::TDiff2D< T >::operator!= ( TDiff2D< T >  rhs) const
inline

◆ operator*() [1/2]

template<class T >
TDiff2D hugin_utils::TDiff2D< T >::operator* ( double  val) const
inline

Definition at line 128 of file hugin_math.h.

References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

◆ operator*() [2/2]

template<class T >
double hugin_utils::TDiff2D< T >::operator* ( TDiff2D< T >  val) const
inline

Definition at line 136 of file hugin_math.h.

References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

◆ operator*=()

template<class T >
TDiff2D & hugin_utils::TDiff2D< T >::operator*= ( double  val)
inline

Definition at line 121 of file hugin_math.h.

References hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

◆ operator+()

template<class T >
TDiff2D hugin_utils::TDiff2D< T >::operator+ ( TDiff2D< T >  rhs) const
inline

◆ operator+=()

template<class T >
TDiff2D hugin_utils::TDiff2D< T >::operator+= ( TDiff2D< T >  rhs)
inline

◆ operator-()

template<class T >
TDiff2D hugin_utils::TDiff2D< T >::operator- ( TDiff2D< T >  rhs) const
inline

◆ operator==()

template<class T >
bool hugin_utils::TDiff2D< T >::operator== ( TDiff2D< T >  rhs) const
inline

◆ squareDistance()

template<class T >
T hugin_utils::TDiff2D< T >::squareDistance ( TDiff2D< T >  other) const
inline

◆ squareLength()

template<class T >
T hugin_utils::TDiff2D< T >::squareLength ( ) const
inline

Return the square of the length of the vector.

Definition at line 153 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(), and sortByDistance().

◆ toDiff2D()

template<class T >
vigra::Diff2D hugin_utils::TDiff2D< T >::toDiff2D ( ) const
inline

Member Data Documentation

◆ x

template<class T >
double hugin_utils::TDiff2D< T >::x

Definition at line 158 of file hugin_math.h.

Referenced by HuginBase::angle_between(), HuginBase::SrcPanoImage::calcFocalLength(), HuginBase::CalculateFOV::calcFOV(), HuginBase::SrcPanoImage::calcHFOV(), PreviewCameraTool::ChangeZoomLevel(), DisplayedControlPoint::CheckSelection(), HuginBase::clip_getIntersection(), HuginBase::clip_getIntersectionCircle(), HuginBase::clip_isSide(), vigra_ext::correlateImage(), vigra_ext::correlateImageFast(), CPEvent::CPEvent(), createCtrlPoints(), CPEditorPanel::CreateNewPoint(), GreatCircleArc::LineSegment::doGL(), DisplayedControlPoint::DrawLine(), CPEditorPanel::estimateAndAddOtherPoint(), HuginBase::estimateImageAlpha(), CPEditorPanel::EstimatePoint(), HuginBase::MaskPolygon::FindPointNearPos(), FineTuneInterestPoints(), CPEditorPanel::FineTuneNewPoint(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::CalculateFitPanorama::fitPano(), HuginBase::generateArc(), PerspectiveImageCtrl::GetCP(), HuginBase::Exiv2Helper::getCropFactor(), CPImageCtrl::GetMagBitmap(), PreviewEditCPTool::GetSelectedROI(), DragTool::getTranslationShift(), HuginBase::MaskPolygon::getWindingNumber(), CPImageCtrl::invScale(), MaskImageCtrl::invtransform(), PerspectiveImageCtrl::invtransform(), HuginBase::MaskPolygon::isInside(), HuginBase::SrcPanoImage::isInside(), PerspectiveImageCtrl::IsInsideRect(), DisplayedControlPoint::isOccupiedPos(), loadPoints(), loadPointsC(), CPEditorPanel::LocalFineTunePoint(), DragTool::MouseButtonEvent(), PanosphereOverviewCameraTool::MouseButtonEvent(), DragTool::MouseMoveEvent(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), MainFrame::OnFineTuneAll(), MaskImageCtrl::OnLeftMouseUp(), HFOVDialog::OnLoadLensParameters(), CPImageCtrl::OnPaint(), 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+(), hugin_utils::TDiff2D< T >::operator+=(), hugin_utils::TDiff2D< T >::operator-(), hugin_utils::TDiff2D< T >::operator==(), vigra_ext::PointFineTune(), CPEditorPanel::PointFineTune(), PointFineTuneProjectionAware(), vigra_ext::radialVigCorrection(), PreviewDragTool::ReallyAfterDrawImagesEvent(), PreviewEditCPTool::ReallyAfterDrawImagesEvent(), GLPreviewRenderer::Resize(), HuginBase::MaskPolygon::rotate90(), CPImageCtrl::roundP(), HuginBase::AllPointSampler::sampleAllPanoPoints(), HuginBase::RandomPointSampler::sampleRandomPanoPoints(), CPImageCtrl::scale(), MaskImageCtrl::SelectPointsInsideMouseRect(), CPImageCtrl::setNewPoint(), CPImageCtrl::showPosition(), HuginBase::SmartOptimise::smartOptimize(), GreatCircleArc::LineSegment::squareDistance(), hugin_utils::TDiff2D< T >::squareLength(), DisplayedControlPoint::StartLineControlPoint(), vigra_ext::subpixelMaxima(), hugin_utils::TDiff2D< T >::toDiff2D(), MaskImageCtrl::transform(), PerspectiveImageCtrl::transform(), vigra_ext::RotateTransform::transformImgCoord(), HuginBase::Nona::SpaceTransform::transformImgCoord(), PreviewCameraTool::UpdateCenter(), DisplayedControlPoint::UpdateControlPoint(), MaskImageCtrl::UpdateCrop(), ImagesTreeCtrl::UpdateGroupText(), and ImagesTreeCtrl::UpdateImageText().

◆ y

template<class T >
double hugin_utils::TDiff2D< T >::y

Definition at line 158 of file hugin_math.h.

Referenced by HuginBase::angle_between(), HuginBase::SrcPanoImage::applyEXIFValues(), HuginBase::CalculateFOV::calcFOV(), DisplayedControlPoint::CheckSelection(), HuginBase::clip_getIntersection(), HuginBase::clip_getIntersectionCircle(), HuginBase::clip_isSide(), vigra_ext::correlateImage(), vigra_ext::correlateImageFast(), CPEvent::CPEvent(), createCtrlPoints(), CPEditorPanel::CreateNewPoint(), GreatCircleArc::LineSegment::doGL(), DisplayedControlPoint::DrawLine(), CPEditorPanel::estimateAndAddOtherPoint(), HuginBase::MaskPolygon::FindPointNearPos(), FineTuneInterestPoints(), CPEditorPanel::FineTuneNewPoint(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::CalculateFitPanorama::fitPano(), HuginBase::generateArc(), PerspectiveImageCtrl::GetCP(), CPImageCtrl::GetMagBitmap(), PreviewEditCPTool::GetSelectedROI(), DragTool::getTranslationShift(), HuginBase::PanoramaOptions::getVFOV(), HuginBase::MaskPolygon::getWindingNumber(), CPImageCtrl::invScale(), MaskImageCtrl::invtransform(), PerspectiveImageCtrl::invtransform(), HuginBase::MaskPolygon::isInside(), PerspectiveImageCtrl::IsInsideRect(), DisplayedControlPoint::isOccupiedPos(), loadPoints(), loadPointsC(), CPEditorPanel::LocalFineTunePoint(), DragTool::MouseButtonEvent(), DragTool::MouseMoveEvent(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreateCP(), MainFrame::OnFineTuneAll(), MaskImageCtrl::OnLeftMouseUp(), CPImageCtrl::OnPaint(), 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+(), hugin_utils::TDiff2D< T >::operator+=(), hugin_utils::TDiff2D< T >::operator-(), hugin_utils::TDiff2D< T >::operator==(), vigra_ext::PointFineTune(), CPEditorPanel::PointFineTune(), PointFineTuneProjectionAware(), vigra_ext::radialVigCorrection(), PreviewDragTool::ReallyAfterDrawImagesEvent(), PreviewEditCPTool::ReallyAfterDrawImagesEvent(), GLPreviewRenderer::Resize(), HuginBase::MaskPolygon::rotate90(), CPImageCtrl::roundP(), HuginBase::AllPointSampler::sampleAllPanoPoints(), HuginBase::RandomPointSampler::sampleRandomPanoPoints(), CPImageCtrl::scale(), MaskImageCtrl::SelectPointsInsideMouseRect(), CPImageCtrl::setNewPoint(), HuginBase::PanoramaOptions::setVFOV(), CPImageCtrl::showPosition(), GreatCircleArc::LineSegment::squareDistance(), hugin_utils::TDiff2D< T >::squareLength(), DisplayedControlPoint::StartLineControlPoint(), vigra_ext::subpixelMaxima(), hugin_utils::TDiff2D< T >::toDiff2D(), MaskImageCtrl::transform(), PerspectiveImageCtrl::transform(), vigra_ext::RotateTransform::transformImgCoord(), DisplayedControlPoint::UpdateControlPoint(), MaskImageCtrl::UpdateCrop(), ImagesTreeCtrl::UpdateGroupText(), and ImagesTreeCtrl::UpdateImageText().


The documentation for this struct was generated from the following file: