hugin_utils::TDiff2D< T > Struct Template Reference

#include <hugin_math.h>

Inheritance diagram for hugin_utils::TDiff2D< T >:

Inheritance graph
[legend]
List of all members.

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.
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 115 of file hugin_math.h.


Constructor & Destructor Documentation

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

Definition at line 117 of file hugin_math.h.

Referenced by hugin_utils::TDiff2D< double >::operator+(), and hugin_utils::TDiff2D< double >::operator-().

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

Definition at line 120 of file hugin_math.h.

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

Definition at line 123 of file hugin_math.h.


Member Function Documentation

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

Definition at line 154 of file hugin_math.h.

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

Definition at line 147 of file hugin_math.h.

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

Definition at line 132 of file hugin_math.h.

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

Definition at line 137 of file hugin_math.h.

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

Definition at line 142 of file hugin_math.h.

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

Definition at line 127 of file hugin_math.h.

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 168 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]

Return the square of the length of the vector.

Definition at line 174 of file hugin_math.h.

Referenced by HuginBase::angle_between(), HuginBase::clip_getIntersectionCircle(), and sortByDistance().

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

Definition at line 162 of file hugin_math.h.

Referenced by CPEditorPanel::estimateAndAddOtherPoint(), CPEditorPanel::FineTuneNewPoint(), CPEditorPanel::NewPointChange(), vigra_ext::PointFineTune(), PointFineTune2(), and HuginBase::RandomPointSampler::sampleRandomPanoPoints().


Member Data Documentation

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

Definition at line 179 of file hugin_math.h.

