#include <GreatCircles.h>
Public Member Functions | |
| GreatCircleArc () | |
| Create a bad great circle arc. | |
| GreatCircleArc (double startLat, double startLong, double endLat, double endLong, VisualizationState &m_visualizationState) | |
| Create a great circle arc. | |
| void | draw (bool withCross=true, double width=1.0) const |
| Draw the great circle arc on the fast preview. | |
| float | squareDistance (hugin_utils::FDiff2D point) const |
| Return the square of the minimal distance between the great circle arc and a coorinate on the panorama. | |
| double | getxscale () const |
Public Attributes | |
| double | m_xscale |
Protected Attributes | |
| std::vector< LineSegment > | m_lines |
| VisualizationState * | m_visualizationState |
|
|
Create a bad great circle arc. draw() won't do anything and squareDistance() will return the maximum float. Definition at line 64 of file GreatCircles.cpp. Referenced by GreatCircleArc(). |
|
||||||||||||||||||||||||
|
Create a great circle arc.
Definition at line 68 of file GreatCircles.cpp. References HuginBase::PTools::Transform::createInvTransform(), hugin_utils::FDiff2D, VisualizationState::GetOptions(), VisualizationState::GetScale(), HuginBase::PanoramaOptions::getWidth(), GreatCircleArc(), m_lines, M_PI, m_visualizationState, m_xscale, segments, HuginBase::BaseSrcPanoImage::setHFOV(), HuginBase::BaseSrcPanoImage::setProjection(), HuginBase::SrcPanoImage::setSize(), HuginBase::PTools::Transform::transformImgCoord(), and GreatCircleArc::LineSegment::vertices. |
|
||||||||||||
|
Draw the great circle arc on the fast preview.
Definition at line 215 of file GreatCircles.cpp. References GreatCircleArc::LineSegment::doGL(), GreatCircleArc::LineSegment::doGLcross(), getxscale(), m_lines, and m_visualizationState. Referenced by PreviewLayoutLinesTool::LineDetails::draw(). |
|
|
Definition at line 425 of file GreatCircles.cpp. Referenced by draw(). |
|
|
Return the square of the minimal distance between the great circle arc and a coorinate on the panorama. This is an approximation, but should be reasonable. Definition at line 464 of file GreatCircles.cpp. References hugin_utils::FDiff2D, m_lines, and celeste::max(). Referenced by PreviewLayoutLinesTool::LineDetails::getDistance(). |
|
|
Definition at line 109 of file GreatCircles.h. Referenced by draw(), GreatCircleArc(), and squareDistance(). |
|
|
Definition at line 110 of file GreatCircles.h. Referenced by draw(), and GreatCircleArc(). |
|
|
Definition at line 88 of file GreatCircles.h. Referenced by GreatCircleArc(). |
1.3.9.1