GreatCircleArc::LineSegment Struct Reference

#include <GreatCircles.h>

List of all members.

Public Member Functions

float squareDistance (hugin_utils::FDiff2D point) const
 Get the square of the minimal distance to a point.
void doGLcross (int point, double cscale, VisualizationState *state) const
 Specify the line to OpenGL. Must be within a glBegin/glEnd pair.
void doGL (double width, VisualizationState *state, LineSegment *preceding=NULL, LineSegment *proceeding=NULL) const
 Draw a meshed line.

Public Attributes

hugin_utils::FDiff2D vertices [2]


Detailed Description

Definition at line 93 of file GreatCircles.h.


Member Function Documentation

void GreatCircleArc::LineSegment::doGL ( double  width,
VisualizationState state,
LineSegment preceding = NULL,
LineSegment proceeding = NULL 
) const

Draw a meshed line.

Parameters:
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 255 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.

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 430 of file GreatCircles.cpp.

References MeshManager::GetCoord3D(), VisualizationState::GetMeshManager(), vertices, MeshManager::MeshInfo::Coord3D::x, hugin_utils::TDiff2D< T >::x, MeshManager::MeshInfo::Coord3D::y, hugin_utils::TDiff2D< T >::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 480 of file GreatCircles.cpp.

References hugin_utils::TDiff2D< T >::squareDistance(), vertices, hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.


Member Data Documentation

hugin_utils::FDiff2D GreatCircleArc::LineSegment::vertices[2]

Definition at line 95 of file GreatCircles.h.

Referenced by doGL(), doGLcross(), and squareDistance().


The documentation for this struct was generated from the following files:
Generated on 28 Aug 2015 for Hugintrunk by  doxygen 1.4.7