Referenced by AddGeometricControlPoint(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::addToVariableMap(), HuginBase::angle_between(), ApplyLensDBParameters(), PreviewColorPickerTool::CalcCorrection(), HuginBase::CalculateFOV::calcFOV(), HuginBase::Photometric::ResponseTransform< VTIn >::calcVigFactor(), DisplayedControlPoint::CheckSelection(), vigra_ext::circularCrop(), HuginBase::clip_getIntersection(), HuginBase::clip_getIntersectionCircle(), HuginBase::clip_isSide(), MeshManager::MeshInfo::Coord3D::Coord3D(), vigra_ext::correlateImage(), CPEvent::CPEvent(), createCtrlPoints(), createCtrlPointsOld(), CPEditorPanel::CreateNewPoint(), GreatCircleArc::LineSegment::doGL(), GreatCircleArc::LineSegment::doGLcross(), DisplayedControlPoint::Draw(), CPEditorPanel::estimateAndAddOtherPoint(), HuginBase::estimateImageAlpha(), CPEditorPanel::EstimatePoint(), vigra_ext::extractRandomPoints(), HuginBase::MaskPolygon::FindPointNearPos(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::CalculateFitPanorama::fitPano(), HuginBase::generateArc(), CPImageCtrl::generateMagBitmap(), MeshManager::PlaneOverviewMeshInfo::GetCoord3D(), MeshManager::PanosphereOverviewMeshInfo::GetCoord3D(), HuginBase::LensDB::LensDB::GetCrop(), DragTool::getTranslationShift(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::getValueFromVariable(), HuginBase::PanoramaOptions::getVFOV(), HuginBase::MaskPolygon::getWindingNumber(), CPImageCtrl::invScale(), MaskImageCtrl::invtransform(), HuginBase::MaskPolygon::isInside(), DisplayedControlPoint::isOccupiedPos(), loadPoints(), loadPointsC(), PanosphereOverviewCameraTool::MouseButtonEvent(), DragTool::MouseButtonEvent(), PanosphereOverviewCameraTool::MouseMoveEvent(), DragTool::MouseMoveEvent(), HuginBase::MaskPolygon::movePointBy(), HuginBase::MaskPolygon::movePointTo(), CPEditorPanel::OnCPEvent(), CPImageCtrl::OnDraw(), MainFrame::OnFineTuneAll(), MaskImageCtrl::OnLeftMouseUp(), HFOVDialog::OnLoadLensParameters(), MaskImageCtrl::OnRightMouseUp(), hugin_utils::TDiff2D< double >::operator *(), hugin_utils::TDiff2D< double >::operator *=(), hugin_utils::TDiff2D< double >::operator!=(), hugin_utils::TRANSFORM::InvRotERect::operator()(), hugin_utils::TRANSFORM::Translate::operator()(), hugin_utils::TRANSFORM::RotERect::operator()(), hugin_utils::TRANSFORM::ImgToCart::operator()(), hugin_utils::TRANSFORM::CartToImg::operator()(), hugin_utils::TRANSFORM::RectToERect::operator()(), hugin_utils::TRANSFORM::ERectToRect::operator()(), hugin_utils::TDiff2D< double >::operator+(), hugin_utils::TDiff2D< double >::operator-(), operator/(), hugin_utils::TDiff2D< double >::operator==(), vigra_ext::PointFineTune(), PointFineTune2(), vigra_ext::radialVigCorrection(), PreviewDragTool::ReallyAfterDrawImagesEvent(), HuginBase::MaskPolygon::rotate90(), hugin_utils::TRANSFORM::rotatePoint(), CPImageCtrl::roundP(), HuginBase::RandomPointSampler::sampleRandomPanoPoints(), CPImageCtrl::scale(), MaskImageCtrl::SelectPointsInsideMouseRect(), CPImageCtrl::setNewPoint(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::setValueFromVariable(), CPImageCtrl::showPosition(), HuginBase::SmartOptimise::smartOptimize(), GreatCircleArc::LineSegment::squareDistance(), hugin_utils::TDiff2D< double >::squareLength(), DisplayedControlPoint::StartLineControlPoint(), vigra_ext::subpixelMaxima(), hugin_utils::TDiff2D< double >::toDiff2D(), HuginBase::PTools::Transform::transform(), HuginBase::Nona::SpaceTransform::transform(), MaskImageCtrl::transform(), HuginBase::Nona::SpaceTransform::transformImgCoord(), HuginBase::PTools::Transform::transformImgCoord(), DisplayedControlPoint::UpdateControlPoint(), MaskImageCtrl::UpdateCrop(), and ImagesTreeCtrl::UpdateImageText().

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

Definition at line 179 of file hugin_math.h.

Referenced by AddGeometricControlPoint(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::addToVariableMap(), HuginBase::angle_between(), ApplyLensDBParameters(), PreviewColorPickerTool::CalcCorrection(), HuginBase::CalculateFOV::calcFOV(), HuginBase::Photometric::ResponseTransform< VTIn >::calcVigFactor(), DisplayedControlPoint::CheckSelection(), vigra_ext::circularCrop(), HuginBase::clip_getIntersection(), HuginBase::clip_getIntersectionCircle(), HuginBase::clip_isSide(), MeshManager::MeshInfo::Coord3D::Coord3D(), vigra_ext::correlateImage(), CPEvent::CPEvent(), createCtrlPoints(), createCtrlPointsOld(), CPEditorPanel::CreateNewPoint(), GreatCircleArc::LineSegment::doGL(), GreatCircleArc::LineSegment::doGLcross(), DisplayedControlPoint::Draw(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::emitGLSL(), CPEditorPanel::estimateAndAddOtherPoint(), HuginBase::estimateImageAlpha(), CPEditorPanel::EstimatePoint(), vigra_ext::extractRandomPoints(), HuginBase::MaskPolygon::FindPointNearPos(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::CalculateFitPanorama::fitPano(), HuginBase::generateArc(), CPImageCtrl::generateMagBitmap(), MeshManager::PlaneOverviewMeshInfo::GetCoord3D(), MeshManager::PanosphereOverviewMeshInfo::GetCoord3D(), HuginBase::LensDB::LensDB::GetCrop(), DragTool::getTranslationShift(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::getValueFromVariable(), HuginBase::PanoramaOptions::getVFOV(), HuginBase::MaskPolygon::getWindingNumber(), CPImageCtrl::invScale(), MaskImageCtrl::invtransform(), HuginBase::MaskPolygon::isInside(), DisplayedControlPoint::isOccupiedPos(), loadPoints(), loadPointsC(), PanosphereOverviewCameraTool::MouseButtonEvent(), DragTool::MouseButtonEvent(), PanosphereOverviewCameraTool::MouseMoveEvent(), DragTool::MouseMoveEvent(), HuginBase::MaskPolygon::movePointBy(), HuginBase::MaskPolygon::movePointTo(), CPEditorPanel::OnCPEvent(), CPImageCtrl::OnDraw(), MainFrame::OnFineTuneAll(), MaskImageCtrl::OnLeftMouseUp(), HFOVDialog::OnLoadLensParameters(), MaskImageCtrl::OnRightMouseUp(), hugin_utils::TDiff2D< double >::operator *(), hugin_utils::TDiff2D< double >::operator *=(), hugin_utils::TDiff2D< double >::operator!=(), hugin_utils::TRANSFORM::InvRotERect::operator()(), hugin_utils::TRANSFORM::Translate::operator()(), hugin_utils::TRANSFORM::RotERect::operator()(), hugin_utils::TRANSFORM::ImgToCart::operator()(), hugin_utils::TRANSFORM::CartToImg::operator()(), hugin_utils::TRANSFORM::RectToERect::operator()(), hugin_utils::TRANSFORM::ERectToRect::operator()(), hugin_utils::TDiff2D< double >::operator+(), hugin_utils::TDiff2D< double >::operator-(), operator/(), hugin_utils::TDiff2D< double >::operator==(), vigra_ext::PointFineTune(), PointFineTune2(), vigra_ext::radialVigCorrection(), PreviewDragTool::ReallyAfterDrawImagesEvent(), HuginBase::MaskPolygon::rotate90(), hugin_utils::TRANSFORM::rotatePoint(), CPImageCtrl::roundP(), HuginBase::RandomPointSampler::sampleRandomPanoPoints(), CPImageCtrl::scale(), MaskImageCtrl::SelectPointsInsideMouseRect(), CPImageCtrl::setNewPoint(), HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::setValueFromVariable(), HuginBase::PanoramaOptions::setVFOV(), CPImageCtrl::showPosition(), GreatCircleArc::LineSegment::squareDistance(), hugin_utils::TDiff2D< double >::squareLength(), DisplayedControlPoint::StartLineControlPoint(), vigra_ext::subpixelMaxima(), hugin_utils::TDiff2D< double >::toDiff2D(), HuginBase::PTools::Transform::transform(), HuginBase::Nona::SpaceTransform::transform(), MaskImageCtrl::transform(), HuginBase::Nona::SpaceTransform::transformImgCoord(), HuginBase::PTools::Transform::transformImgCoord(), DisplayedControlPoint::UpdateControlPoint(), MaskImageCtrl::UpdateCrop(), and ImagesTreeCtrl::UpdateImageText().


The documentation for this struct was generated from the following file:
Generated on 24 Nov 2014 for Hugintrunk by  doxygen 1.4.7