Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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) const
 
TDiff2Doperator*= (double val)
 
TDiff2D operator* (double val)
 
vigra::Diff2D toDiff2D () const
 
squareDistance (TDiff2D< T > other) const
 Return square of the distance to another point. More...
 
squareLength () const
 Return the square of the length of the vector. More...
 

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

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

Definition at line 87 of file hugin_math.h.

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

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

Definition at line 99 of file hugin_math.h.

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

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.

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

Definition at line 114 of file hugin_math.h.

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

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

Definition at line 94 of file hugin_math.h.

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

template<class T>
T hugin_utils::TDiff2D< T >::squareDistance ( TDiff2D< T >  other) const
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().

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

Member Data Documentation

template<class T>
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().

template<class T>
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().


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