Hugintrunk
0.1
|
#include <GreatCircles.h>
Public Member Functions | |
float | squareDistance (hugin_utils::FDiff2D point) const |
Get the square of the minimal distance to a point. More... | |
void | doGLcross (int point, double cscale, VisualizationState *state) const |
Specify the line to OpenGL. Must be within a glBegin/glEnd pair. More... | |
void | doGL (double width, VisualizationState *state, LineSegment *preceding=NULL, LineSegment *proceeding=NULL) const |
Draw a meshed line. More... | |
Public Attributes | |
hugin_utils::FDiff2D | vertices [2] |
Definition at line 93 of file GreatCircles.h.
void GreatCircleArc::LineSegment::doGL | ( | double | width, |
VisualizationState * | state, | ||
GreatCircleArc::LineSegment * | preceding = NULL , |
||
GreatCircleArc::LineSegment * | proceeding = NULL |
||
) | const |
Draw a meshed line.
width | the width of the line |
state | The visualization state needed to obtain final 3D coordinates and the scale for the visualization |
preceding | the line segment before this line segment, needed to calculate the right begining slope |
proceeding | the line segment after this line segment, needed to calculate the right ending slope |
Definition at line 257 of file GreatCircles.cpp.
References MeshManager::GetCoord3D(), VisualizationState::GetMeshManager(), VisualizationState::GetScale(), vertices, MeshManager::MeshInfo::Coord3D::x, hugin_utils::TDiff2D< T >::x, MeshManager::MeshInfo::Coord3D::y, hugin_utils::TDiff2D< T >::y, and MeshManager::MeshInfo::Coord3D::z.
Referenced by OverviewOutlinesTool::DrawRect().
void GreatCircleArc::LineSegment::doGLcross | ( | int | point, |
double | cscale, | ||
VisualizationState * | state | ||
) | const |
Specify the line to OpenGL. Must be within a glBegin/glEnd pair.
Definition at line 432 of file GreatCircles.cpp.
References MeshManager::GetCoord3D(), VisualizationState::GetMeshManager(), MeshManager::MeshInfo::Coord3D::x, MeshManager::MeshInfo::Coord3D::y, and MeshManager::MeshInfo::Coord3D::z.
float GreatCircleArc::LineSegment::squareDistance | ( | hugin_utils::FDiff2D | point | ) | const |
Get the square of the minimal distance to a point.
Definition at line 482 of file GreatCircles.cpp.
References hugin_utils::TDiff2D< T >::squareDistance(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
hugin_utils::FDiff2D GreatCircleArc::LineSegment::vertices[2] |
Definition at line 95 of file GreatCircles.h.
Referenced by doGL(), OverviewOutlinesTool::DrawRect(), and GreatCircleArc::GreatCircleArc().